Skip to content
Browse files

Fix the Highlight on overline, etc. by moving it to after syntax on.

  • Loading branch information...
1 parent bbe37e9 commit b110600ed974b86d19b61d080878d4ee52d5248e @mjessome committed Mar 18, 2012
Showing with 9 additions and 8 deletions.
  1. +9 −8 .vimrc
View
17 .vimrc
@@ -83,14 +83,6 @@ set statusline+=%<%P\ " percentage scrolled into file
" Gitv
let g:Gitv_TruncateCommitSubjects=1
-" Highlight bad formatting:
-" * Portions of lines past 80 chars wide (79 for python)
-" * leading tabs
-" * Whitespace at end of line
-highlight BadFormat ctermbg=red ctermfg=white guibg=#592929
-" TODO: Change these to use a line_width variable, or could also use textwidth.
-au BufRead,BufnewFile *.C,*.c,*.h,*.cpp,*.cc,*.js,*.ps,*.sh,*.bash match BadFormat /\(\%81v.\+\)\|\(^\t\+\)\|\(\s\+$\)/
-au BufRead,BufnewFile *.py,*.pyw match BadFormat /\(\%80v.\+\)\|\(^\t\+\)\|\(\s\+$\)/
" Place a coloured column at textwidth
if exists('+colorcolumn')
set colorcolumn=+0
@@ -101,6 +93,15 @@ syntax on " Turn on syntax highlighting
" This has to come after colorcolumn in order to
" draw it.
+" Highlight bad formatting:
+" * Portions of lines past 80 chars wide (79 for python)
+" * leading tabs
+" * Whitespace at end of line
+highlight BadFormat ctermbg=red ctermfg=white guibg=#592929
+" TODO: Change these to use a line_width variable, or could also use textwidth.
+au BufRead,BufnewFile *.C,*.c,*.h,*.cpp,*.cc,*.js,*.ps,*.sh,*.bash match BadFormat /\(\%81v.\+\)\|\(^\t\+\)\|\(\s\+$\)/
+au BufRead,BufnewFile *.py,*.pyw match BadFormat /\(\%80v.\+\)\|\(^\t\+\)\|\(\s\+$\)/
+
" set local pwd to same as file
cmap slpwd :lcd $:p:h<CR>

0 comments on commit b110600

Please sign in to comment.
Something went wrong with that request. Please try again.