Merge pull request #82 from lyager/tablast
Added 'tablast' to toggle between tabs using <leader>tl.
This commit is contained in:
commit
6ad7ca8fa1
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
|
|
Loading…
Reference in a new issue