From b6347df73719dea0fb14695eae4d3506ebc4a36c Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 9 Apr 2017 17:21:31 -0400 Subject: [PATCH] Try forcing filetype indent after sleuth --- plugin/sleuth.vim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugin/sleuth.vim b/plugin/sleuth.vim index 890d3cb..062b3d1 100644 --- a/plugin/sleuth.vim +++ b/plugin/sleuth.vim @@ -157,10 +157,6 @@ endfunction setglobal smarttab -if !exists('g:did_indent_on') - filetype indent on -endif - function! SleuthIndicator() abort if &expandtab return 'sw='.&shiftwidth @@ -180,4 +176,9 @@ augroup END command! -bar -bang Sleuth call s:detect() +if exists('g:did_indent_on') + filetype indent off +endif +filetype indent on + " vim:set et sw=2: