1
0
Fork 0
mirror of synced 2024-12-21 14:31:06 -05:00

Added 'tablast' to toggle between tabs using <leader>tl.

This commit is contained in:
Jesper Lyager Nielsen 2014-08-15 13:21:18 +02:00
parent 2a9908e4f0
commit 3278820a5d

View file

@ -230,6 +230,12 @@ map <leader>tc :tabclose<cr>
map <leader>tm :tabmove
map <leader>t<leader> :tabnext
" Let 'tl' toggle between this and the last accessed tab
let g:lasttab = 1
nmap <Leader>tl :exe "tabn ".g:lasttab<CR>
au TabLeave * let g:lasttab = tabpagenr()
" Opens a new tab with the current buffer's path
" Super useful when editing files in the same directory
map <leader>te :tabedit <c-r>=expand("%:p:h")<cr>/
@ -352,6 +358,7 @@ map <leader>pp :setlocal paste!<cr>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Helper functions
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""