From da7fc46bdc02f5ec64a9a3864eafeaaa045f6c61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Geis?= Date: Fri, 6 Jul 2018 20:58:21 +0200 Subject: [PATCH] Added example code for lightweight keybinding syntax. --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 09613b704..03879b728 100644 --- a/README.md +++ b/README.md @@ -257,6 +257,26 @@ Custom remappings are defined on a per-mode basis. ] ``` +* Bind `m` to add a bookmark and `b` to open the list of all bookmarks (using the [Bookmarks](https://github.com/alefragnani/vscode-bookmarks) extension): + * *Note:* `"commands": [ "cmd" ]` is equivalent to `"commands": [ { "command": "cmd", "args": [] } ]`. + +```json + "vim.normalModeKeyBindingsNonRecursive": [ + { + "before": ["", "m"], + "commands": [ + "bookmarks.toggle" + ] + }, + { + "before": ["", "b"], + "commands": [ + "bookmarks.list" + ] + } + ] +``` + * Bind `ZZ` to the vim command `:wq` (save and close the current file): ```json