Ven

command module
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2020 License: MIT Imports: 5 Imported by: 0

README

GitHubBuild Go Report Card codecov Go Doc License

Ven

Vi Enhanced. A text editor which is an enhancement to vi, and is similar to vim, but written in Go. Uses a gap buffer to store the text.

Installation

  • Download golang if you have not yet done so
  • Run: go get github.com/bkthomps/Ven
  • Run: go build $GOPATH/src/github.com/bkthomps/Ven
  • Then add this to your bashrc: alias ven='$GOPATH/src/github.com/bkthomps/Ven/Ven'
  • You can now run Ven from anywhere using ven or ven <filename>

Commands

There are three modes: normal mode, command mode, and insertion mode.

Normal Mode
  • : to go into command mode
  • / to go into command (search) mode
  • i to go into insertion mode at the cursor
  • a to go into insertion mode after the cursor
  • A to go into insertion mode at the end of the line
  • I to go into insertion mode at the beginning of the line
  • o to open a new line under the cursor and go into insertion mode
  • O to open a new line above the cursor and go into insertion mode
  • j or down arrow to go down
  • k or up arrow to go up
  • h or left arrow to go left
  • l or right arrow to go right
  • H to move the cursor to the top of the screen
  • M to move the cursor to the middle of the screen
  • L to move the cursor to the bottom of the screen
  • 0 to move the cursor to the start of the line
  • $ to move the cursor to the end of the line
  • gg to move the cursor to the start of the file
  • G to move the cursor to the end of the file
  • w to move the cursor to the start of the next word
  • b to move the cursor to the start of the current word
  • e to move the cursor to the end of the current word
  • ctrl-f to go a page forward
  • ctrl-b to go a page backward
  • x delete character under the cursor
  • X delete character before the cursor
  • dd delete entire line
  • D delete rest of line
Command Mode
  • esc to go into normal mode
  • /<search> to search for a string (supports regex)
  • :w to save the file
  • :wq to save and quit
  • :q to safely quit
  • :q! to force quit without saving
Insertion Mode
  • esc to go into normal mode
  • any character press gets inserted

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL