Multi-line vim command

What is normal command?

"startTime": "09:30",
"finishTime": "10:15",
"totalTime": "45m",
"amount": "$8.82",
  1. Enter visual mode
  2. Select all the lines
  3. Press <Shift+;>. You’ll see :'<,'>
  4. Type :'<,'>normal 0diWx and hit Enter
  5. The text changes to below
"09:30",
"10:15",
"45m",
"$8.82",
  • 0: Moves the cursor to the start of the line
  • diW: Deletes the WORD that is defined by a sequence of non-blank characters
  • x: Deletes the space after the colon
09:30
10:15
45m
$8.82

--

--

--

Technologist, yogi, book-worm and wine lover!

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How To Get Started Managing Data Quality With SQL and Scale

Evolution of Developer Experience Portal UI: Case Study

Have You Tried an Interactive Course Yet? Here Are Some Reasons Why You Should

Old material turns into new interactive and gamified courses.

Turn Your Boring Terminal Into A Sexy One

Accelerating Software Delivery By Unifying CI/CD and Observability

.NET Celebrates 20 years and brings us a Gift🎁: New .NET 7 Features Revealed

3 challenges in tech roadmapping

Mastering Django Queries

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Hangjit Rai

Hangjit Rai

Technologist, yogi, book-worm and wine lover!

More from Medium

Neovim for journaling 🤓 🚀

Cancel a terminal command during preexec ZSH function

Why You Should Dump VSCode, Move To NeoVim, And Why You Shouldn’t

Vim === Productive programmer