All Projects → dodie → Vim Disapprove Deep Indentation

dodie / Vim Disapprove Deep Indentation

Licence: mit
ಠ_ಠ Vim plugin to disapprove deeply indented code. ಠ_ಠ

Projects that are alternatives of or similar to Vim Disapprove Deep Indentation

Vim Fibo Indent
Fibonacci Indentation for Vim.
Stars: ✭ 244 (-56.89%)
Mutual labels:  code-quality, vim-plugin
Srcery Vim
Dark colorscheme for gvim and vim
Stars: ✭ 518 (-8.48%)
Mutual labels:  vim-plugin
Log Process Errors
Show some ❤️ to Node.js process errors
Stars: ✭ 424 (-25.09%)
Mutual labels:  code-quality
Vim Colors Pencil
Light (& dark) color scheme inspired by iA Writer
Stars: ✭ 498 (-12.01%)
Mutual labels:  vim-plugin
Vim Godebug
Go debugging for Vim
Stars: ✭ 437 (-22.79%)
Mutual labels:  vim-plugin
Awesome Guidelines
A curated list of high quality coding style conventions and standards.
Stars: ✭ 6,379 (+1027.03%)
Mutual labels:  code-quality
Rainbow levels.vim
A different approach to code highlighting.
Stars: ✭ 415 (-26.68%)
Mutual labels:  vim-plugin
Composerrequirechecker
A CLI tool to check whether a specific composer package uses imported symbols that aren't part of its direct composer dependencies
Stars: ✭ 557 (-1.59%)
Mutual labels:  code-quality
Committia.vim
A Vim plugin for more pleasant editing on commit messages
Stars: ✭ 510 (-9.89%)
Mutual labels:  vim-plugin
Palenight.vim
Soothing color scheme for your favorite [best] text editor
Stars: ✭ 492 (-13.07%)
Mutual labels:  vim-plugin
Sonar Dotnet
Code analyzer for C# and VB.NET projects https://redirect.sonarsource.com/plugins/vbnet.html
Stars: ✭ 466 (-17.67%)
Mutual labels:  code-quality
Nerdcommenter
Vim plugin for intensely nerdy commenting powers
Stars: ✭ 4,454 (+686.93%)
Mutual labels:  vim-plugin
Phpdependencyanalysis
Static code analysis to find violations in a dependency graph
Stars: ✭ 505 (-10.78%)
Mutual labels:  code-quality
Vim Markdown Toc
A vim 7.4+ plugin to generate table of contents for Markdown files.
Stars: ✭ 427 (-24.56%)
Mutual labels:  vim-plugin
Flake8 Bugbear
A plugin for Flake8 finding likely bugs and design problems in your program. Contains warnings that don't belong in pyflakes and pycodestyle.
Stars: ✭ 518 (-8.48%)
Mutual labels:  code-quality
Vim Startify
🔗 The fancy start screen for Vim.
Stars: ✭ 4,479 (+691.34%)
Mutual labels:  vim-plugin
Simplecov
Code coverage for Ruby with a powerful configuration library and automatic merging of coverage across test suites
Stars: ✭ 4,362 (+670.67%)
Mutual labels:  code-quality
Vim Markdown Composer
An asynchronous markdown preview plugin for Vim and Neovim.
Stars: ✭ 501 (-11.48%)
Mutual labels:  vim-plugin
Julia Vim
Vim support for Julia.
Stars: ✭ 556 (-1.77%)
Mutual labels:  vim-plugin
Pep8speaks
A GitHub app to automatically review Python code style over Pull Requests
Stars: ✭ 546 (-3.53%)
Mutual labels:  code-quality

vim-disapprove-deep-indentation

This Vim plugin disapproves deeply indented code.

Disapproval in action

By default, it shows ಠ_ಠ at the beginning of each line that is indented at least 5 levels. It can be configured with the following variables (setting them to 0 disables the feature):

let g:LookOfDisapprovalTabThreshold=5
let g:LookOfDisapprovalSpaceThreshold=(&tabstop*5)

Disapproval in action

Installation

You can easily install this Plugin with Pathogen or Vundle.

Vim needs to be compiled with +conceal for the face to appear.

Inspiration

The idea came from a comment made by StripTheFlesh in this thread on Reddit:

Just use ಠ_ಠ for indents. It will remind you to not use a lot indentation levels.

How it works

The plugin uses Vim's conceal feature. It does not modify the source code in any way, the disapproving look is just a visual indicator.

Styles for all concealed characters in Vim can be set with a single style rule. This plugin makes them red in order to have a really disapproving look for the eye. If you are using this plugin in conjunction with other plugins that rely on conceal feature (for example, indentLine), you might want to disable this styling:

let g:LookOfDisapprovalNoStyle=1

Conceal depends on modifying the syntax highlighting rules. For some file types and syntax settings, the rules defined in this plugin may conflict with the default rules applied for a filetype, making the look of disapproval appear in the beginning of shallowly indented lines as well.

In the case you encounter this issue, feel free to open an issue. Until it's fixed, you can disable the plugin for the problematic file types with the following command:

autocmd FileType SOME_FILETYPE let g:LookOfDisapprovalTabThreshold=0 | let g:LookOfDisapprovalSpaceThreshold=0
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].