Ⅰ. 插件描述
Automatically resizes your windowsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'justincampbell/eighties-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'justincampbell/eighties-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'justincampbell/eighties-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/justincampbell/vim-eighties
Ⅳ. 文档说明
# eighties.vim
Automatically resizes your windows
Features
- Resizes the width of the current window when switching
- Calculates the minimum width (80 by default) + line numbers/signs/etc
- Won't shrink the current window
Won't resize side panels (supports NERDTree and vimpanel)
- Additional bufname entries can be specified as an array. See Configuration & Defaults
Installation
If you don't already use a plugin manager, I recommend
vim-plug
vim-plug
Plug 'justincampbell/vim-eighties'
Vundle
Plugin 'justincampbell/vim-eighties'
Pathogen
cd ~/.vim/bundle
git clone git://github.com/justincampbell/vim-eighties.git
Configuration & Defaults
let g:eighties_enabled = 1
let g:eighties_minimum_width = 80
let g:eighties_extra_width = 0 " Increase this if you want some extra room
let g:eighties_compute = 1 " Disable this if you just want the minimum + extra
let g:eighties_bufname_additional_patterns = ['fugitiveblame'] " Defaults to [], 'fugitiveblame' is only an example. Takes a comma delimited list of bufnames as strings.