vim-longlines


Ⅰ. 插件描述

Plugin to help navigate through long soft-wrapped lines

Ⅱ. 基本信息

创建日期:  2018-10-02
使用用户:  1
Github星:  20
插件作者:  manu-mannattil

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

vim-longlines

A Vim plugin to help navigate through long soft-wrapped lines.

Installation

Use your favorite plugin manager or install as a Vim package (see `:help
packages`).

Usage

After installing the plugin, use :LongLines to toggle the longline
mode and :LongLines! to turn it off. It's also possible to
automatically enable the longline mode for certain filetypes by using an
autocommand:

" Enable the longlines plugin for TeX and MediaWiki files.
autocmd FileType mediawiki,tex LongLines

When the longline mode is on, motion commands such as j, k, gg,
G, etc., work on display lines rather than actual lines. Although the
longline mode replicates most commands reasonably well, some mappings
(e.g., dd, V, etc.) don't work very well, and scrolling moves the
cursor.

Options

When the longline mode is on, text is not hardwrapped by default and
options that enable automatic hardwrapping of text (e.g., Vim's default
fo=tcq) are altered to prevent this. If you wish to keep these
options unaltered, set the global variable g:longlines_keep_opts to
a nonzero value:

let g:longlines_keep_opts = 1

Similarly, when the longline mode is on, all motions commands are
remapped to work on display lines, even when user-defined maps exist.
If you wish to preserve already existing mappings, set the global
variable g:longlines_keep_maps to a nonzero value:

let g:longlines_keep_maps = 1

License

Public domain. See the file UNLICENSE for more details.

添加新评论