On 06/02/09 07:53, 듀르 wrote:
> I loaded a file in which some vim-scripts are and I did ':setlocal
> filetype=vim' then I saw beautiful syntax-highlighting. :)
> but win32-gvim didn't keep it up. I did ':bnext' and ':bprevious'
> several times and i found that win32-gvim didn't keep syntax-
> highlighting up. win32-gvim just regards the filename not filetype
> (option value) when it's doing :bnext and :bprevious.

Check whether your vimrc includes either

        runtime vimrc_example.vim

(or "source $VIMRUNTIME/vimrc_example.vim", without the quotes, which 
amounts to the same thing), or at least

        syntax on

; to the latter I recommend to add

        filetype plugin on

or, depending on your indenting preferences,

        filetype plugin indent on

Also, check that each of your scripts has either the .vim extension or 
one of the names vimrc .vimrc _vimrc gvimrc .gvimrc _gvimrc .exrc _exrc

With the above, any file which Vim knows how to highlight will be 
highlighted.


Best regards,
Tony.
-- 
How long a minute is depends on which side of the bathroom door you're
on.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui