Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
VIM で Windows の C-Del/C-Backspace の通常の動作をエミュレートするのが好きです。現在私は使用しています:
imap <C-Del> <C-o>dw imap <C-Backspace> <C-o>db
これは近いですが、完全ではありません。たとえば、これを行末から削除しようとすると
foo(1, 2)
C-Backspace を使用すると、次のことが起こります。
foo(1, )
どうすればこれを解決できますか?
あなたの new<C-Backspace>は internal と同じ<C-w>です。だからあなたの問題を解決するためにあなたはすることができます
<C-Backspace>
<C-w>
imap <C-Backspace> <C-w>