From 4103e3438bd18ae3079ef6ef4c31da425724ff03 Mon Sep 17 00:00:00 2001 From: Iven Hsu Date: Tue, 17 Dec 2024 17:08:25 +0800 Subject: [PATCH] docs: lua and remap --- doc/vm-mappings.txt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/doc/vm-mappings.txt b/doc/vm-mappings.txt index edd777c..66a7715 100644 --- a/doc/vm-mappings.txt +++ b/doc/vm-mappings.txt @@ -15,11 +15,15 @@ To disable a specific mapping, set it to an empty string: > let g:VM_maps["Select Operator"] = '' < +Additionally, to remap `s` to the same function as `c`: +> + let g:VM_custom_remaps["s"] = 'c' +< To enable undo/redo (still experimental): > let g:VM_maps["Undo"] = 'u' let g:VM_maps["Redo"] = '' - +< Example of SublimeText-like mappings: > let g:VM_maps['Find Under'] = '' @@ -37,6 +41,13 @@ Example of |vim-multiple-cursors| -like mappings: < For Colemak users, see |vm-colemak|. +For Neovim users using lua: +> + local VM_maps = vim.g.VM_maps or {} + VM_maps["Select Operator"] = '' + vim.g.VM_maps = VM_maps +< + ------------------------------------------------------------------------------- DEFAULT MAPPINGS *vm-mappings-default*