Ⅰ. 插件描述
Fibonacci Indentation for Vim.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'dodie/vim-fibo-indent'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'dodie/vim-fibo-indent'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'dodie/vim-fibo-indent'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/dodie/vim-fibo-indent
Ⅳ. 文档说明
vim-fibo-indent
Vim plugin that increases the spacing for each successive indentation according
to the Fibonacci sequence.

Great for mathematicians and for people who like to avoid deep indentations.
Supports 15 indentation levels, which should be more than enough even if you have
a really wide display (though it can be increased for the extra brave).
Installation
You can easily install this Plugin with
Pathogen or
Vundle.
Configuration
Add this line to your .vimrc to disable this plugin:
let g:FiboIndentDisable=1If for some reason you need more than 15 levels of indentation its depth can be set with:
let g:FiboMaxDepth=20To disable Fibonacci formatting for a given filetype, use the following:
autocmd FileType SOME_FILETYPE let g:gFiboIndentDisable=1Inspiration
The idea came from a Tweet
made by @RichardWestenra.
How it works
This plugin wraps the original formatter defined for a filetype and modifies its indentation
levels to match the Fibonacci sequence. It also sets tabstop=1 to use a single space for
the basis of the indentation levels.