CSVTK


Ⅰ. 插件描述

Tool kit to work with Comma Separated Values files

Ⅱ. 基本信息

创建日期:  2005-07-30
使用用户:  1
Github星:  1
插件作者:  Christophe R

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

CSVTK Provides functions and mappings to help working with CSV files or
any files where a separator (e.g. a comma) is used between values and
where values can be enclosed between delimiters (e.g. double quotes).
Separators characters inside delimiters are not considered as separators.

Field numberting starts at 1.

Mappings allow user to:
  * Jump to a specific field,
  * Display the field number of the field under the cursor,
  * Return the value of field (given the field number) on current line or
  specified line,
  * Toggle highlighting for each field (in one or several colors).

The highlight will show in the current line and be updated when user
changes line (the highlight is updated thanks to an autocomand on the
CursorHold event, therefore it is not updated when in insert mode). The
separator following the field is highlighted as part of the field.

Also, a few examples are provided to show how to display the current field
number in the status line (so you always know what field you're in) and
how to fold lines depending on field content.

添加新评论