Also, staying as close as possible to the default settings makes it a lot easier to move to other environments and/or upgrade. Although now that I have my .vimrc in my Dropbox it doesn't matter as much as it used to.
nnoremap <Space> @q
It dramatically lowers the mental barrier to macro use (at least when you're starting out with macros). Where I use to use ragex search and replace I now instinctively go for macros, and I'm getting good at choosing the most robust commands for the situation. The pattern of qq => /foo => cwbar => Esc => Space-Space-Space is incredible. It's so infinitely superior to regex search and replace, and the fact that you can paste the macro and modify it as text is the cherry on top.
" Buffers ***
nnoremap <F1> :ls<CR>
nnoremap \1 :b 1<CR>
nnoremap \2 :b 2<CR>
nnoremap \3 :b 3<CR>
nnoremap \4 :b 4<CR>
nnoremap \5 :b 5<CR>
nnoremap \6 :b 6<CR>
nnoremap \7 :b 7<CR>
nnoremap \8 :b 8<CR>
nnoremap \9 :b 9<CR>
nnoremap \\ :b #<CR>* remap jj to ESC: imap jj <Esc>
* align on "=>" with (Tabular plugin): nmap <Leader>t> :Tabularize /=>\zs<CR>
* for project-wide search (and replace), I recommend EasyGrep plugin ([1] see options)
[1] https://github.com/sohooo/vimfiles/blob/master/vimrc#L384
* Learn to touch-type
* Learn new features slowly, giving each of them time to find their place in your workflow.
My questions for other vim power users:
* What _epic_ custom mappings do you have? Steve Losh's <Leader>ev for editing .vimrc and <Leader>sv for sourcing completely changed how I use and customize vim... are the any others with that level of impact?
* How have you mapped control of buffers/windows/tabs? Command-T buffer mode takes care of open buffers, and the default window/tab control mappings seem good enough for me, but I'm wondering if there's a nicer way for this interaction to work. Currently I've got arrow keys mapped to moving tab focus, but it feels like their might be a better way here.
* Are there any fun and creative ways you've integrated with the shell/plugins? Here are some examples I've got:
<Leader>r :!rake
<Leader>rs :!rake spec
<Leader>rl :!rake spec (test near this line)
<Leader>gs :GStatus (fugitives 'git status')
<Leader>gb :GBlame (fugutives 'git blame')
* What's a nice way to do find in project? Both vimgrep and :Ggrep are OK, but I find it weird that I'm taken out of the editor for both of those... Ideally I'd like the results to open up in a buffer which I can then browse through in some nice way.