tpope / vim-sleuth

sleuth.vim: Heuristically set buffer options
https://www.vim.org/scripts/script.php?script_id=4375
1.92k stars 86 forks source link

[Feature Request] Option to only go up N directories. #18

Closed TheBlueMatt closed 2 years ago

TheBlueMatt commented 9 years ago

I'd like to be able to set an option to only search up one or two directories (though best would be to only traverse up until you find a .git,.svn,etc). I know little of vim scripting, so I'm just gonna leave this here...

tpope commented 2 years ago

With EditorConfig to fall back on for deeply nested projects, I'm open to trying out a limit of the containing directory and direct parent only.