mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 16:58:17 +00:00
refactor: move some constants out of vim_defs.h (#26298)
This commit is contained in:
@@ -6198,8 +6198,8 @@ M.funcs = {
|
||||
"mode_bits" Nvim's internal binary representation of "mode".
|
||||
|mapset()| ignores this; only "mode" is used.
|
||||
See |maplist()| for usage examples. The values
|
||||
are from src/nvim/vim.h and may change in the
|
||||
future.
|
||||
are from src/nvim/state_defs.h and may change in
|
||||
the future.
|
||||
|
||||
The dictionary can be used to restore a mapping with
|
||||
|mapset()|.
|
||||
@@ -6287,8 +6287,8 @@ M.funcs = {
|
||||
endfor
|
||||
echo saved_maps->mapnew({_, m -> m.lhs})
|
||||
<The values of the mode_bits are defined in Nvim's
|
||||
src/nvim/vim.h file and they can be discovered at runtime
|
||||
using |:map-commands| and "maplist()". Example: >vim
|
||||
src/nvim/state_defs.h file and they can be discovered at
|
||||
runtime using |:map-commands| and "maplist()". Example: >vim
|
||||
omap xyzzy <Nop>
|
||||
let op_bit = maplist()->filter(
|
||||
\ {_, m -> m.lhs == 'xyzzy'})[0].mode_bits
|
||||
|
Reference in New Issue
Block a user