summaryrefslogtreecommitdiffstats
path: root/roles/os_env_extras/files/vimrc
blob: 537b944edb43cc68c4451319071689646d63de10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
set tabstop=4
set shiftwidth=4
set expandtab
set list

"flag problematic whitespace (trailing and spaces before tabs)
"Note you get the same by doing let c_space_errors=1 but
"this rule really applies to everything.
highlight RedundantSpaces term=standout ctermbg=red guibg=red
match RedundantSpaces /\s\+$\| \+\ze\t/ "\ze sets end of match so only spaces highlighted
"use :set list! to toggle visible whitespace on/off
set listchars=tab:>-,trail:.,extends:>