Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I change the boundaries of symbols used/detected in Vim omni completion?

For example, in Sass I'm using dashes for variable names, and I have a variable called:

$hello-there

If I type in he then attempt to complete it, it will only complete hello. How would I make it so that it would complete hello-there?

like image 409
gak Avatar asked Oct 09 '22 10:10

gak


1 Answers

One way to do it is adding the dash to the iskeyword option. Something like the following:

set iskeyword+=-

Maybe you could add this setting only to sass files only using the appropriate filetype.

like image 183
lucapette Avatar answered Oct 12 '22 22:10

lucapette