Skip to content

Instantly share code, notes, and snippets.

@dahu
Created May 17, 2012 09:34
Show Gist options
  • Save dahu/2717762 to your computer and use it in GitHub Desktop.
Save dahu/2717762 to your computer and use it in GitHub Desktop.
Tabnewleft
" Tabnewleft - Open tab page to the left of the current tab page
" Barry Arthur, 2012 5 17
function! Tabnewleft()
let curtabpage = tabpagenr()
tabnew
exe "tabmove " . (curtabpage - 1)
endfunction
command! Tabnewleft call Tabnewleft()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment