aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-12 22:14:43 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-12 22:16:33 +1300
commit7485a9129c4dae9c6dbe54dd2f78443ccc654f55 (patch)
treeefe8ed22f5835fb90885305aab1d1acc38cbc33e
parentComplete mail_mutt.vim documentation (diff)
downloaddotfiles-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.
-rw-r--r--vim/ftdetect/help.vim4
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