Only applies to indent settings (not max lines etc). Add s:GetValue() to properly grab buffer-local options. Assumes if they are active that we should use their value (instead of assuming existence means 1) to allow us to force settings for specific filetypes. To make most filetypes use 'expandtab', add this to vimrc: let g:detectindent_preferred_expandtab = 1 And for the exceptions that should use 'noexpandtab' add this to after/ftplugin/FILETYPENAMEHERE.vim: let b:detectindent_preferred_expandtab = 1 Add documentation.
Add detectindent_preferred_when_mixed so we use detectindent_preferred_indent and detectindent_preferred_expandtab when both tabs and spaces are found. This makes it easier for users to enforce a "correct" setting when working in messy code.
…ile is very large. Default number of lines to analyse is 1024. Default can be changed with g:detectindent_max_lines_to_analyse variable. Signed-off-by: Pauli Nieminen <firstname.lastname@example.org>