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

Add "iskeyword" option #966

Merged
merged 5 commits into from
Aug 19, 2023
Merged

Conversation

fukamachi
Copy link
Collaborator

@fukamachi fukamachi commented Aug 18, 2023

Description

Add "iskeyword" of vi-mode option, which is used to specify a character set to be treated as a word by vi-mode.

  • Type: a list of strings
  • Default: @,48-57,_,192-255
  • Alias: isk

Usage

It can be set in ex mode, like :set iskeyword=@,_. Be sure it must be a comma-separated string in ex mode.

In this PR, several set operations like +=, -=, ^= are also added, which can be used like :set iskeyword+=@-@ to add a new value.

To set in init.lisp, a function vi-option-value is available:

(import 'lem-vi-mode:vi-option-value)
(setf (vi-option-value "iskeyword") '("@" "_"))

@fukamachi fukamachi marked this pull request as draft August 19, 2023 00:14
@fukamachi fukamachi marked this pull request as ready for review August 19, 2023 00:40
@cxxxr
Copy link
Member

cxxxr commented Aug 19, 2023

Thank you!

@cxxxr cxxxr merged commit b498bff into lem-project:main Aug 19, 2023
1 check passed
fukamachi added a commit to fukamachi/lem that referenced this pull request Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants