vim: Combine language related plugins with autocmd

This commit is contained in:
2020-12-19 02:56:42 +01:00
parent da732648f8
commit ee5086690e

View File

@@ -20,16 +20,16 @@ nmap <leader>f :Files<CR>
" Theme " Theme
packadd! onedark.vim packadd! onedark.vim
" LaTeX " LaTeX
packadd! vimtex autocmd BufNewFile,BufRead *.tex packadd! vimtex
source $XDG_CONFIG_HOME/vim/vimtex.vim \ | source $XDG_CONFIG_HOME/vim/vimtex.vim
" Git information " Git information
packadd! vim-gitgutter packadd! vim-gitgutter
" Surround text with parentheses, brackets, quotes, tags, etc. " Surround text with parentheses, brackets, quotes, tags, etc.
let g:surround_no_mappings = 1 let g:surround_no_mappings = 1
packadd! vim-surround packadd! vim-surround
source $XDG_CONFIG_HOME/vim/vim-surround.vim source $XDG_CONFIG_HOME/vim/vim-surround.vim
" ARM assembly syntax highlighting
packadd! arm-syntax-vim autocmd BufNewFile,BufRead *.s,*.S packadd! arm-syntax-vim | set filetype=arm
" Settings ##################################################################### " Settings #####################################################################
" hybrid linenumbers " hybrid linenumbers
@@ -276,8 +276,5 @@ else
endif endif
endif endif
" ARM assembly syntax highlighting
autocmd BufNewFile,BufRead *.s,*.S set filetype=arm
" Load filetype plugins " Load filetype plugins
filetype plugin indent on filetype plugin indent on