dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit f61c723b7fdcc5066d494fba7e6247dd823426f7
parent 90c6d096acfec0be4fb832fc078f0ee579b8442c
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Thu, 16 Sep 2021 20:10:02 +0200

vim: improve statusline mixed indent warning?

Diffstat:
Mvim/autoload/statusline.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vim/autoload/statusline.vim b/vim/autoload/statusline.vim @@ -8,7 +8,7 @@ function! statusline#StatuslineTabWarning() if !exists("b:statusline_tab_warning") let tabs = search('^\t', 'nw') != 0 - let spaces = search('^ ', 'nw') != 0 + let spaces = search('^ \{' . &ts . ',}[^\t]', 'nw') != 0 if tabs && spaces let b:statusline_tab_warning = '[mixed-indenting]'