1 if version >= 700
 2   " function to go to the Most Recently Used (MRU) tab page
 3   " like Ctrl-a Ctrl-a in screen does
 4   " or Alt-Tab in the common window managers
 5   au TabLeave * let g:MRUtabPage = tabpagenr()
 6   fun MRUTab()
 7     if exists( "g:MRUtabPage" )
 8       exe "tabn " g:MRUtabPage
 9     endif
10   endfun
11   noremap <silent> gl :call MRUTab()<Cr>
12 endif