vi: !}fmt to flush left, left/right, right, middle

vi: !}fmt to flush left, left/right, right, middle

Post by Michael Wa » Sat, 28 Mar 1998 04:00:00



Is there something similar to fmt, or an option for fmt,
that can make adjustment to make a paragraph flush    on
the left side and right side. And better yet, to    make
the paragraph flush on the left/right/middle? one or two
chars mismatch won't hurt.

I am not a big fun of Micro$oft and I was forced  to use
WORD yesterday. And I found features that vi and external
prgrams yet to match. thesaurus is       really useful in
composing an article.

 
 
 

vi: !}fmt to flush left, left/right, right, middle

Post by Preben 'Peppe' Guldbe » Sat, 28 Mar 1998 04:00:00



Quote:> Is there something similar to fmt, or an option for fmt,
> that can make adjustment to make a paragraph flush    on
> the left side and right side. And better yet, to    make
> the paragraph flush on the left/right/middle? one or two
> chars mismatch won't hurt.

Have you tried par as an alternative to fmt?

With vim you can use :left, :right and :center to make such alignments. It
is trickier to make left _and_ right alignment. I have once made a couple
of macros to do this in vanilla vi - I lost them when enhancing them for
vim :-(   If you want a copy to fiddle with, let me know.

Peppe
--
Preben Guldberg          __/-\__       "Life consists in penetrating the

----------------------oOOo (_) oOOo--   in accord with the new knowledge
http://www.student.dtu.dk/~c928400      thus acquired."       --Leo Tolstoy

 
 
 

vi: !}fmt to flush left, left/right, right, middle

Post by Michael Wa » Sat, 28 Mar 1998 04:00:00



>> Is there something similar to fmt, or an option for fmt,
>> that can make adjustment to make a paragraph flush    on
>> the left side and right side. And better yet, to    make
>> the paragraph flush on the left/right/middle? one or two
>> chars mismatch won't hurt.

>Have you tried par as an alternative to fmt?

There is no par on solaris.
 
 
 

vi: !}fmt to flush left, left/right, right, middle

Post by T.E.Dicke » Sat, 28 Mar 1998 04:00:00



: There is no par on solaris.
        http://www.veryComputer.com/~amc/Par/
        >Par 1.50 - paragraph reformatter

--
Thomas E.*ey

http://www.veryComputer.com/

 
 
 

vi: !}fmt to flush left, left/right, right, middle

Post by Jesus M. Castagnet » Sun, 29 Mar 1998 04:00:00


Hello Michael,


1998 20:20:23 GMT):


>>> Is there something similar to fmt, or an option for fmt,
>>> that can make adjustment to make a paragraph flush    on
>>> the left side and right side. And better yet, to    make
>>> the paragraph flush on the left/right/middle? one or two
>>> chars mismatch won't hurt.

>>Have you tried par as an alternative to fmt?

>There is no par on solaris.

You got to get par and compile it for your platform. It is more
flexible than fmt and understands indenting and* indents and
justification. Check your favorite search engine for the web site. I
forgot where I got my copy, and I am running Solaris at work, so it
works OK, no problem compiling it.

Good luck.

=== Jesus.


"Life is, ask no more" (Me :)
"Antispam? I know how to filter my e-mail" (Me, again :)
Pilot stuff & etc.:
  http://www.veryComputer.com/
Metalloprotein DB and browser:
  http://www.veryComputer.com/

 
 
 

vi: !}fmt to flush left, left/right, right, middle

Post by Jon LaBad » Sun, 29 Mar 1998 04:00:00


|> Is there something similar to fmt, or an option for fmt,
|> that can make adjustment to make a paragraph flush    on
|> the left side and right side. And better yet, to    make
|> the paragraph flush on the left/right/middle? one or two
|> chars mismatch won't hurt.
|>
|> I am not a big fun of Micro$oft and I was forced  to use
|> WORD yesterday. And I found features that vi and external
|> prgrams yet to match. thesaurus is       really useful in
|> composing an article.

The oldtimer in me says consider nroff.

Insert a line or two of specifications, like

    .pl 1               # page length so you don't get 66
    .ll 50              # character line length
    .ad                 # adjust (defaults to both, also l, r, c)
    .hy                 # hyphenation?  (0 or 1 I think)

Then do your same !} or !G command to nroff.

As to thesaurus, look for wordnet, maybe xwordnet.
I don't use it much but it has similar properties.

jl
--


 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)

 
 
 

1. Left vs. Ctl-Left vs. Alt-Left

I'm running Red Hat Linux 4.1.  For Bash, I'd like to be able to associate
different commands to the left arrow key, ctl-left and alt-left.  Likewise for
the right arrow key.  Unfortunately, "cat -t" and "ctl-v" both report that all
variants of left generate the same keystroke;  likewise for right.  Is there any
way to generate a different command for each variant?

Dave Morgenlender

2. Upgrading Kernel

3. Awk from right to left

4. Uploaded to university pub server?

5. Netscape and ALT+Left,ALT+Right keys

6. Lilo with 2 HD

7. How do you switch the left and right mouse button in linux ?

8. Full-page scanners under Linux

9. X-win scrol-bar , right or left ?

10. What is the C++ equivalent of Left() and right() and mid()

11. Discriminating between left and right modifiers with xmodmap ?

12. Display right-left switched

13. Arithmetic in (t)csh : right to left ???