Quote:
Originally Posted by kacir
Just look at the example I posted in a thread a few days ago
----------------------
You can write a command in Vim saying
"find every line NOT ending with dot, question mark, exclamation point or closing quote, optionally followed by a space character and join it with the next line"
:vglobal/[.!?"']\s*$/join
I often abbreviate the above command this way:
:v/[.!?"']\s*$/j
That is it.
----------------------
|
But, to be fair, you don't necessarily need a CLI tool for things like that. There are lots of "GUI" editors which support powerful regex syntax in their "search and replace" operations, which is what it's most useful for. A decent S&R and a macro facility and you can do pretty much what you want.