A blog dedicated to text editing and general exploration of computing knowledge
Friday, November 6, 2009
Autowrite
If you're tired of Vim asking you if you want to save the current buffer, you can :set autowrite to avoid this. Be careful if you enable this settings as it relies on your own prudence to prevent accidents from happening.
When you move from a buffer to another and you have unsaved changes it will allow to move out the current buffer and not save the changes. Of course your current unsaved changes are remembered when you come back in the buffer.
Like Chicha said, :set hidden is also an option. Along with :set confirm which prevents you from quitting without saving I find my vim editing sessions a lot more pleasant
5 comments:
Yes, this is very useful in combination with :bufdo!
You can also use : set hidden
When you move from a buffer to another and you have unsaved changes it will allow to move out the current buffer and not save the changes. Of course your current unsaved changes are remembered when you come back in the buffer.
Autowrite means "save on exit?"
Like Chicha said, :set hidden is also an option. Along with :set confirm which prevents you from quitting without saving I find my vim editing sessions a lot more pleasant
Perfect article continue doing and implementing new applications because it has been so good for me.
Post a Comment