Re: automatic code completion in vim

2006-12-31 Thread Mikolaj Machowski
On nie gru 31 2006, Zheng Da wrote: but i remember that , the (enhanced) ctags do have the option to append the tag files. you can see the manual more seriously , so i think you can find it --append Yes, but they are not removing older entries. When doing corrections in file it may result

Re: delete quoted lines up to .sig

2006-12-31 Thread Przemyslaw Gawronski
I would like to delete all quoted lines up to my signature. I use mutt for email and this would be very handy as it would help me get rid of lots of unwanted lines with a keystroke. At the moment I'm pressing 'd' for a long time. I use this mappings: nnoremap F9 mzd/^--\s$ k inoremap F9

Wrapping a selection in tags

2006-12-31 Thread Rory Campbell-Lange
I'd like to: 1. Select some text 2. Hit a key sequence such as ;t 3. Be prompted for a tag (I'll input something like 'b' or 'h1') 4. The text selection will be wrapped in -- say -- btext selection/b What doesn't work so far: map ;t ESC:call Tag_Maker()CR function!

RE: Wrapping a selection in tags

2006-12-31 Thread Suresh Govindachar
Rory Campbell-Lange wrote: I'd like to: 1. Select some text 2. Hit a key sequence such as ;t 3. Be prompted for a tag (I'll input something like 'b' or 'h1') 4. The text selection will be wrapped in -- say -- btext selection/b What

Re: Wrapping a selection in tags

2006-12-31 Thread A.J.Mechelynck
Rory Campbell-Lange wrote: I'd like to: 1. Select some text 2. Hit a key sequence such as ;t 3. Be prompted for a tag (I'll input something like 'b' or 'h1') 4. The text selection will be wrapped in -- say -- btext selection/b What doesn't work so far: map ;t

Re: automatic code completion in vim

2006-12-31 Thread zhengda
Mikolaj Machowski wrote: On sob gru 30 2006, Mikolaj Machowski wrote: Do you mean create tags files for every code file, and change tags file when switching between different code files? But how to combine all of these actions to a hotkey? If ctags can provide an update option, the problem

Enclosing current line in HTML tags

2006-12-31 Thread Robert MannI
Hello! What's the quickest way to enclose the current line the cursor is on in, say, li/li tags? Thank you, Rob

Re: Enclosing current line in HTML tags

2006-12-31 Thread A.J.Mechelynck
Robert MannI wrote: Hello! What's the quickest way to enclose the current line the cursor is on in, say, li/li tags? Thank you, Rob I suggest :s/^.*$/li\0\/li/ which can be mapped to a key. This method lends itself to adding an arbitrary tag (in a script, with the tag in a

Re: Enclosing current line in HTML tags

2006-12-31 Thread Tim Chase
What's the quickest way to enclose the current line the cursor is on in, say, li/li tags? Depends on what you mean by quickest...are you looking for a one-shot, or are you looking for something you can map, or are you looking to perform the action on a number of lines? For a simple

RE: Wrapping a selection in tags

2006-12-31 Thread David Fishburn
I'd like to: 1. Select some text 2. Hit a key sequence such as ;t 3. Be prompted for a tag (I'll input something like 'b' or 'h1') 4. The text selection will be wrapped in -- say -- btext selection/b I created a tip for this: Tip #346: Wrap text in HTML/XML tags

RE: Enclosing current line in HTML tags

2006-12-31 Thread David Fishburn
What's the quickest way to enclose the current line the cursor is on in, say, li/li tags? Wow, 2 emails in the same day. I created a tip for this: Tip #346: Wrap text in HTML/XML tags after prompting for the tag name http://www.vim.org/tips/tip.php?tip_id=346 With some refinements at the

[PATCH] count for CR in quickfix window

2006-12-31 Thread AOYAMA Shotaro
Hi, Here is a small patch for specifying a window in which vim opens an error when you hit ENTER in a quickfix window. With this patch, you may hit 3CR in the quickfix window, then the selected error is displayed in the window #3. Often I face a situation that I want to display an error, but