Skip to content

Add "iskeyword" option#966

Merged
cxxxr merged 5 commits intolem-project:mainfrom
fukamachi:vi-iskeyword-option
Aug 19, 2023
Merged

Add "iskeyword" option#966
cxxxr merged 5 commits intolem-project:mainfrom
fukamachi:vi-iskeyword-option

Conversation

@fukamachi
Copy link
Copy Markdown
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
@fukamachi fukamachi force-pushed the vi-iskeyword-option branch from 12b9762 to 0666d2f Compare August 19, 2023 00:51
@fukamachi fukamachi force-pushed the vi-iskeyword-option branch from 76e63d9 to c792671 Compare August 19, 2023 03:42
@cxxxr
Copy link
Copy Markdown
Member

cxxxr commented Aug 19, 2023

Thank you!

@cxxxr cxxxr merged commit b498bff into lem-project:main Aug 19, 2023
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