diff options
author | Mike Crute <crutem@amazon.com> | 2018-12-04 09:21:34 -0800 |
---|---|---|
committer | Mike Crute <crutem@amazon.com> | 2018-12-04 09:21:34 -0800 |
commit | 2d440c94e9efb458e6ebb06d11694fcc5d010fbd (patch) | |
tree | 4bfcca3900ed1521acab27589bd4e77d36d9374d /.vim | |
parent | 26a7211cbee89843347ed08aa5172cef0decbc0e (diff) | |
download | dotfiles-2d440c94e9efb458e6ebb06d11694fcc5d010fbd.tar.bz2 dotfiles-2d440c94e9efb458e6ebb06d11694fcc5d010fbd.tar.xz dotfiles-2d440c94e9efb458e6ebb06d11694fcc5d010fbd.zip |
Properly escape visual search
Diffstat (limited to '.vim')
-rw-r--r-- | .vim/vimrc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -171,7 +171,7 @@ cnoremap %- !mkdir -p <C-R>=expand('%:h').'/'<CR> | |||
171 | vnoremap <leader>dc :s/\v\C(([a-z]+)([A-Z]))/\2_\l\3/g<CR> | 171 | vnoremap <leader>dc :s/\v\C(([a-z]+)([A-Z]))/\2_\l\3/g<CR> |
172 | 172 | ||
173 | " Forward search for visual selection | 173 | " Forward search for visual selection |
174 | vnoremap <expr> // 'y/\V'.escape(@",'\').'<CR>' | 174 | vnoremap <expr> // 'y/\V'.escape(@",'\/').'<CR>' |
175 | " }}} | 175 | " }}} |
176 | " {{{ Workarounds For Broken Shit | 176 | " {{{ Workarounds For Broken Shit |
177 | " These have to be set otherwise you can't write-back | 177 | " These have to be set otherwise you can't write-back |