iedit 模式是 SpaceVim 中最新實現的一個多光標編輯模式,取名 iedit 借鑑了 emacs 的 iedit-mode,這一模式給 vim 增添了多光標編輯功能。git
效果圖以下:github
在 SpaceVim 中有三種方式啓動 iedit 模式:vim
SPC s e
會匹配光標所在的單詞,並啓動 iedit 模式。SPC s e
會匹配所選擇的單詞,並啓動 iedit 模式。e
鍵會更具以選擇的匹配位置來啓動 iedit 模式。模式轉變:bash
Key Binding | From | to |
---|---|---|
SPC s e |
normal or visual | iedit-Normal |
iedit-Normal 模式快捷鍵:微信
iedit-Normal
模式模仿 vim Normal
模式,如下的這些快捷鍵僅限於 iedit-Normal
模式.spa
Key Binding | Description |
---|---|
Esc |
go back to Normal mode |
i |
switch to iedit-Insert mode, same as i |
a |
switch to iedit-Insert mode, same as a |
I |
go to the beginning of the current occurrence and switch to iedit-Insert mode |
A |
go to the end of the current occurrence and switch to iedit-Insert mode |
<Left> |
Move cursor to left |
<Right> |
Move cursor to right |
0 |
go to the beginning of the current occurrence |
$ |
go to the end of the current occurrence |
D |
delete the occurrences |
S |
delete the occurrences and switch to iedit-Insert mode |
gg |
go to first occurrence |
G |
go to last occurrence |
n |
go to next occurrence |
N |
go to previous occurrence |
iedit-Insert 模式快捷鍵:命令行
iedit-Insert
模式借鑑與 vim Insert
模式下的快捷鍵,也借鑑了 emacs
和 bash
命令行下的快捷鍵:3d
Key Binding | Description |
---|---|
Esc |
go back to iedit-Normal mode |
<Left> |
Move cursor to left |
<Right> |
Move cursor to right |
<C-w> |
delete words before cursor |
<C-K> |
delete words after cursor |
想要獲取更多關於 SpaceVim 的最新諮詢,可關注咱們的者微博或者微信公衆號:code
推薦閱讀:orm