mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 12:50:04 +08:00
fix(vimchat): fix ctrl-w
key binding
`ctrl-w` do not delete `.` before cursor
This commit is contained in:
parent
d67259a0f2
commit
0b41ab97cc
@ -131,7 +131,7 @@ function! chat#windows#open() abort
|
||||
let s:c_char = ''
|
||||
let s:c_end = ''
|
||||
elseif char ==# "\<C-w>"
|
||||
let s:c_begin = substitute(s:c_begin,'[^\ .*]\+\s*$','','g')
|
||||
let s:c_begin = substitute(s:c_begin,'\S*\s*$','','g')
|
||||
elseif char ==# "\<M-Left>" || char ==# "\<M-h>"
|
||||
"<Alt>+<Left> 移动到左边一个聊天窗口
|
||||
call s:previous_channel()
|
||||
|
@ -42,6 +42,6 @@ Whith the chat windows. The following key binding can be use:
|
||||
|
||||
- `Alt + Left/H`: switch to previous channel
|
||||
- `Alt + Right/L`: switch to next channel
|
||||
- `Ctrl-w`: delete word before cursor
|
||||
- `Ctrl-w`: delete characters until next space before cursor
|
||||
|
||||
for more mappings in chatting buffer, please read <kbd>:h vim-chat</kbd>.
|
||||
|
Loading…
Reference in New Issue
Block a user