On 19/09/09 03:12, peng shao wrote: > > Hi guys. Sorry for bothering. I have a little question about syntax > for *.tex files > > As I supposed I edited a file $VIMRUNTIME/syntax/tex.vim > with several lines such as: > > hi Normal guifg=green guibg=#050505 gui=NONE > > My intend is just setting syntax for gvim, not the original vim in > gnome-terminal. For vim in terminal, > it uses the tango theme from terminal itself. > > But I found a strange phenomenon, although I set only guifg, guibg and > gui in tex.vim, the syntax > of vim changed as well, and it is significantly different from the > gvim syntax I defined in tex.vim. I tried > set t_Co=256, and this time the syntax in vim changed again, but still > different from its original syntax > in gnome-terminal. > > So I am a little confused, how should I set syntax for gvim > independently, and leave vim unchanged? > I tried a file ~/.gvim/syntax/tex.vim but it regretfully has no > effect... > > Thank you very much.
In addition to what was said by all other posters in this thread, I have another remark concerning what was said above: namely, one should NEVER modify-in-place anything in the $VIMRUNTIME folder or in any of its subfolders (at any depth), because any upgrade may (and one of them sooner or later will) erase your changes without any warning. If you want to modify a distributed script, you should first copy it to the same relative place in a DIFFERENT 'runtimepath' tree (usually to ~/.vim/<something> if on Unix, or to ~/vimfiles/<something> if on Windows), and then do your modifications there. (These other directory trees don't exist by default: create them if and when you need them.) For a colorscheme, you should also change the colorscheme name (and modify the g:colors_name accordingly), so you can access both the old and new versions, compare them, and tweak the new one until you're satisfied without losing the possibility to use the old one if something goes wrong. Best regards, Tony. -- All I can think of is a platter of organic PRUNE CRISPS being trampled by an army of swarthy, Italian LOUNGE SINGERS ... --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
