Ⅰ. 插件描述
Toggle useful settings inspired by vim-unimpaired (https://github.com/tpope/vim-unimpaired)Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'phongnh/vim-toggler'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'phongnh/vim-toggler'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'phongnh/vim-toggler'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/phongnh/vim-toggler
Ⅳ. 文档说明
# vim-toggler
Toggle useful options:
- set tabstop, softtabstop and shiftwidth (yo2 -> 2, yo4 -> 4, and yo8 -> 8)
- set tabstop (yo@ -> 2, yo$ -> 4, and yo* -> 8)
- exchange gj and j, gk and k (yom)
- mouse (yoM)
- "unnamed" or "unnamedplus" clipboard (yoy)
- tabline (showtabline) (yot)
- statusline (laststatus) (yoT)
- conceallevel (yok)
- expandtab (yoe)
- eol of listchars (yoE)
- scrolloff (yoz)
- showcmd (yo;)
- foldmethod(yoo)
Installation
Use vim + pathogen
cd ~/.vim
git submodule add https://github.com/phongnh/vim-toggler bundle/vim-toggler
Use vim plugin manager
" https://github.com/VundleVim/Vundle.vim
Plugin 'phongnh/vim-toggler'
:PluginInstall
" https://github.com/junegunn/vim-plug
Plug 'phongnh/vim-toggler'
:PlugInstall
" https://github.com/Shougo/neobundle.vim
NeoBundle 'phongnh/vim-toggler'
:NeoBundleInstall
License
See LICENSE.md