Force syntax highlighting on; also ignore colorcolum for old versions of vim
parent
b5206063de
commit
d6048b1758
|
@ -1,3 +1,5 @@
|
||||||
|
" enable syntax highlighting
|
||||||
|
syntax on
|
||||||
" enble modelines (i.e. `# vim: set ft=rst`, etc.)
|
" enble modelines (i.e. `# vim: set ft=rst`, etc.)
|
||||||
set modeline
|
set modeline
|
||||||
" Need line numbers, of course
|
" Need line numbers, of course
|
||||||
|
@ -5,7 +7,9 @@ set number
|
||||||
" Incremental search (i.e. find-as-you-type)
|
" Incremental search (i.e. find-as-you-type)
|
||||||
set incsearch
|
set incsearch
|
||||||
" Big fat red bar telling you your lines are too long
|
" Big fat red bar telling you your lines are too long
|
||||||
|
if version >= 703
|
||||||
set colorcolumn=80
|
set colorcolumn=80
|
||||||
|
endif
|
||||||
" Open windows with `:vsplit` on the right instead of the left
|
" Open windows with `:vsplit` on the right instead of the left
|
||||||
set splitright
|
set splitright
|
||||||
" Backups are annoying. Use Mercurial!
|
" Backups are annoying. Use Mercurial!
|
||||||
|
|
Reference in New Issue