Eq's Blog

vs code vim

配置


预计阅读时间 1分钟

添加至 vsc 配置文件中

"vim.easymotion": true,
  "vim.insertModeKeyBindings": [
    {
        "before": ["j", "j"],
        "after": ["<Esc>"]
    },
  ],
  "vim.normalModeKeyBindingsNonRecursive": [
    {
        "before": ["S"],
        "commands":[":w!"]
    },
    {
        "before": ["Q"],
        "commands":[":q!"]
    },  
    {
        "before": ["Z"],
        "commands":[":wq!"]
    },
    {
      "before": ["H"],
      "after": ["^"]
    },
    {
      "before": ["L"],
      "after": ["$"]
    },
    {
      "before": ["H"],
      "after":["^"]
    },
    {
      "before": ["L"],
      "after":["$"]
    },
    {
      "before":["s"],
      "after":["<nop>"]
    },
    {
      "before": ["m"],
      "after": ["leader", "leader", "leader", "b", "d", "w"]
    },
  ],
  "vim.leader": "<space>",
  "vim.useSystemClipboard": true,
  "vim.useCtrlKeys": true,
 

配置的 ‘K’->10k'J'->10j不知道为什么不生效 :-(

记得开启 easyMotion