diff options
Diffstat (limited to 'ftplugin')
-rw-r--r-- | ftplugin/html.vim | 12 | ||||
-rw-r--r-- | ftplugin/htmldjango.vim | 4 |
2 files changed, 16 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 diff --git a/ftplugin/htmldjango.vim b/ftplugin/htmldjango.vim new file mode 100644 index 0000000..ca24ca5 --- /dev/null +++ b/ftplugin/htmldjango.vim @@ -0,0 +1,4 @@ +" Django HTML template settings + +" Inherit HTML settings +runtime! ftplugin/html.vim |