doc: developer: Allow tabs in the vim configuration for Automake files
While we do not use Automake in libav, this allows our config to be used more globally without introducing unwanted breakage. (cherry picked from commit 040c565e51985477a8fa5e42d2ddfb26ebde6608) Conflicts: doc/developer.texi
This commit is contained in:
parent
f20764102b
commit
c3829f7085
@ -215,8 +215,8 @@ the following snippet into your @file{.vimrc}:
|
|||||||
set expandtab
|
set expandtab
|
||||||
set shiftwidth=4
|
set shiftwidth=4
|
||||||
set softtabstop=4
|
set softtabstop=4
|
||||||
" allow tabs in Makefiles
|
" Allow tabs in Makefiles.
|
||||||
autocmd FileType make set noexpandtab shiftwidth=8 softtabstop=8
|
autocmd FileType make,automake set noexpandtab shiftwidth=8 softtabstop=8
|
||||||
" Trailing whitespace and tabs are forbidden, so highlight them.
|
" Trailing whitespace and tabs are forbidden, so highlight them.
|
||||||
highlight ForbiddenWhitespace ctermbg=red guibg=red
|
highlight ForbiddenWhitespace ctermbg=red guibg=red
|
||||||
match ForbiddenWhitespace /\s\+$\|\t/
|
match ForbiddenWhitespace /\s\+$\|\t/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user