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
venorven <filename>
There are three modes: normal mode, command mode, and insertion mode.
:to go into command mode/to go into command (search) modeito go into insertion mode at the cursorato go into insertion mode after the cursorAto go into insertion mode at the end of the lineIto go into insertion mode at the beginning of the lineoto open a new line under the cursor and go into insertion modeOto open a new line above the cursor and go into insertion modejor down arrow to go downkor up arrow to go uphor left arrow to go leftlor right arrow to go rightHto move the cursor to the top of the screenMto move the cursor to the middle of the screenLto move the cursor to the bottom of the screen0to move the cursor to the start of the line$to move the cursor to the end of the lineggto move the cursor to the start of the fileGto move the cursor to the end of the filewto move the cursor to the start of the next wordbto move the cursor to the start of the current wordeto move the cursor to the end of the current wordctrl-fto go a page forwardctrl-bto go a page backwardxdelete character under the cursorXdelete character before the cursordddelete entire lineDdelete rest of line
escto go into normal mode/<search>to search for a string (supports regex):wto save the file:wqto save and quit:qto safely quit:q!to force quit without saving
escto go into normal mode- any character press gets inserted