[VScode] to set custom shortcuts in Vim keybindings.json Anti revoked redo shortcut for U

Undo undo and redo anti Vim revocation

, The following modifications of FIG vim mode ctrl-ris U, but doing so will have problems in insert mode can not be entered letterU
Here Insert Picture Description

Solution

(1) open keybindings.json, full address: ~/Library/Application Support/Code/User/keybindings.json
Here Insert Picture Description
Here Insert Picture Description
(2) add the following code to

   {
        "key": "shift+u", // redo in vim
        "command": "extension.vim_ctrl+r",
        "when": "textInputFocus && vim.mode != 'Insert'"
    },

Here Insert Picture Description

Note: You can copy the default shortcut keys configuration code via Copy
Here Insert Picture Description

Reference material

Other: quickly switch the navigation bar quickOpenNavigate

Here Insert Picture Description

Published 308 original articles · won praise 149 · Views 150,000 +

Guess you like

Origin blog.csdn.net/qq_43827595/article/details/105189953