smartcolumncolors


Ⅰ. 插件描述

vim plugin to alert when we reach a defined number of characters per a line

Ⅱ. 基本信息

创建日期:  2014-06-16
使用用户:  3
Github星:  4
插件作者:  Gago

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Smart Column Colors
=

This plugin alert us when we reach a defined amount of characters per line.

Instead of showing a line over all the content, showing the limit,
SmartColumnColors displays a bg/fg distinctive for that character in particular.

How it looks? (red character)
-
ScreenShot

Install
-

if you are using janus, put it under ~/.janus like this:

  git clone git@github.com:gagoar/SmartColumnColors.git

then all you need to do is restart your vim/mvim

Options (colors, column limit)
-

Custom column number? (on your .vimrc/.vimrc.after)

  let g:smart_display_opts = { 'column' : NN }

where NN it's the column number that you want highlighted

Custom Highlighted colors? (on your .vimrc/.vimrc.after)

  let g:smart_display_opts = {'guifg': 'White', 'guibg': 'Red' }

note you could use all the properties mentioned erlier in the same
declaration:

  let g:smart_display_opts = {'guifg': 'White', 'guibg': 'Red', 'column' : 82 }

Disabling
-

To disable it globally place the following in your .vimrc:

  let g:loaded_SmartColumnColors = 1

To disable it for just the current buffer set the following anywhere it makes sense:

  let b:disable_SmartColumnColors = 1

If you just wanted to do that temporarily you can execute in your vim:

  set b:disable_SmartColumnColors = 0

or

  unlet b:disable_SmartColumnColors` and it will start working again.

添加新评论