Sławosz
Sławosz

Reputation: 11687

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. I'm using Ubuntu 10.4 with gnome, what may be wrong?

Upvotes: 3

Views: 3916

Answers (4)

Daniil Zhuravlev
Daniil Zhuravlev

Reputation: 1

Ctrl + W + W, took me a while to figure that out.

Upvotes: 0

Damien
Damien

Reputation: 1528

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

Upvotes: 2

sehe
sehe

Reputation: 393577

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

Upvotes: 1

Bard
Bard

Reputation: 139

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

Upvotes: 0

Related Questions