3

I have this in my settings.json for preventing vim from replacing my clipboard when I delete something:

  "vim.visualModeKeyBindingsNonRecursive": [
    {
      "before": ["<leader>", "d"],
      "after": ["\"_d"]
    },
    {
      "before": ["<leader>", "p"],
      "after": ["\"_dP"]
    }
  ],

I have other settings which work just not this one. I suspect its the \" in the after setting, not sure if that's really the problem. Help?

romainl
  • 186,200
  • 21
  • 280
  • 313
Amal Thundiyil
  • 307
  • 1
  • 4
  • 9

1 Answers1

1

This is what worked for me.

{
  "vim.visualModeKeyBindingsNonRecursive": [
    {
      "before": ["<leader>", "d"],
      "after": ["\"", "_", "d"]
    },
    {
      "before": ["<leader>", "p"],
      "after": ["\"", "_", "d", "P"]
    }
  ]
}
Amal Thundiyil
  • 307
  • 1
  • 4
  • 9