Is there any difference between doing the following two commands:
:1,19g!/let/d
And:
:1,19v/let/d
Or is v an alias for g! ?
Is there any difference between doing the following two commands:
:1,19g!/let/d
And:
:1,19v/let/d
Or is v an alias for g! ?
Yes, they're the same.
As :help :v says:
Same as
:g!.
(That's the whole contents of that help entry.)
You'll find the description for :g! under :help :g, just below the description of :g itself:
:[range]g[lobal]!/{pattern}/[cmd]Execute the Ex command
[cmd](default:p) on the lines within[range]where{pattern}does NOT match.
E149: Sorry, no help for g!, andvbrings up visual mode. – David542 Apr 25 '20 at 03:11:h {subject}, no one can use vim properly without knowing how to use the:h, it should always be your first choice when you have questions. – dedowsdi Apr 25 '20 at 03:14:h, but trust me, it's totally worth it, it's one of the most used command for all vimmers. – dedowsdi Apr 25 '20 at 03:21:, you need:help :v. The!version is documented together with the original, so it will be under:help :g. – filbranden Apr 25 '20 at 04:05