1
0
Fork 0
mirror of synced 2024-11-17 22:45:34 -05:00

Merge pull request #82 from lyager/tablast

Added 'tablast' to toggle between tabs using <leader>tl.
This commit is contained in:
Amir Salihefendic 2014-10-10 18:47:21 +01:00
commit 6ad7ca8fa1

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
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""