-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
Describe the bug
I want to remap <ctrl-a>
to "ggVG" to select all text in visual mode from normal mode. Just like what setting map <C-a> ggVG
in .vimrc
file does.
Defaultly, from normal mode, pressing <ctrl-a>
fails to select text in visual mode. If you press y
afterwards, all text won't be yank.
Having tried modifying the setting.json and vscode.vimrc
as following, neither works.
To Reproduce
Steps to reproduce the behavior:
1(a). changing setting.json
:
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["<C-a>"],
"after": ["g", "g", "V", "G"]
},
or
1(b). modifying $HOME/vscode.vimrc
:
map <C-a> ggVG
then
2. open a file, enter vim normal mode, press Ctrl a
, fails to enter visual mode.
Also tried disabling the system shortcuts ctrl-a, still not work.
Expected behavior
Open a file, enter vim normal mode, press Ctrl a
, enter visual mode and select all lines. Then you can use d
or y
to do further operation. Just like what setting map <C-a> ggVG
in .vimrc
file does.
Environment (please complete the following information):
- Extension (VsCodeVim) version: v1.30.1
- VSCode version: 1.101.2
- OS: Linux x64 6.8.0-60-generic