vimrc: additional file type configs
This commit is contained in:
parent
90d0773655
commit
f09b5e4e28
@ -9,6 +9,8 @@ au BufNewFile,BufRead *.go set tabstop=4 softtabstop=4 shiftwidth=4
|
|||||||
\ expandtab autoindent fileformat=unix
|
\ expandtab autoindent fileformat=unix
|
||||||
au BufNewFile,BufRead *.toml set tabstop=4 softtabstop=4 shiftwidth=4
|
au BufNewFile,BufRead *.toml set tabstop=4 softtabstop=4 shiftwidth=4
|
||||||
\ expandtab autoindent fileformat=unix
|
\ expandtab autoindent fileformat=unix
|
||||||
|
au BufNewFile,BufRead *.json set tabstop=2 softtabstop=2 shiftwidth=2
|
||||||
|
\ expandtab autoindent fileformat=unix
|
||||||
au BufNewFile,BufRead *.yaml set tabstop=2 softtabstop=2 shiftwidth=2
|
au BufNewFile,BufRead *.yaml set tabstop=2 softtabstop=2 shiftwidth=2
|
||||||
\ expandtab autoindent fileformat=unix
|
\ expandtab autoindent fileformat=unix
|
||||||
au BufNewFile,BufRead *.html,*.css set tabstop=2 softtabstop=2 shiftwidth=2
|
au BufNewFile,BufRead *.html,*.css set tabstop=2 softtabstop=2 shiftwidth=2
|
||||||
@ -34,7 +36,9 @@ augroup sh
|
|||||||
autocmd FileType sh :set tabstop=2 softtabstop=2 shiftwidth=2 expandtab autoindent fileformat=unix
|
autocmd FileType sh :set tabstop=2 softtabstop=2 shiftwidth=2 expandtab autoindent fileformat=unix
|
||||||
augroup end
|
augroup end
|
||||||
autocmd FileType dockerfile :set tabstop=4 softtabstop=4 shiftwidth=4 expandtab autoindent fileformat=unix
|
autocmd FileType dockerfile :set tabstop=4 softtabstop=4 shiftwidth=4 expandtab autoindent fileformat=unix
|
||||||
|
autocmd FileType nginx :set tabstop=2 softtabstop=2 shiftwidth=2 expandtab autoindent fileformat=unix
|
||||||
autocmd FileType gitcommit :set spell
|
autocmd FileType gitcommit :set spell
|
||||||
|
autocmd FileType markdown :set spell
|
||||||
" vim-plug
|
" vim-plug
|
||||||
" :PlugInstall to install new one
|
" :PlugInstall to install new one
|
||||||
call plug#begin('~/.vim/plugged')
|
call plug#begin('~/.vim/plugged')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user