The existing answers have explained how to disable it and how to find information, but here's some more specific information.
Assuming it is vim-airline
(since it does look identical to my vim-airline
), this is its whitespace extension that checks for whitespace inconsistencies. Details can be found by running :h airline-whitespace
.
Now, for the specific messages.
[573]trailing
means that you have trailing whitespace on line 573, meaning that there are spaces/tabs/other whitespace following the last non-whitespace character on that line.
[515]mixed-indent
means that line 515 has indentation with both tabs and spaces. For example, writing spaces as +
and tabs as | >
, line 515 might begin with | >| >++++++
. This looks like a C source file where it is common to have indentation with tabs followed by spaces to align, like
// how it looks // with whitespace displayed
while (1) { // while (1) {
some_func_call(arg1, // | >some_func_call(arg1,
arg2); // | >+++++++++++++++arg2);
} // }
By default vim-airline
detects this an error, but has a mode that allows this (let g:airline#extensions#whitespace#mixed_indent_algo = 2
). More details can be found at :h airline-whitespace
.
[515:514]mix-indent-file
means that different lines (in this case 515 and 514) have different styles of indentation. Line 515 might be indented with tabs while 514 is indented with spaces, for example.
Every project/setup/language has different ideas of what kind of whitespace use is acceptable and what kind is not, and the whitespace extension is well customizable to suit specific needs. These options are once again found in :h vim-airline
.