Browse files

Make %% respect spaces in filepaths

  • Loading branch information...
1 parent 3424607 commit 32dec75913484c6248419207456dc26eb628d987 @nelstrom committed Jan 15, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 vimrc
View
2 vimrc
@@ -88,7 +88,7 @@ nnoremap <C-h> <C-W>h
nnoremap <C-l> <C-W>l
" File opening {{{2
" Shortcuts for opening file in same directory as current file
-cnoremap <expr> %% getcmdtype() == ':' ? expand('%:h').'/' : '%%'
+cnoremap <expr> %% getcmdtype() == ':' ? escape(expand('%:h'), ' \').'/' : '%%'
map <leader>ew :e %%
map <leader>es :sp %%

0 comments on commit 32dec75

Please sign in to comment.