开发者

Ctrl-W in vim dont work in insert mode in terminal

when I use Ctrl-W (or Ctrl-H) in insert mode it does nothing. In gvim with the same vimrc works. 开发者_StackOverflow中文版I'm using Ubuntu 10.4 with gnome, what may be wrong?


Try adding to your .vimrc: set backspace=indent,eol,start


Type this from normal mode:

:verbose mapC-vC-wEnter

This will tell you two things:

  • you will see what your terminal emits for C-w (it is shown on the vim command line before you press Enter)

  • it will tell you whether C-w has any mappings in any mode

  • it will tell you where the mapping comes from

Subsequently look at

:verbose iabbrev

to see whether abbreviations are in the way


just try type "i" or "a" maybe you terminal has reserved these key binds?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