From 23e4d875310c6520782d1605b8c3909053d58442 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 28 Jul 2024 09:44:08 -0300 Subject: Fix: consolidate filetype handling --- vimrc.dot.link | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) (limited to 'vimrc.dot.link') diff --git a/vimrc.dot.link b/vimrc.dot.link index c2454bf..9c19dfd 100644 --- a/vimrc.dot.link +++ b/vimrc.dot.link @@ -78,47 +78,6 @@ filetype plugin indent on "let vimsyn_folding='af' "let xml_syntax_folding=1 -" Setup https://github.com/masukomi/vim-markdown-folding -" Alternative method: https://codereview.stackexchange.com/questions/202620/vim-plugin-for-folding-markdown-lists -autocmd FileType markdown set foldexpr=NestedMarkdownFolds() - -" Filetypes -augroup vimrc_syntax - autocmd! - au BufNewFile,BufRead *.vue set ft=html - au BufNewFile,BufRead *.thtml set ft=php - au BufNewFile,BufRead *.mdwn set ft=ikiwiki - au BufNewFile,BufRead *.md set ft=markdown - au BufNewFile,BufRead *.rem set ft=remind - au BufNewFile,BufRead *.trac set ft=tracwiki - au BufNewFile,BufRead *.tracwiki set ft=tracwiki - au BufNewFile,BufRead Vagrantfile set ft=ruby - au BufNewFile,BufRead kvmxfile set ft=sh -augroup END - -" Markdown -augroup markdown - autocmd! - autocmd BufRead *.md set autoindent smartindent tabstop=2 softtabstop=2 shiftwidth=2 expandtab formatoptions=tcroqn2 comments=n:> -augroup END - -" Python -augroup python - autocmd! - autocmd BufRead *.py set autoindent smartindent tabstop=4 softtabstop=4 shiftwidth=4 expandtab -augroup END - -" Drupal *.module and *.install files. -if has("autocmd") - augroup module - autocmd! - autocmd BufRead,BufNewFile *.profile set filetype=php - autocmd BufRead,BufNewFile *.module set filetype=php - autocmd BufRead,BufNewFile *.install set filetype=php - autocmd BufRead,BufNewFile *.test set filetype=php - augroup END -endif - " PHP let php_sql_query=1 @@ -359,13 +318,6 @@ command -nargs=0 OpenNERDTree :call OpenNERDTree() vnoremap "+yi vnoremap "+c -" Workaround for mail editing. There must be a plugin enabling autoindent in -" mail composition, which is annoying. -augroup mail - autocmd! - au FileType mail set noautoindent -augroup END - " For email: unfold and delete to your signature " See https://hroy.eu/tips/vim/email-delete-til-signature/ noremap ,dd zi:.;/^-- $/dO-- zi -- cgit v1.2.3