diff --git a/vimrcs/basic.vim b/vimrcs/basic.vim index be83d11a..f04ae075 100644 --- a/vimrcs/basic.vim +++ b/vimrcs/basic.vim @@ -230,6 +230,12 @@ map tc :tabclose map tm :tabmove map t :tabnext +" Let 'tl' toggle between this and the last accessed tab +let g:lasttab = 1 +nmap tl :exe "tabn ".g:lasttab +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 te :tabedit =expand("%:p:h")/ @@ -352,6 +358,7 @@ map pp :setlocal paste! + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Helper functions """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""