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