Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 1.13 KB

File metadata and controls

41 lines (29 loc) · 1.13 KB

MarkEdit-vim

Vim Keybindings for MarkEdit that leverages markedit-api.

Learn more about codemirror-vim.

Installation

Copy dist/markedit-vim.js to ~/Library/Containers/app.cyan.markedit/Data/Documents/scripts/.

You can also run yarn install && yarn build to build and deploy the script.

Custom Mappings

You can define custom key mappings in two ways:

  1. Add extension.markeditVim to ~/Library/Containers/app.cyan.markedit/Data/Documents/settings.json:

    {
      "extension.markeditVim": {
        "mappings": [
          { "before": "jj", "after": "<Esc>", "mode": "insert" },
          { "before": "Y", "after": "y$" }
        ]
      }
    }
  2. Create ~/Library/Containers/app.cyan.markedit/Data/Documents/scripts/markedit-vim.json alongside the extension:

    {
      "mappings": [
        { "before": "jj", "after": "<Esc>", "mode": "insert" },
        { "before": "Y", "after": "y$" }
      ]
    }

Available modes: normal, insert, visual, replace.