1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 10:20:05 +08:00

fix(vimchat): fix ctrl-w key binding

`ctrl-w` do not delete `.` before cursor
This commit is contained in:
wsdjeg 2022-05-03 11:04:00 +08:00
parent d67259a0f2
commit 0b41ab97cc
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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>.