Tom Mix Memorial


Vim is an old school text editor that is by no means easy. In 2014 I decided to go 100% VIM. I'm just an average and not some epic hacker. If I can do it trust me anyone can do it... There are lots of opinions out there but I chose to just jump in. When forced with no other option trust me our minds, although resist they may try, will adapt will embrace the epic power of VIM. Once you go VIM...

VIM commands for starters

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
2 set number
3 set autoindent
4 set expandtab
5 set tabstop=8
6 set softtabstop=4
7 set shiftwidth=4

/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