Skip to content

augmify/vim-disapprove-deep-indentation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 by with the following variables (setting them to 0 disables the feature):

let g:LookOfDisapprovalTabTreshold=5
let g:LookOfDisapprovalSpaceTreshold=(&tabstop*5)

Disapproval in action

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.

##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.

About

ಠ_ಠ Vim plugin to disapprove deeply indented code. ಠ_ಠ

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%