Feed &cedit as a key properly - fix #62

This commit is contained in:
Bohr Shaw 2014-05-20 15:50:31 +08:00 committed by Tim Pope
parent 67078e0c34
commit 88648b2578

View File

@ -878,7 +878,7 @@ function! s:print_last() abort
endfunction
function! s:editop(type) abort
call feedkeys(&cedit . "\<Home>", 'n')
call feedkeys(eval('"\'.&cedit.'"') . "\<Home>", 'n')
let input = s:input(substitute(substitute(substitute(
\ s:opfunc(a:type), "\s*;[^\n\"]*\\%(\n\\@=\\|$\\)", '', 'g'),
\ '\n\+\s*', ' ', 'g'),