diff .chezmoitemplates/config.vim @ 572:21745760a5dc

Use ftplugin and syntax files for language specific settings
author zegervdv <zegervdv@me.com>
date Thu, 03 Mar 2022 10:54:39 +0100
parents f845e2eba7e3
children 8b04d5ffd210
line wrap: on
line diff
--- a/.chezmoitemplates/config.vim	Thu Mar 03 10:09:02 2022 +0100
+++ b/.chezmoitemplates/config.vim	Thu Mar 03 10:54:39 2022 +0100
@@ -424,93 +424,6 @@
   syn match Error "\v^ERROR:.*$"
 endfunction
 "
-" Git commit messages
-augroup ft_git
-  au!
-  au FileType gitcommit setlocal spell spelllang=en_gb
-  autocmd FileType gitcommit,gitrebase,gitconfig set bufhidden=delete
-augroup END
-"
-" Ruby
-augroup ft_ruby
-  au!
-  autocmd BufRead *_spec.rb set filetype=rspec
-augroup END
-"
-" Matlab
-augroup ft_matlab
-  au!
-  autocmd FileType matlab setlocal commentstring=\%\ %s
-augroup END
-"
-" C
-augroup ft_c
-  au!
-  au FileType c setlocal foldmethod=syntax
-augroup END
-"
-" TCL
-
-augroup ft_tcl
-  au!
-  autocmd FileType tcl setlocal commentstring=#\ %s
-  " autocmd FileType tcl compiler nagelfar
-  autocmd BufRead *.do set filetype=tcl
-  autocmd BufRead *.hal set filetype=tcl
-  autocmd FileType tcl setlocal iskeyword+=:
-  autocmd FileType tcl setlocal breakat-=:
-  autocmd FileType tcl setlocal suffixesadd+=.tcl,.do
-augroup END
-" shortcuts
-iabbrev procargs array set arg [::argument_processing::proces_arguments $args];
-"
-" GPG
-" Don't save backups of gpg asc files
-set backupskip+=*.asc
-
-" Convenient editing of ascii-armoured encrypted files
-augroup GPGASCII
-  au!
-  au BufReadPost *.asc :%!gpg -q -d
-  au BufReadPost *.asc |redraw
-  au BufWritePre *.asc :%!gpg -q -e -a
-  au BufWritePost *.asc u
-  au VimLeave *.asc :!clear
-augroup END
-"
-" System Verilog
-augroup ft_systemverilog
-  au!
-  au FileType systemverilog setlocal suffixesadd+=.sv,.v
-  au FileType systemverilog,verilog setlocal iskeyword+='
-augroup END
-
-"
-" Make
-augroup ft_make
-  autocmd!
-  autocmd BufEnter *.make setlocal filetype=make
-  autocmd FileType make setlocal noexpandtab
-augroup END
-" JSON
-augroup ft_json
-  autocmd!
-  autocmd FileType json setlocal equalprg=jq
-augroup END
-"
-"
-" Python
-augroup f_python
-  autocmd!
-  autocmd FileType python setlocal shiftwidth=4
-  au FileType python setlocal formatprg=autopep8\ -
-  autocmd FileType python setlocal path-=**
-  autocmd Filetype python let b:delimitMate_nesting_quotes = ['"', "'"]
-augroup END
-
-let g:python_highlight_all=1
-"
-"
 
 " Plugin settings
 " Gundo tree