views:

143

answers:

2

Hi Everyone,

I am using FuzzyFinder with vim to open files and switch between buffers. It works like a charm except when the current file I am working on has some changes. Vim wouldn't let me switch the buffer till I save it:

"E37: No write since last change (add ! to override)".

Is there a way of suppressing this warning unless I am quitting the editor? All I want to do it switch to a different buffer for referencing some code and switch back.

Thanks, Deepak

+2  A: 

I think you can use :set hidden

James
Thanks! This is exactly what I was looking for.
deepakg
+1  A: 

Use the :set hidden option and vim will hide the buffer until you come back to it.

You can also use :set confirm to deal with the unsaved buffer warning more conveniently.

too much php
Thanks. :set hidden works as I expected. :set confirm makes things a little more obtrusive by asking me to save the buffer each time I want to switch to a new buffer.
deepakg