Undo undo and redo anti Vim revocation
, The following modifications of FIG vim mode ctrl-r
is U
, but doing so will have problems in insert mode can not be entered letterU
Solution
(1) open keybindings.json
, full address: ~/Library/Application Support/Code/User/keybindings.json
(2) add the following code to
{
"key": "shift+u", // redo in vim
"command": "extension.vim_ctrl+r",
"when": "textInputFocus && vim.mode != 'Insert'"
},
Note: You can copy the default shortcut keys configuration code via Copy
Reference material
- Undo in vim extension can’t be redo-ed by the redo command of vscode
- https://code.visualstudio.com/docs/getstarted/keybindings