I'm back

2007-04-06 Thread Thomas Köhler
Hello all, I just wanted to let you know that I am back on the vim and vim-dev mailinglists. I won't have time to write many mails, but my colleagues at work started to ask me a lot of questions about vim when they found out that I wrote syn on and colorscheme koehler in root's vimrc of all

Re: How to modify code so that only one space is between two characters or words?

2007-04-06 Thread Eric Leenman
[...] You could use a Search/Replace on the full text. This does end up modifying your base text, so be sure to only use it on modifiable buffers. For example: - all lines containing the char : followed with zero or more then one space(s) and then in should become: untouched what is here:

Re: creating your own indent markers

2007-04-06 Thread Dimitar
May be what you need is: :help cinoptions-values if you are using cindent Regards, Dimitar * Eric Leenman [EMAIL PROTECTED] [070406 08:10]: Hi, Is it possible to redefine (or adjust) some of the indent markers. I have code containing ( at the end I.e: port map ( aa = bb, cc = dd);

Re: How to modify code so that only one space is between two characters or words?

2007-04-06 Thread Matthew Winn
On Fri, 06 Apr 2007 05:52:33 +, Eric Leenman [EMAIL PROTECTED] wrote: :%s/:\s\+in/: in/g This works for all lines containing one or more spaces. Why doesn't it work for lines which have no space between : and in? Use :%s/:\s*in/: in/g instead (replace the \+ with *: \+ means one or

答复: How to open a BIG file quickly?

2007-04-06 Thread 陈方荣
-邮件原件- 发件人: Jean-Rene David [mailto:[EMAIL PROTECTED] 发送时间: 2007年4月6日 :00:09 收件人: Vim 主题: Re: How to open a BIG file quickly? * Tom Purl [2007.04.05 12:00]: I need to do that quite often. They are usually log files from a long running program in debug mode. Actually,

replace word from buffer

2007-04-06 Thread meino . cramer
Hi, is there a way to do this more effectively? I often get in the situation of yanking a word into the buffer, search another word I want to replace with the contents of the buffer, delete the found word and paste the contents of the buffer at the place of the previously found word.

Re: replace word from buffer

2007-04-06 Thread Dimitar
What I do is ye yank /word search vep paste Gruss, Dimitar * [EMAIL PROTECTED] [EMAIL PROTECTED] [070406 09:00]: Hi, is there a way to do this more effectively? I often get in the situation of yanking a word into the buffer, search another word I want to replace with the

Re: replace word from buffer

2007-04-06 Thread Dimitar
A search and replace would be of course sometimes better: :%s/old_word/new_word/gc :help :s :help s_flags Dimitar * [EMAIL PROTECTED] [EMAIL PROTECTED] [070406 09:00]: Hi, is there a way to do this more effectively? I often get in the situation of yanking a word into the buffer,

Re: replace word from buffer

2007-04-06 Thread Gary Johnson
On 2007-04-06, [EMAIL PROTECTED] wrote: Hi, is there a way to do this more effectively? I often get in the situation of yanking a word into the buffer, search another word I want to replace with the contents of the buffer, delete the found word and paste the contents of the buffer

Tab completion and UTF-8

2007-04-06 Thread Bertram Scharpf
Hi, as already remarked in Tip #102, the provided versions do not handle UTF-8 characters correctly. As it is not possible to add a tip note currently, I post my new version here. function InsertMatch( direction) if match(getline( '.'),'\k\%'.virtcol('.').'v') = 0 let dir =

compiler plugin for the ARM compiler

2007-04-06 Thread Sibin P. Thomas
Hi, Is a compiler plugin for the ARM compiler (armcc) already available? (Couldn't find it in the Vim site) I am basically looking for the errorformat for the ARM compiler. Regards, Sibin DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. Before

Re: how to replace ESC to some other key?

2007-04-06 Thread Yakov Lerner
On 4/6/07, Taylor Venable [EMAIL PROTECTED] wrote: On Wed, 4 Apr 2007 10:22:43 -0400 Yakov Lerner [EMAIL PROTECTED] wrote: On 4/4/07, wangxu [EMAIL PROTECTED] wrote: ESC is so far from the center of the keyboard. Can I replace this key to Caps Lock,for example? I heard some people use

RE: copy pasting HTML code into vim

2007-04-06 Thread Gene Kwiecinski
Let's say I open up a webpage, select some text and paste it into vim. Then all I see in vim is the text I see on the browser. While this is OK most of the times, sometimes I wish there is a way to paste the actual HTML code directly into the vim. Selecting view source of the webpage and then

Re: copy pasting HTML code into vim

2007-04-06 Thread Reid Thompson
Gene Kwiecinski wrote: Let's say I open up a webpage, select some text and paste it into vim. Then all I see in vim is the text I see on the browser. While this is OK most of the times, sometimes I wish there is a way to paste the actual HTML code directly into the

Re: copy pasting HTML code into vim

2007-04-06 Thread Reid Thompson
Reid Thompson wrote: Gene Kwiecinski wrote: Let's say I open up a webpage, select some text and paste it into vim. Then all I see in vim is the text I see on the browser. While this is OK most of the times, sometimes I wish there is a way to paste the actual HTML code directly into the

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,

Silly Question

2007-04-06 Thread Dudley Fox
Has anyone else heard of the vi name game? I was talking to an old crusty developer, and he said they used to open a random (unimportant) text file in vi. Then before typing in their name (and only their name, no going into insert mode first), they would have to guess what their name would tell

Re: Python crash

2007-04-06 Thread Aaron Griffin
On 4/5/07, Chuck Mason [EMAIL PROTECTED] wrote: /nodefaultlib:python24.lib That's 2.4 right? The point is that vim.command() is not thread-safe. I tried this in pearl (5.8) as well with the same result. Except that perl's VIM::Msg works in a thread (albeit things seem unstable) and

RE: Silly Question

2007-04-06 Thread Max Dyckhoff
Max: insert an 'x' on the line in the middle of the current buffer Dyckhoff: delete to end of line and insert ff on a new line above ('k' goes up a line, 'o' starts insertion on new line below) :) I think it would be fun to find a real name which did something actually interesting in vim. Max

RE: copy pasting HTML code into vim

2007-04-06 Thread Gene Kwiecinski
In Firefox, you can select some part of the text, right-click on it and one of the options is view selection source - like view source but the relevant piece of it is already selected. That's a decent way of replacing find-next in the source view. Ooh, ooh, what he said... I'm so in the habit of

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

Vim freezes system ?!

2007-04-06 Thread meino . cramer
Hi, I did th3 follwing: With a program, which generates random numbers in different formats, I created a file, which consists of _one_ line of 2097152 characters (0-9,A-F). To split the line into lines of 72 characters each, I started vim and let it read the file. I postioned the cursor

Re: Silly Question

2007-04-06 Thread Mikolaj Machowski
On piątek 06 kwiecień 2007, vim@vim.org wrote: Has anyone else heard of the vi name game? Sure :) Mikolaj just inserts kolaj at the beginning of middle line of screen. m.

Re: Folding in vim helpfiles

2007-04-06 Thread Mikolaj Machowski
On piątek 06 kwiecień 2007, vim@vim.org wrote: After looking at foldutil.vim and AutoFold.vim I'm not sure what the best way is going to be for exploiting the outline format of helpfiles to automatically create folds. Has anyone done this before? Ideally, I'd like to use this with the

Re: Silly Question

2007-04-06 Thread Silent1
brendon i lucked out, i just got errors :)

