vim-tsv


Ⅰ. 插件描述

Tab Separated Value niceties for Vim

Ⅱ. 基本信息

创建日期:  2012-07-18
使用用户:  4
Github星:  11
插件作者:  Philip Durbin

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Inspired by this post. . .

Vim and plaintext data files: http://briancarper.net/blog/552/

. . . this plugin sets Vim's [listchars][] for files ending in .tsv (tab separated values) and turns off wrap, such that a file might look like this:

Name»-------------Language»---------Current Release»--Last Updated»----…
Jekyll»-----------Ruby»-------------0.11.2»-----------2011-12-27»------…
Hyde»-------------Python»-----------0.4»--------------2009-10-06»------…
ikiwiki»----------Perl»-------------3.20120629»-------2012-06-29»------…

If the columns are too wide (or too narrow) for the data you're viewing, you can change the tabstop with set tabstop = 14, for example.

At launch, you can also adjust the tabstop with something like this:

vim "+set tabstop=30" data.tsv

添加新评论