Skip to content

Instantly share code, notes, and snippets.

@adamesque
Created August 8, 2011 16:00
Show Gist options
  • Save adamesque/1132031 to your computer and use it in GitHub Desktop.
Save adamesque/1132031 to your computer and use it in GitHub Desktop.
Tell vim to treat '-' as a keyword char for tab completion in HTML & CSS files.
if has("autocmd")
" Treat '-' as a keyword char in HTML & CSS
autocmd InsertEnter *.{html,haml,css,scss,sass,slim} setlocal iskeyword+=-
autocmd InsertLeave *.{html,haml,css,scss,sass,slim} setlocal iskeyword-=-
endif
@adamesque
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment