>> Is there a way that I can map <D-s> to go to normal mode before or
>> after MacVim saves the file?
>iunmenu File.Save
>imenu <silent> File.Save <Esc>:if expand("%") == ""<Bar>browse confirm
>w<Bar>else<Bar>confirm w<Bar>endif<CR>
>I'm curious though: why do you need to go into normal mode when you
>save the file?
After I add a bunch of text, I usually save it, and then run the program.
When I come back to the program, I'm usually ready to jump somewhere else
and add/edit the code, and find myself having to press the ESC key to go
into normal mode. The feeling that I get from vi/vim is that you're in
normal mode most of the time, so it's just natural for me to want to go to
normal mode after adding text and saving the file. Of course, there's ways
to move around quickly in insert mode, but then why use Vim?
So, I find that more often than not, I'm doing Cmd-S<ESC>, so it's cool to
be able to eliminate the error-prone trip to the ESC key.
How do you usually work? Do press ESC, then Cmd-S? Or, do you stay in
insert mode after saving?
Thanks for the suggestion--It's really cool to talk with the author of such
a good application.
--Nate
--
View this message in context:
http://www.nabble.com/Go-to-Normal-Mode-After-Before-Save--tp19868548p19891811.html
Sent from the Vim - Mac mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---