From c41b1a62cc817eac2c441aa0e1d4040a8f4183e7 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Tue, 23 Sep 2014 16:54:29 +0200 Subject: [PATCH] rfc support --- bundles.vim | 1 + vimrc | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/bundles.vim b/bundles.vim index e0f492b..ddb8010 100644 --- a/bundles.vim +++ b/bundles.vim @@ -40,6 +40,7 @@ Bundle 'tpope/vim-markdown' Bundle 'slim-template/vim-slim' Bundle 'jboyens/vim-protobuf' Bundle 'dag/vim-fish' +Bundle 'vim-scripts/rfc-syntax' Bundle 'vim-scripts/argtextobj.vim' Bundle 'michaeljsmith/vim-indent-object' diff --git a/vimrc b/vimrc index 1a446f2..f246d35 100644 --- a/vimrc +++ b/vimrc @@ -120,6 +120,11 @@ au BufRead,BufNewFile Guardfile setfiletype ruby au BufRead,BufNewFile *.skim setfiletype slim let g:syntastic_ruby_checkers = ['mri', 'rubocop'] +if expand('%:t') =~? 'rfc\d\+' || expand('%:t') =~? 'draft-.*-\d\{2,}' + setfiletype rfc + set textwidth=72 +endif + "notify line over length function HighlightOverLength(len) highlight OverLength ctermbg=blue ctermfg=white guibg=#59292