feralalign.vim


Ⅰ. 插件描述

Simple script to save you from "ciw" to align text.

Ⅱ. 基本信息

创建日期:  2003-06-18
使用用户:  1
Github星:  1
插件作者:  Robert KellyIV

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Simple script that allows you to easily tab a section of spaces to a desired
column; I.e. if you want all your comments to line up on virt col 41 try
":FeralAlign 41" when your cursor is in a position to "ciw"; I.e. saves you
from "ciw<tab><tab><tab>"etc. But that is about all this does (=

Works with single lines or ranges. Ranges must be specified by a single column,
block-wise visual selection; (i.e. "<ctrl-v>j"). So to align 5 lines, place
your cursor in a good spot (where a "ciw" won’t keel something important; i.e.
spaces before the comment chars) and "<ctrl-v>4j:FeralAlign 41"; easy as that.

Limitation: Aligns to the nearest tabstop.

This script is possibly of academic value as a way to get a range command to
preserve the cursor’s column.

添加新评论