Vim icon indicating copy to clipboard operation
Vim copied to clipboard

Remaps do not work when using a non-Default profile.

Open zjtalia opened this issue 1 year ago • 5 comments

Describe the bug Remap settings are not read from settings.json when using a non-Default profile.

To Reproduce Steps to reproduce the behavior:

  1. Click Settings gear in bottom left corner
  2. Hover on Profiles, click Create Profile...
  3. Select Using Current Profile and provide a profile name.
  4. Make sure settings.json is included in profile creation, click Create Profile
  5. Reload when prompted, and open settings.json
  6. Settings for vim remaps are greyed out and no longer work.

Expected behavior Remaps should continue to work when using a non-Default profile.

Screenshots Path to file is /c:/Users/<username>/AppData/Roaming/Code/User/profiles/257436e3/settings.json Other settings are still used but not remaps. image

Environment (please complete the following information):

  • Extension (VsCodeVim) version: v1.25.2
  • VSCode version: 1.80.2
  • OS: Windows

Additional context Add any other context about the problem here.

zjtalia avatar Jul 31 '23 19:07 zjtalia

Same here. I my case they are not greyed as unusable or unknown, but they just don't work. Environment

  • Extension: vscodevim.vim, version: v1.25.2
  • VSCode version: 1.81.1 (user setup)
  • Windows version: 10.0.19045.3324
  • WSL2 version: 1.2.5.0 image

ruslanSorokin avatar Aug 30 '23 12:08 ruslanSorokin

image

image

This works for me, some configs (you can see them in extension details) must be put in the settings file: C:/Users/<username>/AppData/Roaming/Code/User/settings.json, not those under profiles/ (this extension may need to improve). For other configs, just put them in your workspace setting files or profiles.

But I only copy-paste some basic config from the extension details.

Version: 1.81.1 (system setup) Commit: 6c3e3dba23e8fadc360aed75ce363ba185c49794 Date: 2023-08-09T22:22:42.175Z Electron: 22.3.18 ElectronBuildId: 22689846 Chromium: 108.0.5359.215 Node.js: 16.17.1 V8: 10.8.168.25-electron.0 OS: Windows_NT x64 10.0.22000 vim extension: v1.25.2 WSL2 version: 1.2.5.0

dreaming12 avatar Aug 30 '23 17:08 dreaming12

Yeah I can confirm that my vim settings are greyed out when using a non-default Profile, showing the error "This setting has an application scope and can only be set in user settings".

My imperfect fix was to switch to default profile (bottom left icon) and copy paste all my custom vim keybindings in the default settings.json.

polo5 avatar Mar 31 '24 17:03 polo5

same problem here. The remaps are greyed-out with the message "This setting has an application scope and can only be set in user settings". They do work up until I go into debug mode, then they're completely gone and I have to reload vscode for them to activate again.

doei avatar Aug 18 '24 15:08 doei

+1, same thing here

aguynamedben avatar Sep 05 '24 05:09 aguynamedben