Re: Vim and email quoting
Suresh Govindachar wrote: Benjamin Esham wrote: I use the non-Vim-friendly Apple Mail for my e-mail, but I use pan and Vim for Usenet; here is the function that's called whenever I set filetype=usenet: [snip] The second function does a beautiful job of reflowing paragraphs to take up the entire textwidth; it was devised by Peppe on comp.editors. (If anyone has questions about how any of this works, please ask!) Please explain FormatUsenetParagraph(). See http://groups.google.com/group/comp.editors/browse_thread/thread/ a382470b98eb4671/2f6728e3d24a5d11?#2f6728e3d24a5d11; there's a fair amount of discussion and dissection there. Also, where is InsertSpoilerSpace()? Sorry for the omission. Here it is: function! InsertSpoilerSpace() call append(0, [Spoiler Space (24 lines), ]) let @a = 22 while @a = 2 call append(24 - @a, [getreg(a), ]) let @a = @a - 2 endwhile endfunction This inserts numbers that count down the number of lines of spoiler space left. Apparently this is helpful for people who use screen readers. HTH, -- Benjamin D. Esham [EMAIL PROTECTED] | AIM: bdesham128 | Jabber: same as e-mail Esperanto, the international language ☆ http://www.lernu.net
Re: Vim and email quoting
fREW wrote: On 5/12/07, Troy Piggins [EMAIL PROTECTED] wrote: * Timothy Knox is quoted my replies are inline below : I use vim to write my outgoing email, and for the most part, it rocks. Thanks to all the folks who have written modules and provided tips that make it the best thing for writing email since mailx grin. What tips/scripts are you using and what are your favourites? Yeah, I am interested as well. What do you use to do all of this? I use the non-Vim-friendly Apple Mail for my e-mail, but I use pan and Vim for Usenet; here is the function that's called whenever I set filetype=usenet: :: set us up for usenet-article editing function! UsenetSetup() setl textwidth=75 wrap at 75 columns setl comments=n:,n:\|,n:%recognize [|%] as quote indicators setl formatoptions=qn allow formatting with 'gq'; recognize lists (q.v.) the unholy mess on the next line recognizes lists with 1., -, and * as bullets, setl flp=^\\(\\d\\+[.\\t\ ]\\\|[-*•]\ \\\|\ \ \\)\\s* and also recognizes two-space blockquoting setl expandtabuse spaces instead of tabs (eugh) nmap Leaders :call InsertSpoilerSpace()CR nmap Leaderf :call FormatUsenetParagraph()CR insert a randomly-chosen signature and turn on spell checking nmap Leaderg :r !~/.vim/usenet/sig.pl ~/.vim/usenet/ sigsCR:setl spellCR setl encoding=utf-8 setl fileencoding=utf-8 endfunction function! FormatUsenetParagraph() sil '{,'}s/\%(^[|% \t]*\)\@=\([|%]\)\s*/\1 /ge normal gqip endfunction The second function does a beautiful job of reflowing paragraphs to take up the entire textwidth; it was devised by Peppe on comp.editors. (If anyone has questions about how any of this works, please ask!) HTH, -- Benjamin D. Esham [EMAIL PROTECTED] | AIM: bdesham128 | Jabber: same as e-mail Esperanto, the international language ☆ http://www.lernu.net
Re: Keeping tab indentation of blank lines
Yakov Lerner wrote: Laurent Birtz wrote: When I press 'o', it starts an empty line correctly indented. If I press 'escape' immediately, the indentation is removed and the cursor moves to column 1. If I press 'enter' instead, the indentation is removed for the first line, but the subsequent lines remain indented when I finally press 'escape'. Correctly indented here for me, after oEnter. Somewthing is wrnog either with eyour settings, or with vim version. You didn't answer my question regarding your vim version (:version) I get this behavior with 7.0.94, but it's done this for as long as I can remember (I've been using Vim since 6.2, I think). I always just assumed that it was standard (if annoying) behavior. Some relevant options set are autoindent, ts=4, sw=4, noet, and bs=2. And actually, if I press 'o' on an indented line, press Enter a bunch of times, and then Esc, /none/ of the newly-created lines are indented. -- Benjamin D. Esham [EMAIL PROTECTED] | AIM: bdesham128 | Jabber: same as e-mail “...when two opposite points of view are expressed with equal intensity, the truth does not necessarily lie exactly halfway between them. It is possible for one side to be simply wrong.” — Richard Dawkins PGP.sig Description: This is a digitally signed message part
Re: +clientserver on Mac OS X
A.J.Mechelynck wrote: Now, there does exist an X11 server for Mac Os X but I've heard some Mac users don't want to use it because (I've been told) applications running through the X server are not visible as distinct running Mac applications. This is true. It's possible to run X11 apps, such as the GIMP, Pan, GnuCash, and OpenOffice.org with Apple's X11 program, but these do not appear as distinct applications like everything else in OS X: they are merely windows in the X11 program. This, combined with the different GUIs, makes those applications less-than-seamlessly integrated with the rest of the system. OTOH, X11 is often the best or only way to use those applications. It's possible to use gvim in X11, but even though the Carbon version has some holes in it, most people (AFAIK) prefer the latter. Cheers, -- Benjamin D. Esham [EMAIL PROTECTED] | AIM: bdesham128 | Jabber: same as e-mail “The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge.”— Stephen Hawking PGP.sig Description: This is a digitally signed message part
Re: Vim book
Robert Hicks wrote: Since a bit has changed in Vim7; does anyone know of a book (in English) in the works for it? You might take a look at http://en.wikibooks.org/wiki/ Learning_vi:Vim. (As for the book plans, I have no idea.) -- Benjamin D. Esham [EMAIL PROTECTED] | AIM: bdesham128 | Jabber: same as e-mail • Still using Internet Explorer? Firefox is newer, more secure, and has better support for standards. http://www.getfirefox.com
Re: MatchParen unreadable on dark backgrounds
Zdenek Sekera wrote: Benjamin Esham wrote: Biogoo (http://vim.sourceforge.net/scripts/script.php?script_id=432) defines these groups. It's quite a nice combination of colors, if I do say so myself ;-) /shameless plug Too bad that the screen shot in the above URL has invalid link problem. Fixed. Thanks for bringing it to my attention! Cheers, -- Benjamin D. Esham [EMAIL PROTECTED] | AIM: bdesham128 | Jabber: same as e-mail Wikipedia, the free encyclopedia•http://en.wikipedia.org PGP.sig Description: This is a digitally signed message part
Re: Trying to use GetLatestVimScripts on Mac OS X
On May 30, 2006, at 9:16 PM, Peter Hodge wrote: Just discovered GetLatestVimScripts command, but it doesn't work on my Mac because I don't have the 'wget' tool. Does anyone know where I could get it from? IIRC GetLatest can be made to work with curl, which is included by default with Mac OS X. Poke around in the .vim file and you should see some user- configurable options… the command and the command-line parameters should be explained there. Just change these to point to curl… you may also have to change the parameters to match those of curl instead of wget. HTH, -- Benjamin D. Esham [EMAIL PROTECTED] | AIM: bdesham128 | Jabber: same as e-mail Esperanto, the international language ☆ http://www.lernu.net PGP.sig Description: This is a digitally signed message part
Re: new logo
On Apr 10, 2006, at 9:02 AM, Peter Slizik wrote: BTW, there is a trend towards more colorful, more playful icons. I dislike this trend, because most of those icons are much less legible than the icons having been replaced. Yes, that's true. Maybe adding some light glow, color transition, or shadow effects would help to make the logo more 'shiny'. But it depends on personal taste, of course. Personally, I *love* Matthew Webb's OS X versions of the Vim logo: http://www.cs.princeton.edu/~mtwebb/vim_icon/vim_icons.html Especially the matte version. It's the same design as the current logo, but without the im text and with some subtle gradients and brushed-metal effects. Does anyone think that it would be unreasonable to set this as the default icon for Mac OS X builds of Vim? It certainly blends better with the other apps' icons than the logo we have now (IMO). Cheers, -- Benjamin D. Esham [EMAIL PROTECTED] | http://bdesham.net | AIM: bdesham128 Wikipedia, the Free Encyclopedia • http://en.wikipedia.org PGP.sig Description: This is a digitally signed message part