On Nov 13, 8:53 am, fritzophrenic <[EMAIL PROTECTED]> wrote:
>
> Your .gvimrc will run only one time at Vim startup. At Vim startup,
> filetype is probably an empty string. Thus, wombat will always be set.
>
> In order to run code every time you load a file, you need to use an
> autocmd. See :help autocmd. The particular event you want is probably
> the "FileType" event, which will fire every time you set a file type
> or one is set automatically. See :help FileType.
>

Except, if you switch back and forth between buffers, the file type
will not be reapplied, and thus your colorscheme will not be changed.
To accomplish this, you'd additionally want a BufEnter or a WinEnter
autocmd. See :help BufEnter, :help WinEnter.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to