vile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vile] Is there a way to apply CTRL-Af} to the whole of a file when


From: Paul Fox
Subject: Re: [vile] Is there a way to apply CTRL-Af} to the whole of a file when it's loaded?
Date: Wed, 05 Dec 2012 15:54:27 -0500

james wrote:
 > That would format the whole file which for email (assuming Mutt is
 > like Alpine) one doesn't want.  I think he only wants paragraph
 > format like Pico's ^J.  I did use vim with Set Linebreak in the
 > .vimrc - can't remember exactly now...  but it wrapped ALL because
 > with the >> there isn't then a blank line to mark a separate
 > paragraph.  So it was back to Pico until i've mastered colour
 > schemes and other things for my full .vimrc file.

well, vile will honor blank lines when reformatting even if they're
prefixed by '>>>'.  chris will have to weigh in with further
requirements, i guess.

paul

 > 
 > james
 > 
 > On Wed, 5 Dec 2012, Paul Fox wrote:
 > 
 > > james wrote:
 > > > On Wed, 5 Dec 2012, Chris Green wrote:
 > > >
 > > > > I'd like to do a sort of CTRL-Af} filter on a file as it's fed into 
 > > > > vile
 > > > > when I reply to an E-Mail using mutt.  This would reformat the long
 > > > > lines that a few systems produce into nicely formatted paragraphs, 
 > > > > using
 > > > > the filter above means that the '>' quote markers are preserved.
 > >
 > >
 > > would this work?
 > >
 > > in .vilerc:
 > >
 > >    store-procedure format-all
 > >    format-til goto-end-of-file
 > >    ~endm
 > >
 > > on the command line:
 > >    vi -c 'format-all' filename
 > >
 > > i don't know how much of the message mutt lets you edit -- if it includes
 > > the headers, you might want the format procedure to search for an empty
 > > line before doing the reformat.
 > >
 > > paul
 > >
 > > > >
 > > > > Is there any way of doing this when you run vile (i.e. a command line
 > > > > parameter)?
 > > > >
 > > > > --
 > > > > Chris Green
 > > >
 > > > I have been investigating this recently on several console editors. You 
 > > > want to
 > > > know if there's a linewrap like wordstar's ^B (Joe's editor's jstar for
 > > > example) or Pico's ^J and i don't think there is.
 > > >
 > > > I was trying to find out if there was a vim's Set linebreak equivalent 
 > > > in any
 > > > console editor so that i could use it for text word editing (as opposed 
 > > > to
 > > > progammer's coding). The only alternative was emacs "visual line mode". 
 > > > All the
 > > > graphical editors do it but not console. My editor of choice would be 
 > > > Joe as i
 > > > used a wordstar editor first years ago and the keybindings are still the 
 > > > most
 > > > efficient.
 > > >
 > > > For my requirements i'm gradually getting used to vim which can do 
 > > > anything...
 > > > but quite a bit of reading is involved. Like you i wnat to use the same 
 > > > editor
 > > > for text as i do for answering email (i use alpine).
 > > >
 > > > james
 > > > Are you Chris Green from Suffolk?
 > > >
 > > > _______________________________________________
 > > > vile mailing list
 > > > address@hidden
 > > > https://lists.nongnu.org/mailman/listinfo/vile
 > >
 > > =---------------------
 > > paul fox, address@hidden (arlington, ma, where it's 43.9 degrees)
 > >
 > > _______________________________________________
 > > vile mailing list
 > > address@hidden
 > > https://lists.nongnu.org/mailman/listinfo/vile
 > >

=---------------------
 paul fox, address@hidden (arlington, ma, where it's 42.6 degrees)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]