Vis Text Editor

There are many text editors out there but one that I really like is Vis. It is simple to learn and very easy to use. For anyone that needs a list of the keybinds, I have made a list of the key ones below.


NORMAL MODE

gg goes to the top of the file
G goes to the bottom of the file

hjkl moves
e moves to the next end of a word
b goes to the previous end of the word
w moves to the next beginning of the word
cntrl f moves forward a screen
cntrl b moves back a screen

numbers make the next action repeat # number of times

^ beginning of the line
$ end of the line

p paste in front in cursor (or below line if you copied a line) (replaced selected text)
P paste behind cursor (or above line if you copied a line) (replaced selected text)

y copies selected text
yy copies the current cursor line

v goes into visual mode (moving around will now select text)
V visual mode selects the cursor line (moving around will select lines)

: goes into command mode

d delete selcted text
dd deletes cursor line

x cut selected text

r replace current character or selected text
R replace mode

u undo last action
cnrtl r redo last action

i insert mode at cursor
a insert mode after cursor
o instert mode create new line (below)
O insert mode create new line (above)

/ Search (Case-sensitive)
n Select next match
N Select previous match

INSERT MODE

escape goes into normal mode

arrows move
shift right arrow, left arrow moves by a word

COMMAND MODE

w <filename> writes changes (optional set filename)
q quits
wq does both w and q