Skip to content

Commit

Permalink
Fixed edit shortcuts for paths containing spaces
Browse files Browse the repository at this point in the history
This is the current implementation on http://vimcasts.org/e/14 
The original one would not work for paths containing spaces or other strange characters.
  • Loading branch information
regedor committed Dec 3, 2014
1 parent b45996f commit 366e81d
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 @@ -392,7 +392,7 @@
" Some helpers to edit mode
" http://vimcasts.org/e/14
cnoremap %% <C-R>=expand('%:h').'/'<cr>
cnoremap %% <C-R>=fnameescape(expand('%:h')).'/'<cr>
map <leader>ew :e %%
map <leader>es :sp %%
map <leader>ev :vsp %%
Expand Down

0 comments on commit 366e81d

Please sign in to comment.