On Sunday, May 28, 2017 at 3:10:42 AM UTC-5, Yubin Ruan wrote:
> empty lines are not deleted by "g/^\s*$/d".
It's because you used an unescaped '\' inside double quotes ('"'). Try either
of the following:
exec "g/^\\s*$/d"
g/^\s*$/d
Note that the 'g' by itself starts an ex command, there is no reason to use
exec here to transform a string into an ex command.
I'm not sure why the first version of the function works, to be honest.
--
--
You received this message from the "vim_dev" 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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.