1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 23:00:04 +08:00

feat(chat): support ctrl-w to delete word

This commit is contained in:
wsdjeg 2022-05-01 13:16:08 +08:00
parent 87cce99383
commit 1551d4f750

View File

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