sleuth.vim : Heuristically set buffer options
| script karma |
Rating 17/5,
Downloaded by 72
|
Comments, bugs, improvements
|
Vim wiki
|
| created by |
| Tim Pope |
| |
| script type |
| utility |
| |
| description |
This plugin automatically adjusts 'shiftwidth' and 'expandtab' heuristically based on the current file, or, in the case the current file is new, blank, or otherwise insufficient, by looking at other files of the same type in the current and parent directories. In lieu of adjusting 'softtabstop', 'smarttab' is enabled.
Compare to DetectIndent (vimscript #1171). I wrote this because I wanted something fully automatic. My goal is that by installing this plugin, you can remove all indenting related configuration from your vimrc.
https://github.com/tpope/vim-sleuth |
| |
| install details |
| Extract in ~/.vim (~\vimfiles on Windows). |
| |
script versions (upload new version)
Click on the package to download.
| sleuth.zip |
1.1 |
2013-01-21 |
7.0 |
Tim Pope |
Support custom tabstop in pure tabs files.
Fix performance issue with globbing for other files.
Skip over POD comments. |
| sleuth.zip |
1.0 |
2012-12-30 |
7.0 |
Tim Pope |
Initial upload |
ip used for rating: 107.21.186.38
|