PGTS Journal, November 2003

Click here for: PGTS Journal Main Page
Click here for: Prev Feedback column
Click here for: Next Feedback column

Feedback: October 2003, Published: November 2003

If you have a question regarding any of the articles in this journal, or some comments please send them in. If there are any general questions about Unix or Database Administration, I will attempt to answer them.

Feedback:

Hints for this month:


How do I turn on syntax checking for pgtclsh in Vim

Date: Sun, 2 Nov 2003 13:32:46 +1100
From: Gerry Patterson 


Ok, it's probably well documented somewhere -- but I couldn't find it.
So I resorted to find (that's /usr/bin/find) and grep. 

On my system there was a file in the Vim scripts directory called
scripts.vim.

I found a comment line as follows:
" TCL scripts

Underneath it was the line that nominates which shebangs to treat as TCL.
On my system it looked like this:
elseif s:line1 =~ '^#!.*[/\\]\(tclsh\|wish\|expectk\|itclsh\|itkwish\)\>'

I added pgtclsh to the list, so that it looked like this:
elseif s:line1 =~ '^#!.*[/\\]\(tclsh\|wish\|expectk\|itclsh\|itkwish\|pgtclsh\)\>'

And Voila! TCL syntax checking was switched on for pgtclsh scripts.

Back To Index




Home | Services | Journal | Links | Contact

Last Updated: 13-Jan-2004 00:03 GMT
To contact us:
Phone: 03 9888 0117
Fax: 03 9888 0042
Email: Click Here
Last Updated: 13-Jan-2004 00:03 GMT

1091 Riversdale Rd
Surrey Hills
VIC 3127