From b97acd90bc50036739fcb3d1c85740e77b97d7e3 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 25 Aug 2015 11:37:26 -0400 Subject: ftplugin/html.vim: Add `-` to `iskeyword` list Include hyphens in the `iskeyword` list so that CSS class names can be autocompleted. This should make things faster and hopefully save me from typing some long repetitive class names. --- ftplugin/html.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ftplugin/html.vim') diff --git a/ftplugin/html.vim b/ftplugin/html.vim index c33ddd4..d90bf3e 100644 --- a/ftplugin/html.vim +++ b/ftplugin/html.vim @@ -10,3 +10,7 @@ if exists("loaded_matchit") \ '<\@<=dl\>[^>]*\%(>\|$\):<\@<=d[td]\>:<\@<=/dl>,' . \ '<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>' endif + + +" Include hyphen in the keyword list so that CSS class names can be autocompleted +setlocal iskeyword+=- -- cgit v1.2.3