Skip to content

Commit

Permalink
Make %% respect spaces in filepaths
Browse files Browse the repository at this point in the history
  • Loading branch information
nelstrom committed Jan 15, 2013
1 parent 3424607 commit 32dec75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -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 %%
Expand Down

0 comments on commit 32dec75

Please sign in to comment.