mirror of
https://github.com/lloeki/vimfiles.git
synced 2025-12-06 05:24:39 +01:00
rfc support
This commit is contained in:
parent
ecd1548e25
commit
c41b1a62cc
2 changed files with 6 additions and 0 deletions
|
|
@ -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'
|
||||
|
|
|
|||
5
vimrc
5
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue