On 2013-05-18 20:22, ping wrote:
> 1) :'<,'>g/.*/exec "normal! o\<esc>"
> unconditionally insert a new line after each line (this may bring a
> lot of empty lines , if the original book already contains empty
> lines)
Any line matching ".*" could be written as just "^", and the
"normal..." bit can be done with an ex command, making a simpler
version:
:'<,'>g/^/put_
(put the null "_" register)
> 2) format all each line seperately.
> :'<,'>g/.*/exec "normal! gqq"
> this is different than gggqG (this will mess up everything :D )
and again here, using "^" instead of ".*"
-tim
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment