replace command

2007-03-20 Thread Bin Chen
I want to know a command for this: a word start with 123 but NOT followed by 45, such as 12346 12357 are match, only 12345 not match. Thanks. abai

Re: replace upper-case with lower-case

2007-03-08 Thread Bin Chen
Theerasak Photha 写道: > On 3/8/07, Bin Chen <[EMAIL PROTECTED]> wrote: >> Theerasak Photha 写道: >> > On 3/8/07, Bin Chen <[EMAIL PROTECTED]> wrote: >> >> I want to replace below scheme within one command, that is left the >> >> capitaliza

Re: replace upper-case with lower-case

2007-03-08 Thread Bin Chen
Theerasak Photha 写道: On 3/8/07, Bin Chen <[EMAIL PROTECTED]> wrote: I want to replace below scheme within one command, that is left the capitalization the same but replace the word. SS->SS ss->ss 'guw' in normal mode will lower case a single word. Not sure if that&#x

replace upper-case with lower-case

2007-03-08 Thread Bin Chen
I want to replace below scheme within one command, that is left the capitalization the same but replace the word. SS->SS ss->ss Thanks.

Set preferred tag

2007-03-07 Thread Bin Chen
When I am using vim + ctags, and on some keyword I press CTRL+], it will jump to the tag that found by ctags. But in the case there resides many tags, the vim will pop a window to let me choose one. Can I set a preferred tag for given keyword so that I don't need to choose from a lot many tags a

Re: mark an anchor

2007-03-02 Thread Bin Chen
Thank you! But what is back-tick? Tim Chase 写道: If I am in line 100, now I want to search a key which will lead me to wherever. I want to back to the place before the seach, can vim support anchor for me to back? There are several possibilities, depending on your forethought and quantit

mark an anchor

2007-03-02 Thread Bin Chen
If I am in line 100, now I want to search a key which will lead me to wherever. I want to back to the place before the seach, can vim support anchor for me to back? Thanks. ABAI

Re: The Seven Habits Of Effective Text Editing 2

2007-02-20 Thread Bin Chen
Kim Schulz 写道: On Mon, 19 Feb 2007 23:11:16 +0100 Bram Moolenaar <[EMAIL PROTECTED]> wrote: Yongwei Wu wrote: Bin Chen wrote: Thanks. I am also looking forward to this talk. But unfortunately the google video is blocked in some countries, could some one put the vi

Reread the file

2007-02-19 Thread Bin Chen
Hi, Can VIM configured to reload the opened file in a constant interval? Thanks. ABAI

Re: The Seven Habits Of Effective Text Editing 2

2007-02-19 Thread Bin Chen
Bram Moolenaar 写道: Yongwei Wu wrote: Bin Chen wrote: Thanks. I am also looking forward to this talk. But unfortunately the google video is blocked in some countries, could some one put the video to the vim official site? and this can make this video seems more official

Re: The Seven Habits Of Effective Text Editing 2

2007-02-18 Thread Bin Chen
Thanks. I am also looking forward to this talk. But unfortunately the google video is blocked in some countries, could some one put the video to the vim official site? and this can make this video seems more official ^&^. Jonas Persson 写道: Jimmy Mack skrev: Hi Bram, I just heard about your re

Make the saved search keyword per file

2007-02-17 Thread Bin Chen
Hi, VIM will save the last searched keyword and each time we start a new edit session, when we just press /, the VIM will search the last searched keyword. But currently this feature is user wide, but not file wide. Suppose I open a file a.txt searchd a-key, b.txt then seach b-key, can I con

Match first M

2007-02-16 Thread Bin Chen
Suppose a line MopqMopc ^.*M match the line from beginning to the second M, but I want to match the beginning to the first M, how can I do it? Thanks. ABAI

Is it possible to write two replace command in one line?

2007-02-16 Thread Bin Chen
If I want to replace a to b, replace b to c, is it possible to do this two things in one line? Thanks. ABAI

Paste buffer

2007-02-14 Thread Bin Chen
Hi, When I copy a line use yy, then I need to paste it to a line. But before the paste, I delete a char using 'x', the paste buffer will be overwriten to the deleted word. How can i avoid this? Thanks. ABAI

Re: do not match the longest pattern

2007-02-07 Thread Bin Chen
"aaab". And I don't think the below example for this make any sense: a[bc]\{-}[cd] "abc" in "abcd" with a[bc][cd], also match "abc" in "abcd". Right? On 2/7/07, Bin Chen <[EMAIL PROTECTED]> wrote: Hi, As I know that the vim RE wil

do not match the longest pattern

2007-02-07 Thread Bin Chen
Hi, As I know that the vim RE will match the longest string that the pattern match. But how can I tell vim to avoid to do this and just do the shortest match? For example: a/b/c with \([^\/]*\)\/ we will match a/b but how can I just match 'a'? Thanks a lot. ABAI