Skip to content

Instantly share code, notes, and snippets.

@jsteiner
Created October 16, 2013 17:12
Show Gist options
  • Save jsteiner/7011369 to your computer and use it in GitHub Desktop.
Save jsteiner/7011369 to your computer and use it in GitHub Desktop.
" Edit another file in the same directory as the current file
map <Leader>e :e <C-R>=expand("%:p:h") . '/'<CR>
map <Leader>s :split <C-R>=expand("%:p:h") . '/'<CR>
map <Leader>v :vsplit <C-R>=expand("%:p:h") . '/'<CR>
map <Leader>te :tabe <C-R>=expand("%:p:h") . '/'<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment