Doesn't read .vimrc
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Describe the bug
I am trying to set some custom mapping in my $HOME/.vimrc
nnoremap <A-j> :m .+1<CR>==
nnoremap <A-k> :m .-2<CR>==
inoremap <A-j> <Esc>:m .+1<CR>==gi
inoremap <A-k> <Esc>:m .-2<CR>==gi
vnoremap <A-j> :m '>+1<CR>gv=gv
vnoremap <A-k> :m '<-2<CR>gv=gv
My settings.json
{
"workbench.colorTheme": "Atom One Dark",
"workbench.iconTheme": "material-icon-theme",
"terminal.integrated.sendKeybindingsToShell": true,
"yaml.schemas": {
"file:///Users/FRANCESCO.ZUPPICHINI/.vscode/extensions/atlassian.atlascode-3.0.9/resources/schemas/pipelines-schema.json": "bitbucket-pipelines.yml"
},
"explorer.confirmDragAndDrop": false,
"explorer.confirmDelete": false,
"terminal.integrated.enableMultiLinePasteWarning": false,
"security.workspace.trust.untrustedFiles": "open",
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.formatOnSave": true,
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.formatOnPaste": true,
"editor.lineNumbers": "relative",
"vim.vimrc.enable": true,
"vim.vimrc.path": "$HOME/.vimrc"
}
Doing cat $HOME/.vimrc, shows the file
But using the map doesn't do anything
Thank you in advance
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
A clear and concise description of what you expected to happen.
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: idk, just installed
- VSCode version: 1.84.2
1a5daa3a0231a0fbba4f14db7ec463cf99d7768e
arm64 - OS: MacOS
Additional context
Add any other context about the problem here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the vim.vimrc.enable and vim.vimrc.path settings in settings.json, then inspect $HOME/.vimrc and the VSCodeVim remapping debugging guidance linked in the issue. Verify the installed VSCodeVim version and remapping logs; done means the listed Alt-j and Alt-k mappings work in normal, insert, and visual modes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- vim, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100