Advanced vim tips
I always wanted to provide some vim tips for advanced vim users. I always feared the feedback, but I think I should do it now.
Use the leader!
Oh my god! Use it! You will get so much faster when using the leader on a regular basis. Of course you have to map it to your mostly used actions, but it can be such an performance win!
Here goes mine. Note that my leader is mapped to my space key:
let mapleader = ““ map w :w& map q :q nnoremap za onoremap za vnoremap zf map sc :SyntasticCheck map nt :NERDTreeToggle %:p:h map tb :TagbarToggle map ut :UndotreeToggle map vr :VimroomToggle map ig IndentGuidesToggle map ga :Git add %:p map gs :Gstatus& map gc :Gcommit -v -q map gd :Gdiff map gb :Gblame map gp :!git push map m :Make map h h map j j map k k map l l map s s map v v
You can find these mappings in my vimrc at github as well. Use it!
Don't use the arrow keys!
This is very critical for your speed when using vim. Never, ever use the arrow keys!
map map map map
You will get faster by lightyears!
This were two tips which are very critical when talking about speed when using
vim. I don't know whether these match your idea of 'advanced vim tips', but they
are very important to me. I got a performance increase by around 50% just by
hjkl instead of the arrow keys as well as I got faster by the same
amount with the leader mappings.
Use them. Tell me what you think.