Thursday, September 21, 2017

Re: how to quickly change block data order

On 2017-09-21 08:08, Gary Johnson wrote:
> Get rid of the indentation of the first line:
>
> gg0dw

Or either of the following

gg<G
:%le

> :set fo=
> :set tw=39
> gggqG

If you prefer to do it with standard *nix tools outside of vim, you
can use

sed 's/^\s*//' in.txt | fmt -w 40 > out.txt

The `sed` strips off the leading whitespace while `fmt` does the
heavy lifting/reformatting.

-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/d/optout.

No comments:

Post a Comment