Re: Re: vim infoline

From: Date: Mon, 13 Aug 2001 23:26:21 +0000
Subject: Re: Re: vim infoline
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969337083@lists.php.net to get a copy of this message
Here are some bits from my .vimrc (I use VIM 6 in some machines and VIM 5 in others), all are for making sure folding is on for XML files: if ( version >= 600 ) set foldenable set foldmethod=syntax set foldlevel=2 hi folded guibg=yellow endif as for the vimline, ussualy you will not need anything special for XML, the extension will make vim recognize it as such and then colorize it. The bit above can be improved if it is put in a Buf* or File* autocmd w/ the asscociated w/ the xml extension. I use the vimline: vim: bs=2 ts=1 sw=1 si et fen fdm=syntax fdl=2 in some XML files I have edited, modify as needed (in particular the foldlevel aka fdl) I also got some functions for dealing w/ tags, etc. I you want to get the short version of my .vimrc get it from: http://www.scripps.edu/~jesusmc/short-vimrc --- Jeroen van Wolffelaar <jeroen@a-eskwadraat.nl> wrote: > > On Mon, 13 Aug 2001, Jeroen van Wolffelaar wrote: > > > With xml, they are all colored blue... with me, > that is, and that's not > > > vim60 apparantly. I don't know which version > sysop installed... I'll ask > > > them to upgrade. > > > > Type :version. > > 5.6.70 on the main server (where I work), 5.7 on > other computers. > > > > I notice that the emacs comment is also > mode-sgml, and not xml. > > > > > > > > > So, you are right, it should be xml from a > meaning viewpoint. But the > point > > > of that line is ease-for-the-user. For vim < 6, > syntax=sgml works, and > > > syntax=xml doesn't. > > > > > > I noticed in the source of PHP a differentiation > between vim6+ and > vim<6, is > > > that appropriate here? > > > > Sure. > > Can you mail me the appropriate vim-line for version > 6 then, in which at > least tag coloring works fine? And indent would be > nice too :-) > For vim5, I think syntax=sgml is the best choice, or > do you disagree? > > > > By the way, one question: How is the sgml > rendering with vim600? Also > okay, > > > or really bad? Is xml better than sgml there? > > > > I haven't tried sgml too much. XML works great for > me, especially with > > indenting. > > I'll definitely need to upgrade :-) > > Thanks for the info, > > Jeroen > ===== --- Jesus M. Castagnetto <jmcastagnetto@php.net> __________________________________________________ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/

« previous php.doc (#969337083) next »