Programmers Editor

Bernhard Reiter bernhard at alpha1.csd.uwm.edu
Thu Sep 9 14:42:51 EDT 1999


On 08 Sep 1999 15:00:24 -0400, Andrew M. Kuchling <akuchlin at mems-exchange.org> wrote:
>Just follow up to this posting with notes on
>configuring your editor of choice.

vim after version 5.x comes with python syntax highlighting rules,
just open a file with ".py" ending and vim will know that it is python.

You might need to give vim your background complextion and turn syntax
on though.

The commands to turn it on usually go in the ~/.vimrc
note that I have the background set to dark, too. (light is the other option.)

" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
  set background=dark
  syntax on
  set hlsearch
endif

If you use the terminal program version of vim (called vim) your terminal
has to do color and the TERM entry and terminfo/termcap information have
to be correct of course. The GUI versions (gvim) can do color themselfs.

If you compile vim you can disable syntax highlighting.


Someone should elaborate on the tab use in vim a bit.
	Bernhard

-- 
Research Assistant, Geog Dept UM-Milwaukee, USA.    (www.uwm.edu/~bernhard)
Association for a Free Informational Infrastructure              (ffii.org)




More information about the Python-list mailing list