0

'

I'm trying to remap ':w' to 'zz' in vscode vim. I've made 2 attempts, (one commented out). So far its not working. How can I perform this remap?

"vim.commandLineModeKeyBindings": [
    {
        "before": [":","w"],
        "after": ["z", "z"]
        // "before": ["z", "z"],
        // "after": [":","w"]
    },
]
isAif
  • 2,126
  • 5
  • 22
  • 34
user1592380
  • 34,265
  • 92
  • 284
  • 515

1 Answers1

2

You should be able to use the following to map zz to the save action:

"vim.normalModeKeyBindingsNonRecursive": [
    {
        "before": ["z", "z"],
        "commands": [
            ":w"
        ]
    }
]
rfkortekaas
  • 6,049
  • 2
  • 27
  • 34