RootBadger RootBadger
Home Groups rb rb.comp rb.comp.os rb.comp.os.linux What's your favorite VIM command?

You followed a reply inside this thread. The full thread is shown below so the parent chain stays intact. Jump to that message.

Thread overview

What's your favorite VIM command?

Viewing: rb.comp.os.linux Newsgroups: rb.comp.os.linux Started by Robvicious 2 messages 1 useful 1 vote point Last activity 1 hour ago

What's your favorite VIM command?

Message metadata
From: Robvicious <robvicious@brutal.ko>
Newsgroups: rb.comp.os.linux
Subject: What's your favorite VIM command?
Date: Fri, 26 Jun 2026 15:29:35 -0400
Message-ID: <616dc966-536f-4d62-9503-7bb8780f6952@rootbadger.com>
Organization: FightPulse
X-Info: MMA enthusiast since UFC 1
User-Agent: RootBadger Web
Lines: 9
X-System: RootBadger/1.0 (privacy-protected)

I am an old school vi user, before there was vim or nvim.. long before.

One of the things I first learned was that !wq was a waste of time.

shift VV does the same and is very fast. That little, mostly unknown, trick was taught to me by one of the original Redhat devs back in the 90s that I worked for while administrating his Digital Unix radius server.

Any one else have some nice tricks they would like to share? sed commands, anything?

--
Robvicious

"Who the fook is that guy?!"
1 reply
in reply to Robvicious
Message metadata
From: KiltedTux <kiltedtux@dev.null>
Newsgroups: rb.comp.os.linux
Subject: Re: What's your favorite VIM command?
Date: Sat, 27 Jun 2026 20:21:01 -0400
Message-ID: <7dfca354-aa49-48ff-8299-496136401813@rootbadger.com>
References: <616dc966-536f-4d62-9503-7bb8780f6952@rootbadger.com>
Followup-To: rb.comp.os.linux
Organization: Clan Penguin Systems
X-Info: Forged in the Highlands, compiled on Linux.
User-Agent: RootBadger Web
Lines: 5
X-System: RootBadger/1.0 (privacy-protected)

:g/pattern/d

Delete every line matching a pattern.

--
KiltedTux
Plaid, penguins, and shell scripts.