aboutsummaryrefslogtreecommitdiff
path: root/autoload/regex_escape.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-29 22:23:27 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-29 22:23:51 +1300
commit0b7fd1dcc338c2ee7242ab080a44c7d849c3c8d1 (patch)
treef36dd511b34050302584fa6ca08fd06d7b172eb2 /autoload/regex_escape.vim
parentFirst version (diff)
downloadvim-regex-escape-0b7fd1dcc338c2ee7242ab080a44c7d849c3c8d1.tar.gz
vim-regex-escape-0b7fd1dcc338c2ee7242ab080a44c7d849c3c8d1.zip
Correct and adjust `normal!` keystrokes
Diffstat (limited to 'autoload/regex_escape.vim')
-rw-r--r--autoload/regex_escape.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/autoload/regex_escape.vim b/autoload/regex_escape.vim
index 06b3c07..2390804 100644
--- a/autoload/regex_escape.vim
+++ b/autoload/regex_escape.vim
@@ -29,11 +29,11 @@ function! regex_escape#Operatorfunc(type) abort
" Select or re-select text, depending on how we were invoked
if a:type ==# 'line'
- execute "normal! '[V']y"
+ normal! '[V']y
elseif a:type ==# 'block' " Typically doesn't work too well
- execute "normal! `[\<C-V>`]y" "
+ execute "normal! `[\<C-V>`]y"
else
- execute "normal! `[v`]y"
+ normal! `[v`]y
endif
" Determine the regex flavor to use; if one is defined for the buffer, use