Skip to content

Cannot enable .vimrc from WSL #9735

@SeanJMorris

Description

@SeanJMorris

Describe the bug
I want to use the remaps I've specified in my .vimrc file but the extension won't recognize it.

To Reproduce

  1. in settings.json insert these lines of code:
"vim.vimrc.enable:" true,
"vim.vimrc.path": "\\\\wsl.localhost\\Ubuntu\\home\\scjmorris\\.vimrc"
  1. Save the file
  2. See that there is a snack message that says "No .vimrc found at..." the location.

Expected behavior
I expect to have the file save and read in my .vimrc file.

Screenshots

Image Image

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.30.1
  • VSCode version: 1.96.4
  • OS: Windows 11 24H2 (OS Build 26100.4946) using WSL version 2.2.4.0

Additional context
You'll see in the screenshots that I first expected to be able to use "~/.vimrc" because that's the path that I use in WSL where I typically use Vim. Then I noticed based on the snack message that it was clearly expecting a windows file. The following alternatives for the .vimrc path also did not work (note that I also attempted each of these also without the .vimrc:
\\\\wsl.localhost\\Ubuntu\\home\\scjmorris\\.vimrc
\\\\wsl$\\Ubuntu\\home\\scjmorris\\.vimrc
C:\\Users\\scjmorris\\.vimrc

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions