diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-29 22:23:27 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-29 22:23:51 +1300 |
commit | 0b7fd1dcc338c2ee7242ab080a44c7d849c3c8d1 (patch) | |
tree | f36dd511b34050302584fa6ca08fd06d7b172eb2 /autoload/regex_escape.vim | |
parent | First version (diff) | |
download | vim-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.vim | 6 |
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 |