Kamaraju Kusumanchi wrote:

> I have the following line in my ~/.vimrc
> 
>   au BufWinLeave *.f90 mkview
> 
> If I open file1.f90 then do
> 
>   :sp file2.f90
> 
> and close the file2.f90 then a new view is written. However if I do
> 
>   :tabe file2.f90
> 
> and close the file2.f90 then the above autocommand is not executed and no new 
> view is written.
> 
> How can I change the autocommand such that it works with :sp, :vs, :tabe 
> etc.,? Any ideas?

The BufWinLeave event is also triggered for a file in a tab page.  I
don't know why this would not happen for you.

-- 
ARTHUR:  You fight with the strength of many men, Sir knight.
         I am Arthur, King of the Britons.  [pause]
         I seek the finest and the bravest knights in the land to join me
         in my Court of Camelot.  [pause]
         You have proved yourself worthy; will you join me?  [pause]
         You make me sad.  So be it.  Come, Patsy.
BLACK KNIGHT:  None shall pass.
                                  The Quest for the Holy Grail (Monty Python)

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Reply via email to