Re: Formatting Posts With VI

From: Floyd L. Davidson (floyd_at_barrow.com)
Date: 09/12/04


Date: Sat, 11 Sep 2004 19:29:01 -0800

Alan Connor <zzzzzz@xxx.yyy> wrote:
>I just stumbled across this little 'trick' and thought it
>was worth passing on.
>
>What the following allows you to do is to simply hit "v"
>while you are in command mode, and it will re-format the
>paragraph your cursor is currently on, to a maximum line
>length of 75 characters, splitting and filling as it
>works. (The -c option tells it to leave an indented first
>line alone.)

Lordy, isn't that thrilling...

   1) Use 60-65 columns per line, not 70+.

   2) Use emacs instead of vi and you can reformat
      your own paragraphs, *and* the ones you quote
      with a properly placed quote prefix on each
      line.

Notice that I reforatted your paragraphs to 60 columns, like
they should have been to start with, all with two keystrokes
per paragraph.

-- 
FloydL. Davidson           <http://web.newsguy.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska)                         floyd@barrow.com


Relevant Pages

  • Re: Formatting Posts With VI
    ... >I just stumbled across this little 'trick' and thought it ... >was worth passing on. ... >while you are in command mode, ... >paragraph your cursor is currently on, ...
    (alt.os.linux)
  • Re: Formatting Posts With VI
    ... >I just stumbled across this little 'trick' and thought it ... >was worth passing on. ... >while you are in command mode, ... >paragraph your cursor is currently on, ...
    (alt.linux)
  • Re: Word 10.1.5: Find square-shaped email character/symbols and replace with paragraphs?
    ... Glad you solved it--I'll have to remember that trick as I have occasionally ... gotten messages in odd formats. ... rather than one giant paragraph broken up by squares. ...
    (microsoft.public.mac.office.word)
  • Re: Formatting Posts With VI
    ... > in command mode, and it will re-format the paragraph your cursor is ... > times times out of a 100 the paragraph is okay again. ... start of the text, 'gq}' to reformat the first paragraph, and then '.' ... I AM NOT MY LONG-LOST TWIN, I AM NOT MY LONG-LOST TWIN ...
    (comp.os.linux.misc)
  • Re: Formatting Posts With VI
    ... > in command mode, and it will re-format the paragraph your cursor is ... > times times out of a 100 the paragraph is okay again. ... start of the text, 'gq}' to reformat the first paragraph, and then '.' ... I AM NOT MY LONG-LOST TWIN, I AM NOT MY LONG-LOST TWIN ...
    (alt.linux)