Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
" 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>
map ,e :e <C-R>=expand("%:p:h") . "\\" <CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.