mirror of
https://github.com/neovim/neovim.git
synced 2026-02-20 09:19:43 +10:00
vim-patch:9e456e5: runtime(doc): clarify the use of 'iskeyword' option value
In particular, also mention the difference between the regex atom \k and
what Vim considers for a word character.
closes: vim/vim#18688
9e456e52df
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
8
runtime/lua/vim/_meta/options.lua
generated
8
runtime/lua/vim/_meta/options.lua
generated
@@ -3718,7 +3718,13 @@ vim.go.isi = vim.go.isident
|
||||
--- "w", "*", "[i", etc. It is also used for "\k" in a `pattern`. See
|
||||
--- 'isfname' for a description of the format of this option. For '@'
|
||||
--- characters above 255 check the "word" character class (any character
|
||||
--- that is not white space or punctuation).
|
||||
--- that is categorized as a letter, number or emoji according to the
|
||||
--- Unicode general category).
|
||||
---
|
||||
--- Note that there is a difference between the "\k" character class and
|
||||
--- the `word` motion. The former matches any word character, while the
|
||||
--- latter stops at a change of the character class.
|
||||
---
|
||||
--- For C programs you could use "a-z,A-Z,48-57,_,.,-,>".
|
||||
--- For a help file it is set to all non-blank printable characters except
|
||||
--- "*", '"' and '|' (so that CTRL-] on a command finds the help for that
|
||||
|
||||
Reference in New Issue
Block a user