[vim] Add rst plugin and config

This commit is contained in:
Vladan Popovic 2019-08-02 11:41:58 +02:00
parent 9f9e685e18
commit 7051fa08f7
2 changed files with 3 additions and 2 deletions

View File

@ -36,8 +36,8 @@ match WhitespaceEOL /\s\+\%#\@<!$/
" Remove all trailing whitespace by pressing Ctrl+k " Remove all trailing whitespace by pressing Ctrl+k
nnoremap <C-k> :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar><CR> nnoremap <C-k> :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar><CR>
" Language indents " Language indents and line lengths
autocmd FileType py set textwidth=79 autocmd FileType py,rst,md set textwidth=79
autocmd FileType html set softtabstop=2 shiftwidth=2 omnifunc=htmlcomplete#CompleteTags autocmd FileType html set softtabstop=2 shiftwidth=2 omnifunc=htmlcomplete#CompleteTags
autocmd FileType yaml set softtabstop=2 shiftwidth=2 autocmd FileType yaml set softtabstop=2 shiftwidth=2
autocmd FileType css set softtabstop=2 shiftwidth=2 omnifunc=csscomplete#CompleteCSS autocmd FileType css set softtabstop=2 shiftwidth=2 omnifunc=csscomplete#CompleteCSS

View File

@ -24,6 +24,7 @@ let g:scala_scaladoc_indent = 1
Plugin 'elmcast/elm-vim' Plugin 'elmcast/elm-vim'
Plugin 'rust-lang/rust.vim' Plugin 'rust-lang/rust.vim'
Plugin 'racer-rust/vim-racer' Plugin 'racer-rust/vim-racer'
Plugin 'Rykka/riv.vim'
" Async Lint Engine " Async Lint Engine
Plugin 'w0rp/ale' Plugin 'w0rp/ale'