项目作者: dodie

项目描述 :
Fibonacci Indentation for Vim.
高级语言: Vim script
项目地址: git://github.com/dodie/vim-fibo-indent.git
创建时间: 2018-08-28T05:58:09Z
项目社区:https://github.com/dodie/vim-fibo-indent

开源协议:MIT License

下载


vim-fibo-indent

Vim plugin that increases the spacing for each successive indentation according
to the Fibonacci sequence.

vim-fibo-indent

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:

  1. let g:FiboIndentDisable=1

If for some reason you need more than 15 levels of indentation its depth can be set with:

  1. let g:FiboMaxDepth=20

To disable Fibonacci formatting for a given filetype, use the following:

  1. autocmd FileType SOME_FILETYPE let g:gFiboIndentDisable=1

Inspiration

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.