Add keyboard shortcuts for tabs and let \ be mapped Leader

pull/2/head
Bodaniel Jeanes 2011-11-22 14:34:36 -06:00
parent 92b0d459ce
commit 910aee6172
1 changed files with 6 additions and 0 deletions

View File

@ -92,6 +92,9 @@ syntax on
" way better... " way better...
map 0 ^ map 0 ^
nmap <Leader>] :tabnext<CR>
nmap <Leader>[ :tabprev<CR>
" Opens an edit command with the path of the currently " Opens an edit command with the path of the currently
" edited file filled in Normal mode: <Leader>e " edited file filled in Normal mode: <Leader>e
map <Leader>e :e <C-R>=expand("%:p:h") . "/" <CR> map <Leader>e :e <C-R>=expand("%:p:h") . "/" <CR>
@ -116,3 +119,6 @@ syntax on
call cursor(l, c) call cursor(l, c)
endfunction endfunction
autocmd! BufWritePre * :call <SID>StripTrailingWhitespaces() autocmd! BufWritePre * :call <SID>StripTrailingWhitespaces()
" For when other people use my setup
nmap \ <Leader>