Re: Silly Question

2007-04-06 Thread Jason Keen
Jason joins the current line and the next, then insert son before the start of the appended line.

RE: copy pasting HTML code into vim

2007-04-06 Thread Kamaraju S Kusumanchi
Gene Kwiecinski wrote: In Firefox, you can select some part of the text, right-click on it and one of the options is view selection source - like view source but the relevant piece of it is already selected. That's a decent way of replacing find-next in the source view. Wow! This is indeed

Re: Vim freezes system ?!

2007-04-06 Thread Tim Chase
I did th3 follwing: With a program, which generates random numbers in different formats, I created a file, which consists of _one_ line of 2097152 characters (0-9,A-F). To split the line into lines of 72 characters each, I started vim and let it read the file. I postioned the cursor at position

Re: copy pasting HTML code into vim

2007-04-06 Thread Dudley Fox
On 4/6/07, Kamaraju S Kusumanchi [EMAIL PROTECTED] wrote: Gene Kwiecinski wrote: In Firefox, you can select some part of the text, right-click on it and one of the options is view selection source - like view source but the relevant piece of it is already selected. That's a decent way of

Re: Vim freezes system ?!

2007-04-06 Thread Yakov Lerner
On 4/6/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I did th3 follwing: With a program, which generates random numbers in different formats, I created a file, which consists of _one_ line of 2097152 characters (0-9,A-F). To split the line into lines of 72 characters each, I started

