diff --git a/vimrcs/basic.vim b/vimrcs/basic.vim index cc90f74d..055c6efd 100644 --- a/vimrcs/basic.vim +++ b/vimrcs/basic.vim @@ -235,7 +235,7 @@ map t :tabnext " Let 'tl' toggle between this and the last accessed tab let g:lasttab = 1 -nmap tl :exe "tabn ".g:lasttab +nmap tl :exe "tabn ".g:lasttab au TabLeave * let g:lasttab = tabpagenr()