vim-togglebg


Ⅰ. 插件描述

Toggle Background inside Vim

Ⅱ. 基本信息

创建日期:  2015-06-14
使用用户:  8
Github星:  4
插件作者:  Ramzi Akremi

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

## Toggle Background Function

Solarized comes with a Toggle Background plugin that by default will map to if that mapping is available. If it is not available you will need to either map the function manually or change your current mapping to something else.

To set your own mapping in your .vimrc file, simply add the following line to support normal, insert and visual mode usage, changing the "" value to the key or key combination you wish to use:

call togglebg#map("<F5>")

Note that you'll want to use a single function key or equivalent if you want the plugin to work in all modes (normal, insert, visual).

Note

This script has been developed by Ethan Schoonover for his Solarized color scheme.

Original work can be found here: [Original Script]

添加新评论