diff options
author | Max Christian Pohle | 2017-06-11 20:47:59 +0200 |
---|---|---|
committer | Max Christian Pohle | 2017-06-11 20:47:59 +0200 |
commit | 455e80e5b96b2abd9c04c96ba4015828bbb7786d (patch) | |
tree | db73663f60f1ec841884e2125abf2d0ea685d25e /vimrc-full | |
parent | 613d6b70a09f8aac7301c3e62ba9ed924e523ec3 (diff) | |
download | vim-455e80e5b96b2abd9c04c96ba4015828bbb7786d.tar.bz2 vim-455e80e5b96b2abd9c04c96ba4015828bbb7786d.zip |
Made EOL whitespace detection a BufEnter autocmd
Diffstat (limited to 'vimrc-full')
-rw-r--r-- | vimrc-full | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -645,7 +645,8 @@ if has("autocmd") | |||
645 | 645 | ||
646 | augroup extra_whitespace " { | 646 | augroup extra_whitespace " { |
647 | highlight ExtraWhitespace ctermbg=red ctermfg=white guibg=red | 647 | highlight ExtraWhitespace ctermbg=red ctermfg=white guibg=red |
648 | autocmd BufEnter * syn match ExtraWhitespace /\s\+$/ | 648 | " autocmd BufEnter * syn match ExtraWhitespace /\s\+$/ |
649 | autocmd BufEnter * match ExtraWhitespace /\s\+$/ | ||
649 | augroup END "} | 650 | augroup END "} |
650 | 651 | ||
651 | augroup CurrentFileName | 652 | augroup CurrentFileName |