Vi Enhanced. A text editor which is an enhancement to vi, and is similar to vim, but written in Go.
- Run:
go install github.com/bkthomps/Ven@latest
- Then add this to your bashrc or zshrc:
alias ven='~/go/bin/Ven'
- You can now run Ven from anywhere using
ven
orven <filename>
There are three modes: normal mode, command mode, and insertion mode.
:
to go into command mode/
to go into command (search) modei
to go into insertion mode at the cursora
to go into insertion mode after the cursorA
to go into insertion mode at the end of the lineI
to go into insertion mode at the beginning of the lineo
to open a new line under the cursor and go into insertion modeO
to open a new line above the cursor and go into insertion modej
or down arrow to go downk
or up arrow to go uph
or left arrow to go leftl
or right arrow to go rightH
to move the cursor to the top of the screenM
to move the cursor to the middle of the screenL
to move the cursor to the bottom of the screen0
to move the cursor to the start of the line$
to move the cursor to the end of the linegg
to move the cursor to the start of the fileG
to move the cursor to the end of the filew
to move the cursor to the start of the next wordb
to move the cursor to the start of the current worde
to move the cursor to the end of the current wordctrl-f
to go a page forwardctrl-b
to go a page backwardx
delete character under the cursorX
delete character before the cursordd
delete entire lineD
delete rest of line
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
esc
to go into normal mode- any character press gets inserted