I am new to vim,
Usually I find myself wanting to save and stay in insert mode, rather than hit escape key, :w and back into insert mode.
please help me
|
I am new to vim, Usually I find myself wanting to save and stay in insert mode, rather than hit escape key, :w and back into insert mode. please help me |
|||||||
|
|
Ctrl+O, then |
|||||||||||
|
|
Apart from that suggestion which Juliano mentioned (which should be taken out and shot <- the suggestion, not Juliano), it really is THE WRONG WAY TO DO IT. It would be actually more "normal" to try and do everything from command mode, instead of insert. But using them interchangeably is the usual vim's way and if one doesn't like it one should really stay clear of vim. If you really don't like not being able to save from I mode, may I suggest an editor called Cream - it is a variant of vim, modified in a way that emulates nowadays's editors (so to say, it stays in I mode all the time, and has usual windows shortcuts). |
|||||||||||
|
|
You could add an alias like |
|||||
|
|
Without getting into a debate about the right or the wrong way, if you use a graphical Vim like MacVim or GVim, you should be able to use Cmd-s or Ctrl-s for saving. I can say that it works on OS X with MacVim and Cmd-s and so you can save your stuff in the insert mode. |
||||
|
|