Re: Vim freezes system ?!

2007-04-06 Thread Tim Chase
The problem I have with my kind of splitting a line is not that it does not work -- it is the deadly side effect it caused. My opinion is, that it should not be possible to kill a system (...too big words, I know, but...) by simply submitting a sub-optimal command to a text editor. As you

Re: Vim freezes system ?!

2007-04-06 Thread Yakov Lerner
On 4/6/07, Yakov Lerner [EMAIL PROTECTED] wrote: ... It took vim ~4 minutes to split ~100 lines. Typo here. This should have been: It took vim ~4 minutes to split ~1000 lines.

Re: Vim freezes system ?!

2007-04-06 Thread Yakov Lerner
On 4/6/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Yakov the vim healer Lerner :) memory size is 2GB Dual channel RAM, swap is 1G... For me it is not a problem to fail with one task (splitting a long line)...there are always better solutions to discover on UNIX systems... :)) The

Re: Silly Question

2007-04-06 Thread Dudley Fox
On 4/6/07, Mikolaj Machowski [EMAIL PROTECTED] wrote: On piątek 06 kwiecień 2007, vim@vim.org wrote: Has anyone else heard of the vi name game? Sure :) Mikolaj just inserts kolaj at the beginning of middle line of screen. m. I didn't know about the M command. I never needed it before. I

Re: Silly Question

2007-04-06 Thread Yakov Lerner
Yakov (without quotes) inserts kov after the 1st char. Now, who won ?

Re: Vim freezes system ?!

2007-04-06 Thread Yakov Lerner
On 4/6/07, Yakov Lerner [EMAIL PROTECTED] wrote: On 4/6/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I did th3 follwing: With a program, which generates random numbers in different formats, I created a file, which consists of _one_ line of 2097152 characters (0-9,A-F). To split

Re: Silly Question

2007-04-06 Thread Mikolaj Machowski
On piątek 06 kwiecień 2007, vim@vim.org wrote: On 4/6/07, Mikolaj Machowski [EMAIL PROTECTED] wrote: On piątek 06 kwiecień 2007, vim@vim.org wrote: Has anyone else heard of the vi name game? Sure :) Mikolaj just inserts kolaj at the beginning of middle line of screen. I didn't

Re: Vim freezes system ?!

2007-04-06 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: Hi, I did th3 follwing: With a program, which generates random numbers in different formats, I created a file, which consists of _one_ line of 2097152 characters (0-9,A-F). To split the line into lines of 72 characters each, I started vim and let it read the file.

Re: Vim freezes system ?!

2007-04-06 Thread A.J.Mechelynck
Yakov Lerner wrote: On 4/6/07, Yakov Lerner [EMAIL PROTECTED] wrote: On 4/6/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I did th3 follwing: With a program, which generates random numbers in different formats, I created a file, which consists of _one_ line of 2097152 characters

I'm back

2007-04-06 Thread Thomas Köhler
Hello all, I just wanted to let you know that I am back on the vim and vim-dev mailinglists. I won't have time to write many mails, but my colleagues at work started to ask me a lot of questions about vim when they found out that I wrote syn on and colorscheme koehler in root's vimrc of all