mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-13 15:27:58 +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
|
" ctrl+k delete the chars from cursor to the end
|
||||||
let s:c_char = ''
|
let s:c_char = ''
|
||||||
let s:c_end = ''
|
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>"
|
elseif char ==# "\<M-Left>" || char ==# "\<M-h>"
|
||||||
"<Alt>+<Left> 移动到左边一个聊天窗口
|
"<Alt>+<Left> 移动到左边一个聊天窗口
|
||||||
call s:previous_channel()
|
call s:previous_channel()
|
||||||
|
Loading…
Reference in New Issue
Block a user