Ⅰ. 插件描述
Awk wrapper and shorthand functions for VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'tejr/vawk'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'tejr/vawk'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'tejr/vawk'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/tejr/vawk
Ⅳ. 文档说明
Vawk
Work with Awk-friendly columnar data in Vim. Provides a simple wrapper to Awk
as well as a few useful functions for chopping and changing columnar data.
Requires Awk to be installed, of course.
All commands accept a range which defaults to the entire file. For commands
which accept columns, these should be comma-separated; you can also use ranges
as a shorthand, e.g. 1,3-6,10,11.
:[range]Vawk <script>-- Run an arbitrary Awk script.:[range]Vcut <columns>-- Delete the columns specified.:[range]Vonly <columns>-- Delete all columns except for the specified.g:vawksep-- The record separator to use for the data. Defaults to Awk's
usual whitespace delimiting.
License
Copyright (c) Tom Ryder. Distributed under the same terms as Vim itself.
See :help license.