rainbow_csv.vim


Ⅰ. 插件描述

Highlight columns in csv/tsv files and run SELECT queries in SQL-like language

Ⅱ. 基本信息

创建日期:  2013-05-25
使用用户:  1
Github星:  5
插件作者:  Dmitry Ignatovich

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/rainbow-csv-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/rainbow-csv-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/rainbow-csv-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/rainbow_csv.vim

Ⅳ. 文档说明

Rainbow CSV has 2 main features:

  • Highlights csv columns in different rainbow colors.
  • Provides SELECT and UPDATE queries in RBQL: SQL-like transprogramming query language.

Demonstration gif:
https://i.imgur.com/Tnk9KZv.gif

There are 2 ways to enable csv columns highlighting:

  • CSV autodetection based on file content. File extension doesn't have to be .csv or .tsv
  • Manual CSV delimiter selection with :RainbowDelim command (So you can use rainbow_csv for non-table files, e.g. to highlight function arguments in different colors)

To run an RBQL query either press F5 or enter the query in vim command line e.g. :Select a1, a2

More info can be found here: https://github.com/mechatroner/rainbow_csv

添加新评论