mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 02:00:05 +08:00
feat(chat): support ctrl-w
to delete word
This commit is contained in:
parent
87cce99383
commit
1551d4f750
@ -91,6 +91,8 @@ function! chat#windows#open() abort
|
||||
" ctrl+k delete the chars from cursor to the end
|
||||
let s:c_char = ''
|
||||
let s:c_end = ''
|
||||
elseif char ==# "\<C-w>"
|
||||
let s:c_begin = substitute(s:c_begin,'[^\ .*]\+\s*$','','g')
|
||||
elseif char ==# "\<M-Left>" || char ==# "\<M-h>"
|
||||
"<Alt>+<Left> 移动到左边一个聊天窗口
|
||||
call s:previous_channel()
|
||||
|
Loading…
Reference in New Issue
Block a user