Re: Good vim configuration?

2001-12-31 Thread Gregor Zattler
Hi Thomas, * Thomas Hurst [EMAIL PROTECTED] [Die 25 Dez 2001 12:14:19 GMT]: [ ... reformating paragraphs in replys ... ] I use par(1), http://www.cs.berkeley.edu/~amc/Par/ How (with which parameters) do you use it? I saw it a few months ago but got confused with parameters... Ciao, Gregor

Re: Good vim configuration?

2001-12-31 Thread Thomas Hurst
* Gregor Zattler ([EMAIL PROTECTED]) wrote: * Thomas Hurst [EMAIL PROTECTED] [Die 25 Dez 2001 12:14:19 GMT]: [ ... reformating paragraphs in replys ... ] I use par(1), http://www.cs.berkeley.edu/~amc/Par/ How (with which parameters) do you use it? I saw it a few months ago but got

Re: Good vim configuration?

2001-12-31 Thread Rob 'Feztaa' Park
Alas! Thomas Hurst spake thus: How (with which parameters) do you use it? I saw it a few months ago but got confused with parameters... I stole PARINIT=grTbiqR B=.?_A_a Q=_s:| from someone and call it with If I'm not mistaken, that looks _exactly_ like what the man page tells you to use

Re: Good vim configuration?

2001-12-31 Thread Thomas Hurst
* Rob 'Feztaa' Park ([EMAIL PROTECTED]) wrote: Alas! Thomas Hurst spake thus: I stole PARINIT=grTbiqR B=.?_A_a Q=_s:| from someone and call it with If I'm not mistaken, that looks _exactly_ like what the man page tells you to use if you want to use par now, but understand it later. Then

Re: Good vim configuration?

2001-12-31 Thread Rob 'Feztaa' Park
Alas! Thomas Hurst spake thus: I stole PARINIT=grTbiqR B=.?_A_a Q=_s:| from someone and call it with If I'm not mistaken, that looks _exactly_ like what the man page tells you to use if you want to use par now, but understand it later. Then again, maybe it just looks vaguely similar

Re: Good vim configuration?

2001-12-26 Thread David T-G
Philip, et al -- ...and then Philip Mak said... % % I tinkered around a bit more and came up with this code for making Ctrl+J % (justify paragraph) work, even with quoted text. Cool -- I like it a lot (or at least the *Para functions). % % It assumes that ^[ ]*$ is the paragraph separator,

Re: Good vim configuration?

2001-12-26 Thread Thomas Dickey
BTW, regarding those other suggestions involving binding fmt or par to a key, isn't it slow to fork a process every time you press the rejustify key, or is that overhead negligible? it really depends on how often you do it (I don't do this one, but have equivalent cases in mind). -- Thomas

Re: Good vim configuration?

2001-12-26 Thread Bruno Postle
On Tue 25-Dec-2001 at 06:33:15AM -0500, Philip Mak wrote: I'm used to using pine's editor, which handles filling of paragraphs (even if they start with due to quoting) fairly nicely. I'm wondering what configurations for .vimrc do you guys use for use with mutt? I don't know where it

Good vim configuration?

2001-12-25 Thread Philip Mak
I'm used to using pine's editor, which handles filling of paragraphs (even if they start with due to quoting) fairly nicely. How can I achieve the same thing in vi? I'd like to be able to bind a key such that when I press it, it automatically refills the current paragraph smartly. Some

Re: Good vim configuration?

2001-12-25 Thread Gerhard Häring
Le 25/12/01 à 06:33, Philip Mak écrivit: I'm used to using pine's editor, which handles filling of paragraphs (even if they start with due to quoting) fairly nicely. How can I achieve the same thing in vi? I'd like to be able to bind a key such that when I press it, it automatically

Re: Good vim configuration?

2001-12-25 Thread Rob 'Feztaa' Park
On Tue, Dec 25, 2001 at 06:33:15AM -0500, Philip Mak (dis)graced my inbox with: I'm used to using pine's editor, which handles filling of paragraphs (even if they start with due to quoting) fairly nicely. How can I achieve the same thing in vi? I'd like to be able to bind a key such that

Re: Good vim configuration?

2001-12-25 Thread Thomas Hurst
* Philip Mak ([EMAIL PROTECTED]) wrote: How can I achieve the same thing in vi? I'd like to be able to bind a key such that when I press it, it automatically refills the current paragraph smartly. Some automatic line wrapping would be nice, too... I'm wondering what configurations for .vimrc

Re: Good vim configuration?

2001-12-25 Thread Philip Mak
I did some digging around Google and came up with this: [pmak@lina pmak]$ cat .muttvimrc map C-J {gq} # Ctrl+J rejustifies current paragraph set formatoptions=tcroqv# see :help formatoptions set comments=nb: # rejustify quoted text correctly set tw=75

Re: Good vim configuration?

2001-12-25 Thread Thomas Dickey
On Tue, Dec 25, 2001 at 12:14:19PM +, Thomas Hurst wrote: * Philip Mak ([EMAIL PROTECTED]) wrote: How can I achieve the same thing in vi? I'd like to be able to bind a key such that when I press it, it automatically refills the current paragraph smartly. Some automatic line wrapping

Re: Good vim configuration?

2001-12-25 Thread David T-G
Philip -- ...and then Philip Mak said... % % I'm used to using pine's editor, which handles filling of paragraphs (even % if they start with due to quoting) fairly nicely. % % How can I achieve the same thing in vi? I'd like to be able to bind a key % such that when I press it, it

Re: Good vim configuration?

2001-12-25 Thread David T-G
Rob -- ...and then Feztaa said... % % On Tue, Dec 25, 2001 at 06:33:15AM -0500, Philip Mak (dis)graced my inbox with: % I'm used to using pine's editor, which handles filling of paragraphs (even % if they start with due to quoting) fairly nicely. % % How can I achieve the same thing in

Re: Good vim configuration?

2001-12-25 Thread David T-G
Philip -- ...and then David T-G said... % % ...and then Philip Mak said... % % % % smartly. Some automatic line wrapping would be nice, too... I'm wondering Oh, yeah. There're both tw (text width) and wm (wrap margin); both have their advantages. % HTH HAND % % % Merry Christmas to all!

Re: Good vim configuration?

2001-12-25 Thread Joel Hammer
You can do anything you want to your docment with shell commands. eg. :1,5 !fmt will close up lines 1 to 5. or: !}fmt will do the same to the next paragraph break (blank line). info fmt will show you some options. You could write a very short script to do just want you want and bind it to a key.

Re: Good vim configuration?

2001-12-25 Thread Philip Mak
I tinkered around a bit more and came up with this code for making Ctrl+J (justify paragraph) work, even with quoted text. It assumes that ^[ ]*$ is the paragraph separator, meaning that any line which is blank or only contains '' and ' ' separates a paragraph. Here is the full code for making