Re: substituting only in visual block

2006-08-01 Thread Bernd Strohhäcker
Dr. Johannes Zellner schrieb: Hi, having marked a visual block with ctrl-v, I'd like to so a search / replace only in that visual block. E.g. when selecting the right block in: xx xx xx xx xx xx xx xx I'd to do something like s/xx/yy/g which applies only to the selected block. How can I do thi

substituting only in visual block

2006-08-01 Thread Dr. Johannes Zellner
Hi, having marked a visual block with ctrl-v, I'd like to so a search / replace only in that visual block. E.g. when selecting the right block in: xx xx xx xx xx xx xx xx I'd to do something like s/xx/yy/g which applies only to the selected block. How can I do this? -- Johannes

Re: Put the cursor in the middle of screen when replacing

2006-08-01 Thread Carlos Liu
On 8/2/06, Tim Chase <[EMAIL PROTECTED]> wrote: > How to put cursor in the middle of screen when replacing words? I have > to see the next few lines to know replace or not, but the word always > sit in the bottom of the screen. Sounds like you're looking for the 'scrolloff' setting. :he

Re: Automatic updating file content

2006-08-01 Thread Tien Pham
Hi Peter Thank you very much for your time/help. The previous group of commands works really well for me already. I have enjoyed the convenience it's brought so far. A click to update the content was what I wished for, but now I have more than what I wished for! Many many thanks again Regard

Re: Automatic updating file content

2006-08-01 Thread Peter Hodge
> > Thank you very much for the tip. ":e" works so nicely. I will try out those > commands soon. Should I insert them in my vimrc file ? > Hi Tien, Sorry, it seems I was a little naive with that autocommand I showed you, it doesn't work because CursorHold won't trigger again until you press a ke

Re: Automatic updating file content

2006-08-01 Thread Tien Pham
Hi Peter The refresh command works well. I put my log file name such as "autocmd CursorHold regression.log edit". Even I have a few files open at the same time, whenever I re-run my regression, I only need to click my regression.log window and new info is updated. Fantastic! Many thanks tie

Re: Automatic updating file content

2006-08-01 Thread Tien Pham
Hi Peter Thank you very much for the tip. ":e" works so nicely. I will try out those commands soon. Should I insert them in my vimrc file ? Again, many thanks tien At 12:59 PM 2/08/2006 +1000, Peter Hodge wrote: Hi Tien, You can use ':e[dit]' to reload the current file. Perhaps you could s

Re: Automatic updating file content

2006-08-01 Thread Peter Hodge
Hi Tien, You can use ':e[dit]' to reload the current file. Perhaps you could set up something with an autocommand based on the CursorHold event and reduce the updatetime to half a second? For example: set updatetime=500 augroup RefreshFile autocmd! autocmd CursorHold somefile.log edit

Re: latex syntax highlighting problems

2006-08-01 Thread Benji Fisher
On Mon, Jul 31, 2006 at 11:47:33AM +1000, Brett Calcott wrote: > Hi, > > I want to add some extra syntax highlighting to my latex documents. I > am writing a thesis, so I have separate files for each chapter. > > For example, I add this in ~/vimfiles/extra/syntax/tex.vim > > syn region texFootno

Re: Put the cursor in the middle of screen when replacing

2006-08-01 Thread Tim Chase
How to put cursor in the middle of screen when replacing words? I have to see the next few lines to know replace or not, but the word always sit in the bottom of the screen. Sounds like you're looking for the 'scrolloff' setting. :help 'scrolloff' will provide details on this. It allo

Automatic updating file content

2006-08-01 Thread Tien Pham
Hi all Is there any key stroke to update content of a currently open file when its content has been changed? Reason for this is that I want to look at my log file from a simulation, as I run simulation so frequently, it is so tedious to click "open" and "select" the same file name to see the

Status line in gvim obscured when maximised

2006-08-01 Thread James Hales
Hi, When I maximize Gvim in Gnome, the status line is partially hidden by the gnome panel, which is really annoying. This is because of how Vim resizes itself, i.e. it is constrained to being resized one character size at a time. When Gvim is maximized, it is half a character too high, so that ex

Put the cursor in the middle of screen when replacing

2006-08-01 Thread Carlos Liu
Hi, How to put cursor in the middle of screen when replacing words? I have to see the next few lines to know replace or not, but the word always sit in the bottom of the screen. Thanks. -- Best Regards Carlos

Re: Ctl key mapping problems

2006-08-01 Thread Benji Fisher
On Sun, Jul 30, 2006 at 06:49:26PM -0400, Siegmuund Siegmuundsson wrote: > Hello all. > > I'm trying to remap some keys from my vimrc file but am having problems. > What I want to do is the following: have vim print the character '\' > when I press 'Ctl-e'. > In my vimrc file I inserted: > > imap

Re: netrw v103b - No longer can browse directories

