vscode vim

vscode vim 记录

im-select 自动切换输入法

// 输入法自动切换
  "vim.autoSwitchInputMethod.enable": true,
  "vim.autoSwitchInputMethod.defaultIM": "1033",
  "vim.autoSwitchInputMethod.obtainIMCmd": "D:\\jdk1.8.0_131\\im-select.exe",
  "vim.autoSwitchInputMethod.switchIMCmd": "D:\\jdk1.8.0_131\\im-select.exe {im}",

基本使用

	s 搜索 		:跳转		  f/F当前行搜索 		 /等同于ctrl + f 
	dd 删除当前行			daw删除当前单词  
	yy 复制当前行			yaw复制当前代词
	hjkl 上下左右           Esc 进入normal模式

my setting

  "vim.foldfix": true,
  "vim.sneak": true,
  // 输入法自动切换
  "vim.autoSwitchInputMethod.enable": true,
  "vim.autoSwitchInputMethod.defaultIM": "1033",
  "vim.autoSwitchInputMethod.obtainIMCmd": "D:\\jdk1.8.0_131\\im-select.exe",
  "vim.autoSwitchInputMethod.switchIMCmd": "D:\\jdk1.8.0_131\\im-select.exe {im}",
  "vim.leader": "<space>",
    "vim.insertModeKeyBindings": [
    {
      "before": ["j", "j"],
      "after": ["<Esc>"]
    },
    {
      "before": ["j", "k"],
      "after": ["<Esc>"]
    },
    {
      "before": ["k", "k"],
      "after": ["<Esc>"]
    },
    {
      "before": ["<C-h>"],
      "after": ["<Left>"]
    },
    {
      "before": ["<C-j>"],
      "after": ["<Down>"]
    },
    {
      "before": ["<C-k>"],
      "after": ["<Up>"]
    },
    {
      "before": ["<C-l>"],
      "after": ["<Right>"]
    },
    {
      "before": ["<C-e>"],
      "after": ["<End>"]
    },
    {
      "before": ["<C-d>"],
      "after": ["<Delete>"]
    }
  ],
  "vim.visualModeKeyBindings": [
    {
      "before": [">"],
      "commands": ["editor.action.indentLines"]
    },
    {
      "before": ["<"],
      "commands": ["editor.action.outdentLines"]
    }
  ],
  "vim.normalModeKeyBindingsNonRecursive": [
    {
      "before": ["L"],
      "after": ["$"]
    },
    {
      "before": ["H"],
      "after": ["^"]
    },
    {
      "before": ["J"],
      "after": ["9", "j"]
    },
    {
      "before": ["K"],
      "after": ["9", "k"]
    },
    {
      "before": ["Y"],
      "after": ["y", "$"]
    },
    {
      "before": [
        // 想左切换vscodeTab
        "E"
      ],
      "after": ["g", "T"]
    },
    {
      "before": [
        // 想右切换vscodeTab
        "R"
      ],
      "after": ["g", "t"]
    },
    {
      "before": ["U"],
      "after": ["<C-r>"]
    },
    {
      "before": ["z", "z"], // 存盘退出
      "after": [":", "w", "q", "<CR>"]
    },
    {
      "before": ["<leader>", "l"],
      "after": ["$"]
    },
    {
      "before": ["<leader>", "h"],
      "after": ["^"]
    },
    {
      "before": ["<leader>", "<leader>"], // 折叠
      "commands": ["editor.toggleFold"]
    },
    {
      "before": ["<leader>", "w"], // 保存文件
      "commands": ["workbench.action.files.save"]
    },
    {
      "before": ["<leader>", "v"],
      "commands": ["workbench.action.splitEditor"] // 拆分代码块
    },
    {
      "before": ["<leader>", "e"], // 资源管理器
      "commands": ["workbench.view.explorer"]
    }
  ],
  "vim.handleKeys": {
    "<C-a>": false,
    "<C-f>": false,
    "<C-c>": false,
    "<C-v>": false,
    "<C-x>": false,
    "<C-n>": false,
    "<C-w>": false,
    "<C-d>": false,
    "<C-y>": false
  },
   "editor.smoothScrolling": true,
   "editor.cursorSmoothCaretAnimation": true,
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值