diff options
Diffstat (limited to 'ftplugin/html.vim')
-rw-r--r-- | ftplugin/html.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ftplugin/html.vim b/ftplugin/html.vim new file mode 100644 index 0000000..c33ddd4 --- /dev/null +++ b/ftplugin/html.vim @@ -0,0 +1,12 @@ +" HTML settings + +" matchit settings (for % matching) +" Copied from vim's default HTML ftplugin. I just want this, not the rest. My +" preference is still to disable all non-custom ftplugins. +if exists("loaded_matchit") + let b:match_ignorecase = 1 + let b:match_words = '<:>,' . + \ '<\@<=[ou]l\>[^>]*\%(>\|$\):<\@<=li\>:<\@<=/[ou]l>,' . + \ '<\@<=dl\>[^>]*\%(>\|$\):<\@<=d[td]\>:<\@<=/dl>,' . + \ '<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>' +endif |