aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-08 12:34:22 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-08 12:44:59 +1300
commit951d19084a9f9a8f82225397b7c41603c6f4860d (patch)
treec2a8a99b0abc722f2154c6437fcd8b13ecab750a
parentac577df9f6516308c2f9661c8abbc44f6c19d854 (diff)
downloaddotfiles-951d19084a9f9a8f82225397b7c41603c6f4860d.tar.gz
Remove superfluous augroups around ftdetect defs
From :help ftdetect, item 2: > 2. Create a file that contains an autocommand to detect the file type. > Example: > au BufRead,BufNewFile *.mine set filetype=mine > Note that there is no "augroup" command, this has already been done > when sourcing your file.
-rw-r--r--vim/ftdetect/csv.vim9
-rw-r--r--vim/ftdetect/muttrc.vim9
-rw-r--r--vim/ftdetect/sh.vim34
-rw-r--r--vim/ftdetect/tsv.vim9
-rw-r--r--vim/ftdetect/xdefaults.vim9
5 files changed, 27 insertions, 43 deletions
diff --git a/vim/ftdetect/csv.vim b/vim/ftdetect/csv.vim
index e5a38e10..a234c093 100644
--- a/vim/ftdetect/csv.vim
+++ b/vim/ftdetect/csv.vim
@@ -1,7 +1,4 @@
" Add automatic commands to detect CSV files
-augroup dotfiles_ftdetect_csv
- autocmd!
- autocmd BufNewFile,BufRead
- \ *.csv
- \ setfiletype csv
-augroup END
+autocmd BufNewFile,BufRead
+ \ *.csv
+ \ setfiletype csv
diff --git a/vim/ftdetect/muttrc.vim b/vim/ftdetect/muttrc.vim
index 0f625f2b..55eeea93 100644
--- a/vim/ftdetect/muttrc.vim
+++ b/vim/ftdetect/muttrc.vim
@@ -1,7 +1,4 @@
" Add automatic commands to detect .muttrc files
-augroup dotfiles_ftdetect_muttrc
- autocmd!
- autocmd BufNewFile,BufRead
- \ **/.dotfiles/mutt/muttrc.d/*.rc,**/.muttrc.d/*.rc
- \ setfiletype muttrc
-augroup END
+autocmd BufNewFile,BufRead
+ \ **/.dotfiles/mutt/muttrc.d/*.rc,**/.muttrc.d/*.rc
+ \ setfiletype muttrc
diff --git a/vim/ftdetect/sh.vim b/vim/ftdetect/sh.vim
index f00a5659..880f08e9 100644
--- a/vim/ftdetect/sh.vim
+++ b/vim/ftdetect/sh.vim
@@ -1,23 +1,19 @@
" Add automatic commands to choose shell flavours based on filename pattern
-augroup dotfiles_ftdetect_sh
- autocmd!
- " Names/paths of things that are Bash shell script
- autocmd BufNewFile,BufRead
- \ **/.dotfiles/bash/**,bash-fc-*
- \ let b:is_bash = 1
- \ | setfiletype sh
+" Names/paths of things that are Bash shell script
+autocmd BufNewFile,BufRead
+ \ **/.dotfiles/bash/**,bash-fc-*
+ \ let b:is_bash = 1
+ \ | setfiletype sh
- " Names/paths of things that are Korn shell script
- autocmd BufNewFile,BufRead
- \ **/.dotfiles/ksh/**,.kshrc,*.ksh
- \ let b:is_kornshell = 1
- \ | setfiletype sh
+" Names/paths of things that are Korn shell script
+autocmd BufNewFile,BufRead
+ \ **/.dotfiles/ksh/**,.kshrc,*.ksh
+ \ let b:is_kornshell = 1
+ \ | setfiletype sh
- " Names/paths of things that are POSIX shell script
- autocmd BufNewFile,BufRead
- \ **/.dotfiles/sh/**,.shinit,.shrc,.xinitrc,/etc/default/*
- \ let b:is_posix = 1
- \ | setfiletype sh
-
-augroup END
+" Names/paths of things that are POSIX shell script
+autocmd BufNewFile,BufRead
+ \ **/.dotfiles/sh/**,.shinit,.shrc,.xinitrc,/etc/default/*
+ \ let b:is_posix = 1
+ \ | setfiletype sh
diff --git a/vim/ftdetect/tsv.vim b/vim/ftdetect/tsv.vim
index 673721f5..a345ac65 100644
--- a/vim/ftdetect/tsv.vim
+++ b/vim/ftdetect/tsv.vim
@@ -1,7 +1,4 @@
" Add automatic commands to detect TSV files
-augroup dotfiles_ftdetect_tsv
- autocmd!
- autocmd BufNewFile,BufRead
- \ *.tsv
- \ setfiletype tsv
-augroup END
+autocmd BufNewFile,BufRead
+ \ *.tsv
+ \ setfiletype tsv
diff --git a/vim/ftdetect/xdefaults.vim b/vim/ftdetect/xdefaults.vim
index 1529e5c9..f45a22a7 100644
--- a/vim/ftdetect/xdefaults.vim
+++ b/vim/ftdetect/xdefaults.vim
@@ -1,7 +1,4 @@
" Add automatic commands to find Xresources subfiles
-augroup dotfiles_ftdetect_xdefaults
- autocmd!
- autocmd BufNewFile,BufRead
- \ **/.Xresources.d/*
- \ setfiletype xdefaults
-augroup END
+autocmd BufNewFile,BufRead
+ \ **/.Xresources.d/*
+ \ setfiletype xdefaults