1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

vim: add column at 80 chars for C-like filetypes

This commit is contained in:
Joe Groocock 2018-03-29 12:16:30 +01:00
parent 5c8faae56d
commit 0f01928777
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -56,6 +56,12 @@ set list
set listchars=eol:$,space:.,tab:>-,trail:~,extends:>,precedes:<
highlight SpecialKey ctermfg=8
if exists('+colorcolumn')
highlight ColorColumn ctermbg=8
autocmd filetype c,h,cpp,hpp set colorcolumn=81
autocmd filetype c,h,cpp,hpp match ErrorMsg '\%>80v.\+'
endif
" set the runtime path to include Vundle and initialize
set rtp+=~/.config/vim/bundle/Vundle.vim