question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi,

First, thanks for the great work you’re doing 👍

I was wondering if there’s a way to define the :W command and map it to :w?

As I often don’t lift my finger of the Shift key fast enough more than 50% of the time I write :W which fails silently and I don’t notice I haven’t saved.

In vim I use the following to set this up:

command! W :w

Is there a way to do it with vscode-vim?

Thanks, David.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:21
  • Comments:16 (4 by maintainers)

github_iconTop GitHub Comments

12reactions
bsafcommented, Sep 19, 2018

Not a direct solution, but I prefer remapping : to ; in Vim – this means I am never pressing shift during save so never accidentally type :W.

"vim.normalModeKeyBindings": [
  {
     "before": [";"],
     "after": [":"]
   }
]
6reactions
hristoddcommented, Jan 30, 2019

Anyone has a solution? It’s very annoying 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Map :W to :w in vim (Example) - Coderwall
A protip by iltempo about viml and vim.
Read more >
How can I permanently map the vim command :W to :w?
You don't want to map a key but create a command that behaves the same way as w(rite) does. Just write this into...
Read more >
Google Maps
No information is available for this page.
Read more >
W Train (Broadway Local) Line Map - MTA
W Train (Broadway Local) Line Map. Updated Aug 13, 2021. This shows weekday service. Listed transfers are based on the weekday schedule and...
Read more >
Map :W to :w - vimrcfu
Started using Vim the last 4 weeks. But one thing that really annoyed me was: I always type :W instead of :w in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found