Created
August 8, 2011 16:00
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
All credit for this gist goes to http://vim.1045645.n5.nabble.com/Adding-hyphen-to-iskeyword-but-only-for-keyword-completion-td3279651.html