Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use standard shell definition for iskeyword #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

krobelus
Copy link

Prior to this, a w would skip over the entirety of /some/long/path-name. This
is probably not what users expect, since they can use W for that.

@adriaanzon
Copy link

:syntax iskeyword could be used instead, so that commands are still highlighted correctly.

This effectively removes "-", "." and "/" from the set of word characters.

Prior to this, a `w` would skip over the entirety of /some/long/path-name. This
is probably not what users expect, since they can use `W` for that.
@krobelus krobelus changed the title This effectively removes "-", "." and "/" from the word chars use standard shell definition for iskeyword Feb 12, 2019
@krobelus
Copy link
Author

:syntax iskeyword could be used instead, so that commands are still highlighted correctly.

Cool!
I tried :syntax iskeyword=@,48,57,-,_,.,/ but this seems to mess up other syntax definitions, for example in echo foo the echo used to be highlighted in a different color

@blankname blankname mentioned this pull request Jan 5, 2020
1 task
blankname pushed a commit to blankname/vim-fish that referenced this pull request Mar 22, 2020
I didn't remove the iskeyword definition entirely because I believe including
'_' and '.' is still useful.

Also, fix syntax definitions to include '/' as well wherever they use '\k' so
that / is still highlighted.

cc: dag#44
blankname pushed a commit to blankname/vim-fish that referenced this pull request Mar 22, 2020
I didn't remove the iskeyword definition entirely because I believe including
'_' and '.' is still useful.

Use 'syntax iskeyword @,48-57,-,_,.,/' in the syntax definitions so that '/' is
still matched by syntax patterns that use '\k'.

cc: dag#44
@blankname
Copy link

@krobelus I believe you need to replace the = with a space.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants