Add option to disable automatic detection (#36)
Auto detection can be disabled by setting: let g:sleuth_automatic = 0
This commit is contained in:
parent
5cc6548b2e
commit
2826bc17ef
@ -17,4 +17,11 @@ current and parent directories. In lieu of adjusting 'softtabstop',
|
|||||||
*:Sleuth*
|
*:Sleuth*
|
||||||
:Sleuth Manually detect indentation.
|
:Sleuth Manually detect indentation.
|
||||||
|
|
||||||
|
SETTINGS *sleuth-settings*
|
||||||
|
|
||||||
|
Automatic detection of buffer options can be controlled with:
|
||||||
|
>
|
||||||
|
let g:sleuth_automatic = 0
|
||||||
|
<
|
||||||
|
|
||||||
vim:tw=78:et:ft=help:norl:
|
vim:tw=78:et:ft=help:norl:
|
||||||
|
@ -163,7 +163,7 @@ endif
|
|||||||
|
|
||||||
augroup sleuth
|
augroup sleuth
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd FileType * call s:detect()
|
autocmd FileType * if get(g:, 'sleuth_automatic', 1) | call s:detect() | endif
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
command! -bar -bang Sleuth call s:detect()
|
command! -bar -bang Sleuth call s:detect()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user