From 1551d4f750a2792beceefc033626d74a31e5c0e8 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Sun, 1 May 2022 13:16:08 +0800 Subject: [PATCH] feat(chat): support `ctrl-w` to delete word --- bundle/vim-chat/autoload/chat/windows.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bundle/vim-chat/autoload/chat/windows.vim b/bundle/vim-chat/autoload/chat/windows.vim index f8c548e4b..ddfc74545 100644 --- a/bundle/vim-chat/autoload/chat/windows.vim +++ b/bundle/vim-chat/autoload/chat/windows.vim @@ -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 ==# "\" + let s:c_begin = substitute(s:c_begin,'[^\ .*]\+\s*$','','g') elseif char ==# "\" || char ==# "\" "+ 移动到左边一个聊天窗口 call s:previous_channel()