VIM-1.6 More VIM Shortcuts and Tips

Support by clicking on youtube ads and make sure to subscribe to my channel for more videos on UNIX, Perl and SQL.

twitter: @fuzicast

:v/^Binary/d – delete all lines that does not start with Binary
ctrl+w gf with cursor on a filename will open that file in a new tab
gf with cursor on a filename will close current file and open that file
press * with cursor on a word will search for that word in file
vim -p file1 file2 file3 file4 # opens these files in tabs
:tabonly – closes all other tabs except current one
vimdiff – when you press ‘do’, obtain any differences from the other window. ‘dp’ will put any differences to the other window
:sort u – sort unique in vim
:sort – regular sort in vim
vim scp://username@host/PATH – open remote files
ctrl+p – autocomplete
:’t,. !awk ‘{print $3 ” ” $2 ” ” $1}’ – execute awk on current opening file
:Explore – execute, delete, rename file system easily with vim
:earlier 2h – undo up to 2hours
:later 2h – redo up to 2hours
:set spell – turn on spell check for strings within quotes
:set nospell
shift + k – with cursor on a command, press that and see man page
!% – will execute current script

New Videos on VIM and SHELL

Hi all,

It’s been a while since my last video (almost 2 months). Well, I have been busy with something personal that I have to take care of, but don’t you worry, I will always find time to record new videos. I just have so much to share with you guys. This weekend I will try to find some time to record new videos on VIM (I found more shortcuts) and continue on SHELL videos. So stay tuned and follow my posts :)