diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-30 11:29:32 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-30 11:29:32 +1300 |
commit | f8af47bc44386b18bc9d854219e20ebf3820bd43 (patch) | |
tree | 573e53556298e0a3f8acae2afe0fb0b95d623ccc /vim/ftdetect/muttrc.vim | |
parent | Move netrw.vim "after" script to plain config (diff) | |
download | dotfiles-f8af47bc44386b18bc9d854219e20ebf3820bd43.tar.gz dotfiles-f8af47bc44386b18bc9d854219e20ebf3820bd43.zip |
Move vim/after/ftdetect to vim/ftdetect
There's no particular reason to run these file detection rules after the
plugins have run, so we'll put them in a more expected directory.
I've created a new Makefile target to install this,
`install-vim-ftdetect`, which is included as a prerequisite of the
`install-vim` target.
Diffstat (limited to 'vim/ftdetect/muttrc.vim')
-rw-r--r-- | vim/ftdetect/muttrc.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vim/ftdetect/muttrc.vim b/vim/ftdetect/muttrc.vim new file mode 100644 index 00000000..ff3776b5 --- /dev/null +++ b/vim/ftdetect/muttrc.vim @@ -0,0 +1,12 @@ +" Add automatic commands to detect .muttrc files +augroup dfmuttrc + + autocmd BufNewFile,BufRead + \ **/.dotfiles/mutt/muttrc.d/*.rc + \ setlocal filetype=muttrc + + autocmd BufNewFile,BufRead + \ **/.muttrc.d/*.rc + \ setlocal filetype=muttrc + +augroup END |