Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dodie/vim-fibo-indent
Fibonacci Indentation for Vim.
https://github.com/dodie/vim-fibo-indent
code-quality vim-plugin
Last synced: 4 days ago
JSON representation
Fibonacci Indentation for Vim.
- Host: GitHub
- URL: https://github.com/dodie/vim-fibo-indent
- Owner: dodie
- License: mit
- Created: 2018-08-28T05:58:09.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-04T15:29:36.000Z (about 6 years ago)
- Last Synced: 2024-08-01T22:54:27.958Z (3 months ago)
- Topics: code-quality, vim-plugin
- Language: Vim script
- Homepage:
- Size: 63.5 KB
- Stars: 276
- Watchers: 5
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
vim-fibo-indent
===============Vim plugin that increases the spacing for each successive indentation according
to the Fibonacci sequence.![vim-fibo-indent](https://github.com/dodie/vim-fibo-indent/blob/master/tty.gif "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](https://github.com/tpope/vim-pathogen) or
[Vundle](https://github.com/gmarik/vundle).## Configuration
Add this line to your `.vimrc` to disable this plugin:
```
let g:FiboIndentDisable=1
```If for some reason you need more than 15 levels of indentation its depth can be set with:
```
let g:FiboMaxDepth=20
```To disable Fibonacci formatting for a given filetype, use the following:
```
autocmd FileType SOME_FILETYPE let g:gFiboIndentDisable=1
```## Inspiration
The idea came from a [Tweet](https://twitter.com/RichardWestenra/status/765488378951376896)
made by [@RichardWestenra](https://twitter.com/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.