Browse files

support vim < 8.3

  • Loading branch information...
1 parent f142b0e commit f9d9411d44ca395f0cf7143d5e3b2d40e192cf85 @puzzlet committed Feb 15, 2013
Showing with 8 additions and 4 deletions.
  1. +8 −4 .vimrc
View
12 .vimrc
@@ -13,8 +13,10 @@ set noswapfile
set nobackup
set nowritebackup
-set undodir=~/.vim/backups
-set undofile
+if version >= 830
+ set undodir=~/.vim/backups
+ set undofile
+endif
set hlsearch
set incsearch
@@ -23,8 +25,10 @@ autocmd BufNewFile,BufRead *.j2 set filetype=jinjahtml
autocmd BufNewFile,BufRead *.pde setf arduino
autocmd BufNewFile,BufRead *.yaml,*.yml so ~/.vim/yaml.vim
-highlight ColorColumn ctermbg=black guibg=black
-set colorcolumn=80
+if version >= 830
+ highlight ColorColumn ctermbg=black guibg=black
+ set colorcolumn=80
+endif
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/

0 comments on commit f9d9411

Please sign in to comment.