Writing bullets/lists in vim
Does anyone have a vim configuration to make writing bullets/lists easier? e.g. when I'm writing something like this: --- begin example --- 1. Pick one of the RaQs to be the DNS server. 2. E-mail [EMAIL PROTECTED] and ask him for an additional IP for that RaQ. 3. When you get the IP, tell me and I'll set the server to use it. --- end example --- it would be nice if when the line wraps while I'm typing point #2, the cursor starts on column 3 instead of column 0 on the second line.
Re: Writing bullets/lists in vim
I am not sure how to do that just with vi but: Since you can easily pass your document through a unix command filter, you could just write your own sed command to do that for you and bind it to a key with map. eg. :1,5 !tr a-z A-Z makes line 1 to 5 uppercase. or :1,10 !sed s/^[a-z].*/ / Might do what you want. I haven't tried it, but, you get the idea. If I could remember off hand how to do a negative search in sed, I would just skip all lines beginning with a number. Joel On Thu, Dec 27, 2001 at 11:59:46AM -0500, Philip Mak wrote: Does anyone have a vim configuration to make writing bullets/lists easier? e.g. when I'm writing something like this: --- begin example --- 1. Pick one of the RaQs to be the DNS server. 2. E-mail [EMAIL PROTECTED] and ask him for an additional IP for that RaQ. 3. When you get the IP, tell me and I'll set the server to use it. --- end example --- it would be nice if when the line wraps while I'm typing point #2, the cursor starts on column 3 instead of column 0 on the second line.
Re: Writing bullets/lists in vim
Date: Thu, 27 Dec 2001 11:59:46 -0500 (EST) From: Philip Mak [EMAIL PROTECTED] To: Mutt Users' List [EMAIL PROTECTED] Subject: Writing bullets/lists in vim Does anyone have a vim configuration to make writing bullets/lists easier? e.g. when I'm writing something like this: --- begin example --- 1. Pick one of the RaQs to be the DNS server. 2. E-mail [EMAIL PROTECTED] and ask him for an additional IP for that RaQ. 3. When you get the IP, tell me and I'll set the server to use it. --- end example --- it would be nice if when the line wraps while I'm typing point #2, the cursor starts on column 3 instead of column 0 on the second line. Add 'n' to 'formatoptions'. IOW, put this in your .vimrc: set fo+=n -- FreeBSD 4.4-STABLE 7:47PM up 1 day, 6:25, 6 users, load averages: 0.00, 0.00, 0.00
Re: Writing bullets/lists in vim
Philip, et al -- ...and then Philip Mak said... % % Does anyone have a vim configuration to make writing bullets/lists easier? % e.g. when I'm writing something like this: ... % it would be nice if when the line wraps while I'm typing point #2, the % cursor starts on column 3 instead of column 0 on the second line. set autoindent (or ai) in your .exrc; works in all flavors of vi :-) HTH HAND Happy Holidays to all :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg21961/pgp0.pgp Description: PGP signature