vim-tsql


Ⅰ. 插件描述

Vim syntax file for SQL Server 2005/2008.

Ⅱ. 基本信息

创建日期:  2009-01-07
使用用户:  3
Github星:  12
插件作者:  Benjamin Hoffstein

Ⅲ. 安装方法

使用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

  1. 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.
  2. 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"

  3. 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

  4. The file contains instructions for enabling/disabling several highlighting options (for example, system stored procedures). By default, all syntax is highlighted.

添加新评论