vim-operator-breakline


Ⅰ. 插件描述

A vim operator to break lines even on words

Ⅱ. 基本信息

创建日期:  2015-05-16
使用用户:  1
Github星:  5
插件作者:  Alisue

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# vim-operator-breakline

Like gq but break a line even on words.

Usage

This plugin does not provide actual mappings so define these by yourself like:

" The following mappings use the value of 'textwidth'
nmap <C-g>q <Plug>(operator-breakline-textwidth)
xmap <C-g>q <Plug>(operator-breakline-textwidth)

" The following mappings shows prompt to ask the value
nmap <C-g>Q <Plug>(operator-breakline-manual)
xmap <C-g>Q <Plug>(operator-breakline-manual)

Note: this plugin silently fails when the target text is shorter than the length you've specified.

Requirements

Acknowledgment

Thanks @cohoma! http://lingr.com/room/vim/archives/2015/05/16#message-21858539

添加新评论