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:
parent
5c8faae56d
commit
0f01928777
@ -56,6 +56,12 @@ set list
|
|||||||
set listchars=eol:$,space:.,tab:>-,trail:~,extends:>,precedes:<
|
set listchars=eol:$,space:.,tab:>-,trail:~,extends:>,precedes:<
|
||||||
highlight SpecialKey ctermfg=8
|
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 the runtime path to include Vundle and initialize
|
||||||
set rtp+=~/.config/vim/bundle/Vundle.vim
|
set rtp+=~/.config/vim/bundle/Vundle.vim
|
||||||
|
Loading…
Reference in New Issue
Block a user