tweaked mappings
This commit is contained in:
parent
799a4fd415
commit
45ee08debe
1 changed files with 10 additions and 3 deletions
13
init.vim
13
init.vim
|
@ -73,14 +73,21 @@ nnoremap <Leader>g :Grepper -tool git<CR>
|
|||
" Switch between Windows with: Leader w
|
||||
nnoremap <Leader>w <C-w><C-w>
|
||||
|
||||
" Show next buffer with: Leader n
|
||||
nnoremap <Leader>n :bn<CR>
|
||||
" show next buffer with: leader n
|
||||
nnoremap <leader>n :bn<cr>
|
||||
|
||||
" show previous buffer with: leader n
|
||||
nnoremap <leader>p :bp<cr>
|
||||
|
||||
" Fix indentation with: Leader i
|
||||
nnoremap <Leader>i mzgg=G`z
|
||||
|
||||
" Delete buffer with: Leader d
|
||||
nnoremap <Leader>d :bd<CR>
|
||||
nnoremap <Leader>d :bp\|bd #<CR>
|
||||
|
||||
" move to next tab with: Leader t
|
||||
nnoremap <Leader>t :tabnext<CR>
|
||||
tnoremap <C-e> <C-\><C-n>:tabnext<CR>
|
||||
|
||||
" clear trailing spaces in file
|
||||
function! g:ClearTrailingSpaces()
|
||||
|
|
Reference in a new issue