Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: lua and remap #287

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion doc/vm-mappings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"] = '<C-r>'

<
Example of SublimeText-like mappings:
>
let g:VM_maps['Find Under'] = '<C-d>'
Expand All @@ -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*
Expand Down