My Vim Key Maps

By | August 3, 2011

Finally I have decided to move over to vim, if you would like to do the same, please spend 10 minutes of your life to read about this blog and this blog

After reading those 2 blogs, by now you should have a basic understanding of Vim and have NERDTree installed.

This is my key maps in ~/.vimrc

 
#1 click svn update for development sandbox
noremap <F2> <Esc>:!svn-update.sh jamesl-dev<Cr>
#1 click svn update for release branch
noremap <F3> <Esc>:!svn-update.sh jamesl-rel<Cr>
#Open Nerdtree on my development sandbox
noremap <F4> <Esc>:NERDTree /srv/www/users/jamesl-dev/<Cr>
#Open Nerdtree on my release sandbox
noremap <F5> <Esc>:NERDTree /srv/www/users/jamesl-rel/<Cr>
#Open/Close Nerdtree
noremap <F9> <Esc>:NERDTreeToggle<Cr>
#Next tab
noremap <F6> <Esc>gt
#Previous tab
noremap <F7> <Esc>gT
#Switch windows, especially easy for jumping between nerdtree and main editor
noremap <F8> <Esc><C-w><C-w>

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.