aboutsummaryrefslogtreecommitdiff
path: root/vimrc.dot.link
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-07-28 09:44:08 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-07-28 09:44:08 -0300
commit23e4d875310c6520782d1605b8c3909053d58442 (patch)
tree48887e79bfceea13356fbf993c2169c17697d58c /vimrc.dot.link
parentcbd12218a4f578b415d5a7da40275ad450e0ec64 (diff)
downloadvim-23e4d875310c6520782d1605b8c3909053d58442.tar.gz
vim-23e4d875310c6520782d1605b8c3909053d58442.tar.bz2
Fix: consolidate filetype handling
Diffstat (limited to 'vimrc.dot.link')
-rw-r--r--vimrc.dot.link48
1 files changed, 0 insertions, 48 deletions
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 <C-c> "+yi
vnoremap <C-x> "+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:.;/^-- $/d<CR>O-- <UP><End><CR><CR><UP><CR><C-O>zi