sponsor Vim development Vim logo Vim Book Ad

stata.vim : vim syntax file for Stata programs

 script karma  Rating 34/13, Downloaded by 1628  Comments, bugs, improvements  Vim wiki

created by
Jeffrey Pitblado
 
script type
syntax
 
description
stata.vim is a syntax file for Stata do and ado programs.

This syntax file will help identify:

* some common Stata programming commands
* Stata functions
* local and global macro expansions
* regular ("") and compound (`""') double quotes
* numeric and string formats
* Stata comments
* errors in parens, brackets, ...
 
install details
I keep stata.vim in $HOME/.vim/syntax/ and associate Stata programs in
$HOME/.vim/filetypes.vim using the following:

augroup filetypedetect
        autocmd! BufRead,BufNewFile *.ado       set filetype=stata
        autocmd! BufRead,BufNewFile *.class    set filetype=stata
        autocmd! BufRead,BufNewFile *.do         set filetype=stata
augrougp END
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
stata.vim 1.1.2 2006-04-17 6.0 Jeffrey Pitblado * fixed 'start' expression for stataFunc matches
stata.vim 1.1.1 2006-04-15 6.0 Jeffrey Pitblado renamed syntax groups st* to stata*
'syntax clear' only under version control
check for 'b:current_syntax', removed 'did_stata_syntax_inits'
stata.vim 1.1.0 2006-04-13 6.0 Jeffrey Pitblado * updated for Stata 9
* improved function coverage
* trimmed most Stata commands out, leaving only common programming commands
stata.vim 1.0.5 2002-10-08 6.0 Jeffrey Pitblado Initial upload
ip used for rating: 3.21.76.0

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github