Hacker News new | ask | show | jobs
by reaperhulk 4723 days ago
This is slick. Anyone with more vim-fu than me have a good way to add mixed tabs/spaces warnings to airline?
2 comments

You can accomplish something similar with listchars and list:

  set list
  set listchars=tab:»·,trail:·
It will not give you a file-wide warning but it will make tabs stand out (along with trailing whitespace).

Not much help if you actually want tabs, granted.

Oddly enough I added listchars data to my vimrc today without even thinking it would be helpful for detecting mixed. This ought to be good enough for now, thanks!
here's a blog post i found that does what you need (http://got-ravings.blogspot.com/2008/10/vim-pr0n-statusline-...)

and then you can replace one of the airline sections with it.