Hi,

 Suppose the follwong situation:

 I did a

   :e file1

 and changed something, then I do a

   :e file2

 and changed that file also.

 Now I recognize, that file1 does not need any changes and want vim to
 simply "forget" that file. I have "set hidden" in my .vimrc since I
 normally have to edit more than one file. And the files are long and
 loading takes some time ( : ...[converting]...  .).

 I <C-^> to file1 and say

   :q!

 vim refuses and say, that file2 is also changed (correct!) and does
 not "forget" file1.

 Saying 

  :qall!

 ends the vim session. This is not wanted.

 Not setting

  set hidden

 is also not wanted for reasons described above.

 
 To insert a

  set confirm

 in my $HOME/.vimrc enables the Windows-like behaviour of the 

   [OK][CANCEL]

 cycle, which is DEFINETLY not wanted. :)

 I am searching for the EMacs-equivalent to "kill-buffer".

 Is there any way to get out of this "dead lock situation" without too
 many extra typing of commands ?

 I am using vim70f beta on a Linux 2.6.16.9 based system.

 Thanks a lot for any help in advance!
 
 :nice day have!
 mcc

 

Reply via email to