i, a (insert line after),0 (insert line before) | insert mode - allowing you to make edits to the file. |
v | To highlight an area you want to copy |
ESC | Takes you out of edit/insert mode and back into "normal" mode allowing you to use commands. |
Shift q : means ex mode! | Takes you into ex mode where you can run ex commands |
/command /word searches top to bottom | Allows you to run more commands |
u | Undo your last command |
Control r | Redo command |
dd | Delete and copy the current line |
hjkl | left, up, down, right, in abense of arrow keys. |
v | To highlight an area you want to copy |
x | Deletes the character you are on. |
y | The equivalent of copy, VIM calls it "yank" |
yy | Copy the current line, or as said in vim "yank" |
p | The equivalent of paste. |
:w | Save the file |
:q! | Quit without saving |
:vsplit | Split your screen vertically |
:split | Split your screen horizontally |
Control U | Scrolls half page up |
Control D | Scrolls half page down |
:sp ~/.vimrc | Pulls up the configuration file for VIM where you can set some cool settings.
1 syntax on |
/pattern | Search for the text string pattern |
Less allows both forward and backward movement. Less does not require the whole file be loaded before viewing (speed). Navigation commands are similar to VIM.
/ | Pattern Search - Takes you to next occurence. |
n | Next match in forward, while in search. |
N | for previous match backward. |
h or H | Pulls up the help command list which is actually quite useful |