mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-22 08:45:42 +08:00
fix(iedit): fix Ctrl-p
key binding of iedit
This commit is contained in:
parent
51c9556d7b
commit
cc8c2e2bf1
@ -24,8 +24,9 @@
|
|||||||
" Iedit-Normal e forward to the end of word
|
" Iedit-Normal e forward to the end of word
|
||||||
" Iedit-Normal w forward to the begin of next word
|
" Iedit-Normal w forward to the begin of next word
|
||||||
" Iedit-Normal b move to the begin of current word
|
" Iedit-Normal b move to the begin of current word
|
||||||
" Iedit-Normal Ctrl-n forward and active next occurrence
|
" Iedit-Normal Ctrl-n forward and active next match
|
||||||
" Iedit-Normal Ctrl-x inactivate current occurrence and move forward
|
" Iedit-Normal Ctrl-x inactivate current match and move forward
|
||||||
|
" Iedit-Normal Ctrl-p inactivate current match and move backward
|
||||||
" <
|
" <
|
||||||
|
|
||||||
let s:index = -1
|
let s:index = -1
|
||||||
@ -531,6 +532,7 @@ function! s:handle_normal(char) abort
|
|||||||
let s:index -= 1
|
let s:index -= 1
|
||||||
endif
|
endif
|
||||||
let s:cursor_stack[s:index].active = 1
|
let s:cursor_stack[s:index].active = 1
|
||||||
|
silent! call s:highlight_cursor()
|
||||||
call cursor(s:cursor_stack[s:index].lnum,
|
call cursor(s:cursor_stack[s:index].lnum,
|
||||||
\ s:cursor_stack[s:index].col + len(s:cursor_stack[s:index].begin))
|
\ s:cursor_stack[s:index].col + len(s:cursor_stack[s:index].begin))
|
||||||
elseif a:char ==# 'n'
|
elseif a:char ==# 'n'
|
||||||
|
@ -5477,8 +5477,9 @@ After starting iedit, the following key bindings can be used:
|
|||||||
Iedit-Normal e forward to the end of word
|
Iedit-Normal e forward to the end of word
|
||||||
Iedit-Normal w forward to the begin of next word
|
Iedit-Normal w forward to the begin of next word
|
||||||
Iedit-Normal b move to the begin of current word
|
Iedit-Normal b move to the begin of current word
|
||||||
Iedit-Normal Ctrl-n forward and active next occurrence
|
Iedit-Normal Ctrl-n forward and active next match
|
||||||
Iedit-Normal Ctrl-x inactivate current occurrence and move forward
|
Iedit-Normal Ctrl-x inactivate current match and move forward
|
||||||
|
Iedit-Normal Ctrl-p inactivate current match and move backward
|
||||||
<
|
<
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user