Home
The Toolkit for Online Communities
15265 Community Members, 0 members online, 2086 visitors today
Log In Register

Vi as an OpenACS IDE

OpenACS Home : xowiki : Vi as an OpenACS IDE
Search · Index
Previous Month May 2012
Sun Mon Tue Wed Thu Fri Sat
29 30 1 (1) 2 3 4 (1) 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 (1) 24 25 26
27 28 29 30 31 1 2

Popular tags

ad_form , ADP , ajax , aolserver , asynchronous , bgdelivery , bugtracker , COMET , cvs , debian , emacs , FreeBSD , includelets , install , installation , installers , javascript , libthread , linux , monitoring , nginx , oracle , osx , patches , performance , postgres , pound , redhat , selenium , ssl

No registered users in community xowiki
in last 30 minutes

Contributors

OpenACS.org

No registered users in community xowiki
in last 10 minutes

Vi as an OpenACS IDE

In vim add the following in your .vimrc will help convert tabs to 4 spaces to meet part of the OpenACS coding standard.

set tabstop=4
set expandtab
set list
set listchars=tab:>.

It's also nice to have syntax highlighting by adding the following line

syntax on 

Also useful to use tagging features. In brief - run ctags -R in the root of the install or source tree.

At that point you can edit using vim -t procname or ::package::procname and go to the corresponding place in the code. From within the code, you can lookup functions by having the term highlighted and hit CTL-] - use CTL-T to go back.

Only works if you edit from the top directory, all tags are relative to there.