gak
gak

Reputation: 32803

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?

Upvotes: 5

Views: 138

Answers (1)

lucapette
lucapette

Reputation: 20724

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.

Upvotes: 4

Related Questions