Created
March 8, 2011 00:13
-
-
Save plagelao/859568 to your computer and use it in GitHub Desktop.
my vim shortcuts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mapleader = "," |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Ack maping | |
nnoremap <leader>a :Ack | |
" NERDTree maping | |
map <leader>d :execute 'NERDTreeToggle ' . getcwd()<CR> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" change buffer mapping | |
nnoremap <leader>6 :b#<CR> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" tab matches brackets | |
" in normal mode | |
nnoremap <tab> % | |
" in visual mode | |
vnoremap <tab> % | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" remove spaces mapping | |
nnoremap <leader>W :%s/\s\+$//<cr>:let @/=''<CR> | |
nnoremap <leader>T :%s/\t/ /<cr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" change symbol key hashes to ruby 1.9 syntax mapper | |
map <leader>H :%s/:\(\w\+\) =>/\1:<CR>`` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map close :q!<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment