Friday, June 29, 2012

please explain g/\S/,/^\s*$/j

Please explain HOW this works.
g/\S/,/^\s*$/j

I see it joins all lines by paragraph.

g/\S/ find all lines that contain non-whitespace

, ??? what does this do?

/^\s*$/ find all blank lines (only zero or more whitespace)

j ??? what does this do?

Bill

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: