RE: path shortcuts (variables?) on commandline?

2007-05-17 Thread Timothy Adams
I'd just use an abbreviation :cabbr desktop c:\docume~1\user\Desktop Then you can just do: :e desktop\sub\sub\sub\file.ext When you hit the \ (or space, or whatever) after desktop the abbreviation will fill in w/ c:\etc Be warned that this will do so whenever you type desktop in command

RE: embedable vim?

2007-05-17 Thread Timothy Adams
A lot of suggestions have been mentioned, but I didn't see the mozex extension for firefox/mozilla mentioned. You can set an editor for textareas, view source, intercept mailto: links, and a lot more. http://mozex.mozdev.org/development.html -Original Message- From: Franco Saliola

RE: replace number with zero-packed number

2007-05-09 Thread Timothy Adams
Could I ask a follow-up question along these lines? I've never used \=, but I see it only works at the beginning of the substitute string and makes the entire replacement an expression. Is there a way to put it in the middle. For example, I was thinking if the CSV file had other numbers, and

C-/

2007-04-21 Thread Timothy Adams
Since the topic of mapping control+char is being kicked around, can anyone tell me why my mapping of C-/ doesn't work? *tim*

RE: how to create a command

2007-04-15 Thread Timothy Adams
I'd try just cabbr todo GMSend [EMAIL PROTECTED] The c in front makes it only expand in command line mode, otherwise wherever you typed todo (such as in email text you were composing) it'd expand. *tim* -Original Message- From: shawn bright [mailto:[EMAIL PROTECTED] Sent: Sunday,

RE: command to delete just whitespace

2007-04-15 Thread Timothy Adams
:s/^\s*// Add % between : and s to apply it to all lines in the buffer -Original Message- From: shawn bright [mailto:[EMAIL PROTECTED] Sent: Sunday, April 15, 2007 8:14 PM To: vimlist Subject: command to delete just whitespace Hey there, i am looking for a command that will delete all

RE: command to delete just whitespace

2007-04-15 Thread Timothy Adams
Then just d/\S Delete through first non-whitespace char -Original Message- From: shawn bright [mailto:[EMAIL PROTECTED] Sent: Sunday, April 15, 2007 8:41 PM To: vimlist Subject: Re: command to delete just whitespace ok, let me clarify a bit more. i just need to delete the white

RE: copy pasting HTML code into vim

2007-04-06 Thread Timothy Adams
This is a clipboard thing - windows for instance copies stuff in many forms and pastes it in the form most acceptable to the receiving app - plaintext for vim, html/rtf for a word processor... Dunno if there's a way for vim to say gimme html. I would try looking at your browser. In firefox,

RE: copy pasting HTML code into vim

2007-04-06 Thread Timothy Adams
For some reason, even if you set up vim as your source editor, view selection source still opens in firefox's default viewer... sux -Original Message- From: Gene Kwiecinski [mailto:[EMAIL PROTECTED] Sent: Friday, April 06, 2007 12:43 PM To: Vincent BEFFARA; vim@vim.org; Kamaraju S

RE: replace command

2007-03-20 Thread Timothy Adams
/123\([^4]\|4[^5]\)/ Keep in mind this would match 123ab As well. *tim* -Original Message- From: Bin Chen [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 20, 2007 9:29 AM To: Vim ML Subject: replace command I want to know a command for this: a word start with 123 but NOT followed

FW: Adding quotes around html attribute values

2007-03-06 Thread Timothy Adams
Hi, I've been given some html which, oddly, is half in nicely quoted attributes+values: span class=good and half not span class=bad I'm trying to write a regex to add quotes around the ones without. I can do this in perl, but not in vim, and I'd like to know what I'm doing wrong because

RE: FW: Adding quotes around html attribute values

2007-03-06 Thread Timothy Adams
:[EMAIL PROTECTED] Sent: Tuesday, March 06, 2007 2:49 PM To: vim@vim.org Subject: Re: FW: Adding quotes around html attribute values On Tue, Mar 06, 2007 at 11:04:11AM -0500, Timothy Adams wrote: Hi, I've been given some html which, oddly, is half in nicely quoted attributes+values: Have you