diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-12 22:14:43 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-12 22:16:33 +1300 |
commit | 7485a9129c4dae9c6dbe54dd2f78443ccc654f55 (patch) | |
tree | efe8ed22f5835fb90885305aab1d1acc38cbc33e /vim/ftdetect | |
parent | Complete mail_mutt.vim documentation (diff) | |
download | dotfiles-7485a9129c4dae9c6dbe54dd2f78443ccc654f55.tar.gz dotfiles-7485a9129c4dae9c6dbe54dd2f78443ccc654f55.zip |
Add path rules for detecting Vim help files
This matches .txt files in any 'doc' directory with 'vim' or '.vim' in
its ancestry.
Diffstat (limited to 'vim/ftdetect')
-rw-r--r-- | vim/ftdetect/help.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vim/ftdetect/help.vim b/vim/ftdetect/help.vim new file mode 100644 index 00000000..b516ed7e --- /dev/null +++ b/vim/ftdetect/help.vim @@ -0,0 +1,4 @@ +" Custom Vim help documentation filetype detection +autocmd BufNewFile,BufRead + \ **/vim/**/doc/*.txt,**/.vim/**/doc/*.txt + \ setlocal filetype=help |