Отключить проверку пробелов для файлов C++ в vim syntastic

Место, где я работаю, имеет смешанные отступы. К сожалению, это стиль, который компания решила (якобы). Я бы предпочел не видеть ошибок "смешанного отступа", создаваемых syntastic в vim, но я не хочу вообще его отключать. Есть ли способ отключить проверки пробелов или что-то? Или я могу как-то переключиться на лучший чекер? Мой vimrc автоматически удаляет конечные пробелы и исправляет отступы, так что мне все равно эти проверки не нужны.

1 ответ

Я полагаю, это Vim-авиакомпания. Чтение справки:

* customize the type of mixed indent checking to perform.
  " must be all spaces or all tabs before the first non-whitespace character
  let g:airline#extensions#whitespace#mixed_indent_algo = 0 (default)

  " certain number of spaces are allowed after tabs, but not in between
  " this algorithm works well for /** */ style comments in a tab-indented file
  let g:airline#extensions#whitespace#mixed_indent_algo = 1

  " spaces are allowed after tabs, but not in between
  " this algorithm works well with programming styles that use tabs for
  " indentation and spaces for alignment
  let g:airline#extensions#whitespace#mixed_indent_algo = 2

Также:

* configure which whitespace checks to enable.
  " indent: mixed indent within a line
  " long:   overlong lines
  " trailing: trailing whitespace
  " mixed-indent-file: different indentation in different lines
  let g:airline#extensions#whitespace#checks = [ 'indent', 'trailing', 'long', 'mixed-indent-file' ]
Другие вопросы по тегам