Hi Oivvio!

On Fr, 20 Aug 2010, Oivvio Polite wrote:

> Is there a way to enter insert mode and automatically leave insert mode
> after typing a complete word? 
> I realize that this could be accomplished by defining a macro and
> mapping it to a key but I'd rather learn how to do it the "vi-way" so
> that my knowledge carries over to places where I haven't set up my own
> .vimrc

How about:
:inoremap <space> <space><esc>

This maps the Space key in insert mode to enter the space and afterwards 
pressing ESC for leaving insert mode.

regards,
Christian

-- 
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

Reply via email to