Skip to content

Instantly share code, notes, and snippets.

@ckolderup
Created August 15, 2011 17:12
Show Gist options
  • Save ckolderup/1147224 to your computer and use it in GitHub Desktop.
Save ckolderup/1147224 to your computer and use it in GitHub Desktop.
MacVim: retain current working directory across new windows
" add this to your .gvimrc.
" thanks to Logan for the obvious trick to achieving
" this that I was looking straight past!
if has("gui_macvim")
macmenu &File.New\ Window key=<nop>
map <D-n> :!mvim<CR><CR>
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment