How pair g /g

2006-09-18 Thread Peng Yu
Hi, I'm writing some xml code in vim. In xml, there are some pair like g /g. Would you please let me know how to pair them as { and } such that I can us % to visit them? Thanks, Peng

Re: VIM as C++ IDE

2006-10-18 Thread Peng Yu
On 10/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Peng Yu [EMAIL PROTECTED] 写于 2006-10-14 05:59:29: map F12 ESC:wkEnter:makekEnter Can some body provide some script to satisfy my more general requirement? I want press F12, then make is called. The error window will not be closed

Match something that not in the pattern

2006-10-18 Thread Peng Yu
Hi, I have the following file segments. I want to concatenate all the lines with their next lines, except that it ends with }}. I want to use the pattern \(}}\)[EMAIL PROTECTED]. It seems not working. Would you please help me to figure out how to match the lineend without }}? Thanks, Peng

Re: VIM as C++ IDE

2006-10-18 Thread Peng Yu
On 10/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Peng Yu [EMAIL PROTECTED] 写于 2006-10-18 23:18:14: On 10/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: for that simple, don't need any plugin: map F12 ESC:wkEnter:makekEnter:copekEnter You see, just add the :cope will do

Fwd: Match something that not in the pattern

2006-10-18 Thread Peng Yu
-- Forwarded message -- From: Peng Yu [EMAIL PROTECTED] Date: Oct 18, 2006 9:19 PM Subject: Re: Match something that not in the pattern To: Bill McCarthy [EMAIL PROTECTED] On 10/18/06, Bill McCarthy [EMAIL PROTECTED] wrote: On Wed 18-Oct-06 8:03pm -0600, Peng Yu wrote: I have

How to use vim as sed?

2006-10-21 Thread Peng Yu
Hi, Suppose I need to regular expression replacement for a bunch of files. Of cause, I can use sed. However, it seems that sed is not fully compatible with vim. I'm more familiar with vim. I know the vim commands that I should use to do the replacements. I'm wondering if there is any automatic

match real number

2006-10-25 Thread Peng Yu
Hi, I'm wondering if there is any built in regex to match real number? It could make some application easier. Thanks, Peng

long line display in gvimdiff

2006-11-01 Thread Peng Yu
Hi, It seems that longs line shown in gvimdiff would be broken. I have to move the cursor to the end of the long to read it. I'm wondering how to break lines like the norm gvim does. Thanks, Peng

Re: long line display in gvimdiff

2006-11-01 Thread Peng Yu
On 11/1/06, Peng Yu [EMAIL PROTECTED] wrote: Hi, It seems that longs line shown in gvimdiff would be broken. I have to move the cursor to the end of the long to read it. I'm wondering how to break lines like the norm gvim does. Thanks, Peng Hi I actually mean how to wrap around long lines

C++ refactoring tool

2006-11-24 Thread Peng Yu
Hi, I'm using vim developing C++ programs exclusively. I'm wondering if there is good refactoring tool available in vim. Thanks, Peng

Re: C++ refactoring tool

2006-11-25 Thread Peng Yu
On 11/25/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 11/25/06, Peng Yu [EMAIL PROTECTED] wrote: Hi, I'm using vim developing C++ programs exclusively. I'm wondering if there is good refactoring tool available in vim. 1. Do you probably mean code indenting, or code bautifying tool ? 2

How to open multiple files in split windows?

2007-01-04 Thread Peng Yu
Hi, gvim a b The above command will open a and b. But only one file will be show at one time. How to show them in to split windows? Thanks, Peng

search something from vim in certain directory

2007-02-22 Thread Peng Yu
Hi, I have a C++ project in some dir say project or its subdir. Although I can use find and grep outside vim to search for any word in project. But this is not very convenient. I want to do the search in vim. And vim should give me a list of all the occurrences of the searched word. Then I can

Re: search something from vim in certain directory

2007-02-22 Thread Peng Yu
On 2/22/07, Jean-Rene David [EMAIL PROTECTED] wrote: * Peng Yu [2007.02.22 11:15]: I have a C++ project in some dir say project or its subdir. Although I can use find and grep outside vim to search for any word in project. But this is not very convenient. Well you can use an external grep

How to paste while keep the cursor at the same place?

2007-03-13 Thread Peng Yu
Hi, Suppose I use p to paste something, the cursor always goes to the end of the pasted text. Is there any other key to paste will keep the cursor before the pasted text? Thanks, Peng

ctrl-P is slow when set path for ctrl-W + ctrl F

2007-03-15 Thread Peng Yu
Hi, I'm trying to use ctrl-W + ctrl F to enter header file. To do this I have to set path. However, after I set path to the directory of the header files, ctrl-P (auto-completion) getting very slow (it could take 1 sec to search for one header file). I'm wondering if there is anything wrong

How to show path?

2007-03-16 Thread Peng Yu
Hi, Can somebody let me know how to show the current value of path? Thanks, Peng