Monday, August 27, 2012

Re: CTRL-W in insert mode

Hi,

A Loumiotis wrote:
>
> CTRL-W in insert mode deletes the word (part of the word) left of the
> cursor. Is it possible to undo this action?

perhaps the following map does what you want

inoremap <c-w> <c-g>u<c-w>

This remaps the Ctrl-W to first break the undo sequence and then execute
the original behaviour of Ctrl-W.

Regards,
Jürgen

--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us. (Calvin)

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: