mirror of
1
0
Fork 0

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
1 changed files with 7 additions and 0 deletions

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