2006-08-01 Thread Charles E Campbell Jr
David Fishburn wrote: I don't like modifying files in the $VIM directory. I tried this and it still did not fix the problem on my machine (I still cannot browse the files in my directory). I also get this: :pwd C:\ :e . "C:\" Illegal file name Please remove all the older versions of netrw

Re: Help with unwanted shell character expansion

2006-08-01 Thread Bob Hiestand
On 7/31/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote: Bob Hiestand wrote: > Question one: > > Is there a way to achieve execution of system commands without using > the shell? Here I'm thinking (for example) of, in perl, the > difference between using a single argument to exec() and using > mul

RE: netrw v103b - No longer can browse directories

2006-08-01 Thread David Fishburn
> On Tue 1-Aug-06 1:52am -0600, Hugo Ahlenius wrote: > > > I just upgraded netrw to netrw 103b from Charles Campbell's > web-site. > > Now it seems like opening a directory by just trying to edit it > > doesn't work, like it used to: > > :e c:\ I am having a similar issue, but I am usi

Re: netrw v103b

2006-08-01 Thread Charles E Campbell Jr
Hugo Ahlenius wrote: Hi, I just upgraded netrw to netrw 103b from Charles Campbell's web-site. Now it seems like opening a directory by just trying to edit it doesn't work, like it used to: :e c:\ Could there be an autocommand that is missing? The only message I get is "Illegal file na

Re: [SPAM?]Re: gvimdiff and gvim 7 in windows

2006-08-01 Thread A.J.Mechelynck
Robert Cussons wrote: [EMAIL PROTECTED] wrote: Robert Cussons <[EMAIL PROTECTED]> wrote on 2006.07.21 19:19:56: because this is the size I want my gvim window to be when it opens, however as gvimdiff opens at least two buffers I would like it to open full screen, is there a way of getting this

RE: netrw v103b

2006-08-01 Thread Hugo Ahlenius
| Do you still have the distribution copy of netrw v98 installed to | $vimruntime? Yes I had -- your change did it! Thanks, Hugo

Re: ftplugin mail.vim Leader

2006-08-01 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: Hello, I don't understand the meaning of <(Local)Leader>. When I set filetype to "mail" (ftplugin mail.vim), how can I execute the mapping to "Quote text by inserting "> " ? Thank You Joachim [advertisement snipped] see :help :help HTH, Tony.

Re: netrw v103b

2006-08-01 Thread Bill McCarthy
On Tue 1-Aug-06 1:52am -0600, Hugo Ahlenius wrote: > I just upgraded netrw to netrw 103b from Charles Campbell's web-site. Now it > seems like opening a directory by just trying to edit it doesn't work, like > it used to: > :e c:\ > > Could there be an autocommand that is missing? The only

Re: [SPAM?]Re: gvimdiff and gvim 7 in windows

2006-08-01 Thread Robert Cussons
[EMAIL PROTECTED] wrote: Robert Cussons <[EMAIL PROTECTED]> wrote on 2006.07.21 19:19:56: because this is the size I want my gvim window to be when it opens, however as gvimdiff opens at least two buffers I would like it to open full screen, is there a way of getting this to happen? gvim 7 in

Re: Ctl key mapping problems

2006-08-01 Thread Vigil
I'm trying to remap some keys from my vimrc file but am having problems. What I want to do is the following: have vim print the character '\' when I press 'Ctl-e'. imap \ nmap \ cmap \ These all work for me. -- .

Re: Differences with vim 7

2006-08-01 Thread Robert Cussons
Yakov Lerner wrote: On 7/31/06, Robert Cussons <[EMAIL PROTECTED]> wrote: > > > Are those two vims built with same GUI libraries ? I suspect > that they are build with different GUIs. > Can you send first 4 lines out :version output from each of two vims ? > > Yakov > > P.S. I remember that

Re: Help with unwanted shell character expansion

2006-08-01 Thread Yakov Lerner
On 8/1/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: Here's the function that sets buffername without escaping. Correction. I wanted to write: Here's the function that sets buffername without any metacharacter expansion.

Re: Help with unwanted shell character expansion

2006-08-01 Thread Yakov Lerner
On 7/31/06, Bob Hiestand <[EMAIL PROTECTED]> wrote: Question two: Is there a way to set the buffer name without the name being subject to shell metacharacter expansion? Easy. Here's the function that sets buffername without escaping. function! LiteralSetBufferName(name) " we need to escape

Re: Help with unwanted shell character expansion

2006-08-01 Thread Yakov Lerner
On 7/31/06, Bob Hiestand <[EMAIL PROTECTED]> wrote: Question one: Is there a way to achieve execution of system commands without using the shell? Yes, via libcall() ( :help libcall()). You can write your own function in a shared lib that will do fork()+exec() without intermediate /bin/sh. How

ftplugin mail.vim Leader

2006-08-01 Thread J.Hofmann
Hello, I don't understand the meaning of <(Local)Leader>. When I set filetype to "mail" (ftplugin mail.vim), how can I execute the mapping to "Quote text by inserting "> " ? Thank You Joachim ### This message has been scanned by F-Secure Anti-Virus for M