# vim-sleuth **Repository Path**: suyelu/vim-sleuth ## Basic Information - **Project Name**: vim-sleuth - **Description**: nvim 自动化安装 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2023-06-09 - **Last Updated**: 2024-09-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # sleuth.vim 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. Modelines and [EditorConfig][] are also consulted, adding `'tabstop'`, `'textwidth'`, `'endofline'`, `'fileformat'`, `'fileencoding'`, and `'bomb'` to the list of supported options. [EditorConfig]: https://editorconfig.org/ ## Installation Install using your favorite package manager, or use Vim's built-in package support: mkdir -p ~/.vim/pack/tpope/start cd ~/.vim/pack/tpope/start git clone https://tpope.io/vim/sleuth.git vim -u NONE -c "helptags sleuth/doc" -c q ## Notes * If your file is consistently indented with hard tabs, `'shiftwidth'` will be set to your `'tabstop'`. Otherwise, a `'tabstop'` of 8 is enforced, unless another value is explicitly declared in a modeline or EditorConfig. ## Self-Promotion Like sleuth.vim? Follow the repository on [GitHub](https://github.com/tpope/vim-sleuth) and vote for it on [vim.org](http://www.vim.org/scripts/script.php?script_id=4375). And if you're feeling especially charitable, follow [tpope](http://tpo.pe/) on [Twitter](http://twitter.com/tpope) and [GitHub](https://github.com/tpope). ## License Copyright © Tim Pope. Distributed under the same terms as Vim itself. See `:help license`.