Saturday, October 23, 2010

commenting with Stata files

I am having trouble getting vim to allow me to use Stata-specific
comments with a shortcut. I tried using a plugin called
FeralToggleCommentify, which is available at
http://vim.sourceforge.net/scripts/script.php?script_id=665 .

Stata files have extensions like *.ado,*.class,*.do,*.imata, and
*.mata. I tried to include these file types by adding things like this
to the plugin:

elseif fileType == 'ado' || fileType =='do'
let commentSymbol_L = '/* '
let commentSymbol_R = ' */'

I could not get it to work. It still gives me an error message that
the file type is not recognized. I also tried hacking some of the
other commenting plugins, but with no luck. I also tried contacting
the guy who wrote the script, but the e-mail bounced.

Has anyone gotten something like this to work? I am using vim 7.3.

Dimitriy

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

2 comments: