Syntax highlighting and snippets for editing Stata files with vim/neovim.
- Syntax highlighting for
.do
and.ado
scripts. - Syntax highlighting for
.dct
dictionary files (used withinfile
). - Syntax highlighting for SMCL (Stata help files).
- Snippets for use with UltiSnips.
This project is currently compatible with Stata 15. Several commands introduced in Stata 16 and 17 will not be highlighted correctly. I mostly use Stata 15 and I am unlikely to update this project to support later versions of Stata until I upgrade. Pull requests are welcome.
Include the following in your .vimrc
(vim) or init.vim
(neovim):
call plug#begin()
Plug 'poliquin/stata-vim'
call plug#end()
Include the following in your .vimrc
(vim) or init.vim
(neovim):
call vundle#begin()
Plugin 'poliquin/stata-vim'
call vundle#end()
Clone the repo to your bundles/
directory:
cd ~/.vim/bundle
git clone git://github.com/poliquin/stata-vim.git
- The main syntax file is mostly the work of Jeff Pitblado.
- The SMCL syntax file is entirely from Jeff Pitblado.
- Number highlighting group from Zizhong Yan