Skip to content

Instantly share code, notes, and snippets.

@jasonroelofs
Created August 18, 2008 18:37
Show Gist options
  • Save jasonroelofs/6059 to your computer and use it in GitHub Desktop.
Save jasonroelofs/6059 to your computer and use it in GitHub Desktop.
" Make ',e' (in normal mode) give a prompt for opening files
" in the same dir as the current buffer's file.
if has("unix")
map ,e :e <C-R>=expand("%:p:h") . "/" <CR>
else
map ,e :e <C-R>=expand("%:p:h") . "\\" <CR>
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment