Permalink
Browse files

Enable :Man command; use fnameescape() in %% map

  • Loading branch information...
1 parent dc6e466 commit 66ff87dc59068ae273cd7fbfb22c6c0ebe1e1924 @nelstrom committed Jun 9, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 vimrc
View
3 vimrc
@@ -1,5 +1,6 @@
" vim: nowrap fdm=marker
source ~/dotfiles/bundles.vim
+runtime ftplugin/man.vim
" Personal preferences not set by sensible.vim
set history=5000
@@ -40,7 +41,7 @@ let g:ragel_default_subtype='ruby'
" Override defaults {{{2
nnoremap Q <Nop>
" File opening {{{2
-cnoremap <expr> %% getcmdtype() == ':' ? escape(expand('%:h'), ' \').'/' : '%%'
+cnoremap <expr> %% getcmdtype() == ':' ? fnameescape(expand('%:h')).'/' : '%%'
map <leader>ew :e %%
map <leader>es :sp %%

0 comments on commit 66ff87d

Please sign in to comment.