Differences between revisions 7 and 8
Revision 7 as of 2003-08-15 00:15:16
Size: 745
Editor: ip503dabc3
Comment:
Revision 8 as of 2003-08-15 00:36:38
Size: 977
Editor: ip503dabc3
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
You can automatically enable syntax coloring and automatic indentation for Python code by adding the following lines to your ~/.vimrc file:

autocmd BufRead,BufNewFile *.py syntax on
autocmd BufRead,BufNewFile *.py set ai
----

ViImproved (VIM) is an improved version of the editor "vi", one of the standard text editors on UNIX systems. It has all the features you'll ever need from an editor, and probably three times that many more that you'll never use ;-) The newer versions also include a 'vimdiff' mode that you can use to diff and merge file(s). Oh, I didn't mention it's also scriptable in Python, and there's a graphical version: GVIM. Get it from http://www.vim.org/.

VIM is also available in your favourite OS. The new version 6.0 has folding. Folding makes your life easy when you have some long files. By the way, JedIt also has folding.

You can download many scripts and learn new tips from the site http://vim.sourceforge.net


You can automatically enable syntax coloring and automatic indentation for Python code by adding the following lines to your ~/.vimrc file:

autocmd BufRead,BufNewFile *.py syntax on autocmd BufRead,BufNewFile *.py set ai


CategoryEditors

Vim (last edited 2013-06-18 05:14:05 by Apes)

Unable to edit the page? See the FrontPage for instructions.