vim: Add Smart Relative Line Number (#16567)

Closes #16514

Release Notes:

- Added Vim: absolute numbering in any mode except `insert` mode

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
0x2CA 2024-08-27 11:17:21 +08:00 committed by GitHub
parent 26d943287b
commit 9662829810
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 96 additions and 6 deletions

View file

@ -241,8 +241,17 @@ Some vim settings are available to modify the default vim behavior:
// "never": don't use system clipboard unless "+ or "* is specified
// "on_yank": use system clipboard for yank operations when no register is specified
"use_system_clipboard": "always",
// Lets `f` and `t` motions extend across multiple lines
"use_multiline_find": true
// Let `f` and `t` motions extend across multiple lines
"use_multiline_find": true,
// Let `f` and `t` motions match case insensitively if the target is lowercase
"use_smartcase_find": true,
// Use relative line numbers in normal mode, absolute in insert mode
// c.f. https://github.com/jeffkreeftmeijer/vim-numbertoggle
"toggle_relative_line_numbers": true,
// Add custom digraphs (e.g. ctrl-k f z will insert a zombie emoji)
"custom_digraphs": {
"fz": "🧟‍♀️"
}
}
}
```