Ⅰ. 插件描述
Vim syntax file for SQL Server 2005/2008.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'hoffstein/vim-tsql'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'hoffstein/vim-tsql'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'hoffstein/vim-tsql'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/hoffstein/vim-tsql
Ⅳ. 文档说明
## SQL Server 2005/2008 syntax file for Vim
Author: Benjamin Hoffstein
Contact: ben@hoffstein.net
INSTALLATION
Put the sqlserver.vim file in your syntax directory.
- On Windows, this is $VIM/vimfiles/syntax or $HOME/vimfiles/syntax.
- On Linux, this is $HOME/.vim/syntax or $VIM/vimfiles/syntax.
- If you want to make this your default syntax file for .sql files, add the following to your vimrc:
let g:sql_type_default = "sqlserver" - If you want to associate this syntax file with another extension, add the following to your vimrc (replace "ext" with the desired extension):
au BufNewFile,BufRead *.ext set filetype=sqlserver - The file contains instructions for enabling/disabling several highlighting options (for example, system stored procedures). By default, all syntax is highlighted.