From 5cc6548b2e4ceec0491a4bcb9a644258cb1fe133 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 28 Mar 2017 15:01:24 -0400 Subject: [PATCH] Provide :Sleuth References https://github.com/tpope/vim-sleuth/issues/36 --- doc/sleuth.txt | 3 +++ plugin/sleuth.vim | 2 ++ 2 files changed, 5 insertions(+) diff --git a/doc/sleuth.txt b/doc/sleuth.txt index d79a7fe..e187cc9 100644 --- a/doc/sleuth.txt +++ b/doc/sleuth.txt @@ -14,4 +14,7 @@ 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. + *:Sleuth* +:Sleuth Manually detect indentation. + vim:tw=78:et:ft=help:norl: diff --git a/plugin/sleuth.vim b/plugin/sleuth.vim index df8bda4..276d9f7 100644 --- a/plugin/sleuth.vim +++ b/plugin/sleuth.vim @@ -166,4 +166,6 @@ augroup sleuth autocmd FileType * call s:detect() augroup END +command! -bar -bang Sleuth call s:detect() + " vim:set et sw=2: