aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-30 14:29:31 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-30 14:29:31 +1300
commit851731635ac4fa247c98dc690f2f0c93362c5b27 (patch)
tree6a3a41c0e12aa83828d4477fd3a0214cb99149e6 /vim
parentClear autocommands in ftdetect augroups (diff)
downloaddotfiles-851731635ac4fa247c98dc690f2f0c93362c5b27.tar.gz
dotfiles-851731635ac4fa247c98dc690f2f0c93362c5b27.zip
Merge two ftdetect rules for Muttrc files
Put the patterns together with a comma to keep them in the same rule. I suspect my original intention was to keep things clear, but this doesn't seem so bad now.
Diffstat (limited to 'vim')
-rw-r--r--vim/ftdetect/muttrc.vim8
1 files changed, 1 insertions, 7 deletions
diff --git a/vim/ftdetect/muttrc.vim b/vim/ftdetect/muttrc.vim
index 1800aff9..b54efd76 100644
--- a/vim/ftdetect/muttrc.vim
+++ b/vim/ftdetect/muttrc.vim
@@ -1,13 +1,7 @@
" Add automatic commands to detect .muttrc files
augroup dfmuttrc
autocmd!
-
autocmd BufNewFile,BufRead
- \ **/.dotfiles/mutt/muttrc.d/*.rc
+ \ **/.dotfiles/mutt/muttrc.d/*.rc,**/.muttrc.d/*.rc
\ setlocal filetype=muttrc
-
- autocmd BufNewFile,BufRead
- \ **/.muttrc.d/*.rc
- \ setlocal filetype=muttrc
-
augroup END