Folding in vim

Terry Hancock hancock at anansispaceworks.com
Tue Jul 5 11:21:57 EDT 2005


On Monday 04 July 2005 12:41 am, Ron Adam wrote:
> > Actually, I think this one is doing what I want now. It seems
> > to be that it isn't robust against files with lots of mixed tabs
> > and spaces.  I also got "space_hi.vim" which highlights tabs
> > and trailing spaces, which made it a lot easier to fix the 
> > problem.
> 
> I edited my syntax coloring file to do the same thing.  Not to mention 
> adding a few key words that were missing.  :-)

This script:
http://www.vim.org/scripts/script.php?script_id=790
"python.vim" (but in ~/.vim/syntax) by Dmitry Vasiliev

adds a few dozen Python-specific syntax keywords, I used these
and edited my usual color scheme to give them more refined
syntax coloring, which is nice.  It is quite useful to have Unicode
strings and Raw strings display differently, for example, since
it's easy to forget which you're using (unless you're right next
to the mark).

--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks  http://www.anansispaceworks.com




More information about the Python-list mailing list