Vim
Vim copied to clipboard
vimrc remaps do not respect comments
Describe the bug If "Use key mappings from a .vimrc file" is enable in settings, vim comments are not respected on mapping lines. Instead, the content of the comment is interpreted as part of the mapping.
To Reproduce Steps to reproduce the behavior:
Add this to the vimrc:
map <leader>g gg" isometext
Then, trigger the mapping. Observe that the cursor has jumped to the first line, entered insert mode, and inserted the text "sometext" into the file.
Thank you!
Expected behavior The behavior should be the same as vim. Running this mapping would execute "gg" and only "gg".
Screenshots If applicable, add screenshots to help explain your problem. If remapping-related, please attach log output: https://github.com/VSCodeVim/Vim#debugging-remappings.
Environment (please complete the following information):
- Extension (VsCodeVim) version: 1.23.1
- VSCode version: 1.69.0
- OS: macOS Monterey 12.3
Additional context Add any other context about the problem here.