Ⅰ. 插件描述
stata.vim: Vim plugin for editing Stata and Mata source filesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'jpitblado/stata-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'jpitblado/stata-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'jpitblado/stata-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/jpitblado/vim-stata
Ⅳ. 文档说明
# stata.vim
Syntax file for editing Stata and Mata source files.
Some mappings I find specifically useful while editing Stata and Mata source
files.
Installation
I use pathogen.vim
to install Vim plugins.
If you do too, then you can use the following to install this plugin:
cd ~/.vim/bundle
git clone https://github.com/jpitblado/vim-stata.git stataStata commands
If you want Vim to recognize the full list of documented and
'undocumented' commands in Stata, copy stata_commands.vim to$HOME/.vim/after/syntax/stata.vim or use a symbolic link.
mkdir -p $HOME/.vim/after/syntax
ln -s $PWD/stata_commands.vim $HOME/.vim/after/syntax/stata.vimFuture plans
Update the syntax file to conform with the current Stata release.
License
Copyright (c) Jeff Pitblado
Distributed under the same terms as Vim itself. See :help license.