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.

5 comments:

djib said...

Yes, this is very useful in combination with :bufdo!

Chicha said...

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.

Ben said...

Autowrite means "save on exit?"

Anonymous said...

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

Order Viagra said...

Perfect article continue doing and implementing new applications because it has been so good for me.