2009/5/19 Владимир Сидоренко <[email protected]>:

> Is there any way to automatically save file when leaving insert mode?

You can write an autocommand using the InsertLeave event.

:help :au
:help InsertLeave

It would look something like:

:au InsertLeave <buffer> w

... which I've barely tested, but seems to work.  That's assuming
you'd want to set it up on a per-buffer basis.

Thank you,

bob

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to