1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-14 15:19:12 +08:00

fix(iedit): fix e key binding in iedit mode

This commit is contained in:
wsdjeg 2022-03-23 19:20:27 +08:00
parent b8a562f702
commit daf80925ed

View File

@ -335,9 +335,9 @@ function! s:handle_normal(char) abort
\ s:cursor_stack[i].begin
\ . s:cursor_stack[i].cursor
\ . word
let s:cursor_stack[i].cursor = matchstr(s:cursor_stack[i].begin, '.$')
let s:cursor_stack[i].begin = substitute(s:cursor_stack[i].begin, '.$', '', 'g')
let s:cursor_stack[i].end = substitute(s:cursor_stack[i].end, '^\s*\S*', '', 'g')
let s:cursor_stack[i].cursor = matchstr(s:cursor_stack[i].end, '^.')
let s:cursor_stack[i].end = substitute(s:cursor_stack[i].end, '^.', '', 'g')
endfor
elseif a:char ==# '0' || a:char ==# "\<Home>" " 0 or <Home>
for i in range(len(s:cursor_stack))