Re: vim -S

2006-08-01 Thread Matthew Winn
On Mon, 31 Jul 2006 16:19:28 -0300, Rodolfo Borges [EMAIL PROTECTED] wrote: I made a file with vim commands, starting with #!/usr/bin/vim -S so I can execute the file directly, instead of using vim -S file. The problem is that vim tries to execute this first line too. Can we have a

Re: vim -S

2006-08-01 Thread mwoehlke
(On the list, please?) Rodolfo Borges wrote: mwoehlke wrote: A.J.Mechelynck wrote: Rodolfo Borges wrote: I made a file with vim commands, starting with #!/usr/bin/vim -S so I can execute the file directly, instead of using vim -S file. The problem is that vim tries to execute this first line

yanking into register and using that in command

2006-08-01 Thread Denis Perelyubskiy
hello, I am trying to emulate textpad. In textpad, when cursor is over some word and you press ctrl-f5 the search box pops up, and a word is in the input area. So, an equivalent behavior (at least for now :-)) in vim is to press ctrl-f5 and have a word show up in the string :vimgrep/WORD/j

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.

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: Differences with vim 7

2006-08-01 Thread Robert Cussons
Yakov Lerner wrote: On 7/31/06, Robert Cussons [EMAIL PROTECTED] wrote: snip 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 I had

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 c-e \ nmap c-e \ cmap c-e \ These all work for me. -- .

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: 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: 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 Leader :help LocalLeader HTH,

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: 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 using 102

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 multiple

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 C-e

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

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

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

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

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 texFootnote

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: 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

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 tien

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

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. :help