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-26 21:17:21 -06:00
committed by GitHub
co-authored by Conrad Irwin
parent 26d943287b
commit 9662829810
7 changed files with 96 additions and 6 deletions
+11 -2
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": "🧟‍♀️"
}
}
}
```