Re: Fork process is not working on GVIM7 on solaris

2006-10-30 Thread Yakov Lerner
On 10/31/06, art sm <[EMAIL PROTECTED]> wrote: On 10/30/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: > On 10/30/06, art sm <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I'm having trouble trying to fork a process from gui vim on solaris. > > > > For example, if I start gvim, and use do: > > :!touch t

Re: Inline script execution

2006-10-30 Thread Pete Johns
On Tue, 2006-10-31 at 06:02:08 +0100, A.J.Mechelynck sent: >You are talking about "the example given in the explanation for >the :@ command". I don't see any such example under ":help :@ " >(in *repeat.txt*For Vim version 7.0. Last change: 2006 Sep >20 at lines 120 sqq.). Where are you seeing

Re: Cygwin defaced Vim. Help.

2006-10-30 Thread panshizhu
"Ananya M (RBIN/ECM1)" <[EMAIL PROTECTED]> 写于 2006-10-31 12:28:23: > Hi, > I am a very new to vim, and am absolutely smitten by it. > I installed cygwin on my comp. > Now gVim is showing up with '$' symbols at the end of every line, > and ugly '>-' headless arrows at the start of every line. >

Re: Inline script execution

2006-10-30 Thread A.J.Mechelynck
Daryl Lee wrote: -Original Message- From: A.J.Mechelynck [mailto:[EMAIL PROTECTED] Sent: Monday, October 30, 2006 9:28 PM To: [EMAIL PROTECTED] Cc: Vim Subject: Re: Inline script execution Daryl Lee wrote: I am working my way through the :help scripting explanation (usr_41.txt) and I

Re: Cygwin defaced Vim. Help.

2006-10-30 Thread A.J.Mechelynck
Ananya M (RBIN/ECM1) wrote: Hi, I am a very new to vim, and am absolutely smitten by it. I installed cygwin on my comp. Now gVim is showing up with '$' symbols at the end of every line, and ugly '>-' headless arrows at the start of every line. :set nolist Also while in INSERT

RE: Inline script execution

2006-10-30 Thread Daryl Lee
Verbose = 0. I tried raising it (to 10) and that just made things worse. Daryl -Original Message- From: A.J.Mechelynck [mailto:[EMAIL PROTECTED] Sent: Monday, October 30, 2006 9:28 PM To: [EMAIL PROTECTED] Cc: Vim Subject: Re: Inline script execution Daryl Lee wrote: > I am working my

Cygwin defaced Vim. Help.

2006-10-30 Thread Ananya M (RBIN/ECM1)
Title: Cygwin defaced Vim. Help. Hi, I am a very new to vim, and am absolutely smitten by it. I installed cygwin on my comp. Now gVim is showing up with '$' symbols at the end of every line, and ugly '>-' headless arrows at the start of every line. Also while in INSERT mode each pr

Re: Inline script execution

2006-10-30 Thread A.J.Mechelynck
Daryl Lee wrote: I am working my way through the :help scripting explanation (usr_41.txt) and I have a question about the :@" command. I ran the sample given in the explanation, where the "simple example" is: :let i = 1 :while i < 5 : echo "count is" i : let i

Inline script execution

2006-10-30 Thread Daryl Lee
I am working my way through the :help scripting explanation (usr_41.txt) and I have a question about the :@" command. I ran the sample given in the explanation, where the "simple example" is: :let i = 1 :while i < 5 : echo "count is" i : let i += 1 :endwh

Re: Fork process is not working on GVIM7 on solaris

2006-10-30 Thread art sm
On 10/30/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: On 10/30/06, art sm <[EMAIL PROTECTED]> wrote: > Hi, > > I'm having trouble trying to fork a process from gui vim on solaris. > > For example, if I start gvim, and use do: > :!touch touchtest1 & > > will work, but any subsequent fork commands f

Re: inserting tabs in foldtext

2006-10-30 Thread Gary Johnson
On 2006-10-30, Kim Schulz <[EMAIL PROTECTED]> wrote: > Hi > Is there a way to have tab chars in foldtext? > I have tried with > > set foldtext=getline(v:foldstart).'^I^I'.v:foldstart > but with no luck. Have also tried with \t and > > so is this possible and how? It's not possible. At least

inserting tabs in foldtext

2006-10-30 Thread Kim Schulz
Hi Is there a way to have tab chars in foldtext? I have tried with set foldtext=getline(v:foldstart).'^I^I'.v:foldstart but with no luck. Have also tried with \t and so is this possible and how? -- Kim Schulz| Private : http://www.schulz.dk [EMAIL PROTECTED] | Business: http://www.dev

Re: Changing filetype

2006-10-30 Thread A.J.Mechelynck
Daryl Lee wrote: Wow! I've been on a lot of forums over the years, but I've never seen help this good and this fast! Thanks! And thanks to Tim for trying, but I couldn't get that suggestion to work. [...] :-) Vim is renowned for the abundance of its help. Best regards, Tony.

RE: Changing filetype

2006-10-30 Thread Daryl Lee
Wow! I've been on a lot of forums over the years, but I've never seen help this good and this fast! Thanks! And thanks to Tim for trying, but I couldn't get that suggestion to work. What I actually have now in _vimrc: " Set filetype to XML if it looks like an XML file and isn't an XHTML file "

Re: getchar(1) consumes a key ?

2006-10-30 Thread Bram Moolenaar
Yakov Lerner wrote: > inoremap PeekCharTimeout(1000)?"you pressed key! ":"timeout! " > > I hit a case when getchar(1) seemingly consumes a pressed key. > > 1. vim -u NONE -c 'so x.vim' # file x.vim is below > 2. If you press i and wait, you get 'timeout!', so this part works OK. > 3. The othe

Re: Changing filetype

2006-10-30 Thread A.J.Mechelynck
Daryl Lee wrote: I'm fairly new to Vim scripting and totally new to filetype automation, so this problem has me stumped. I'm running Vim 7 in a Windows environment. My project has decided to use XML for configuration files, and the file extension is .cfg. Because of the extension, Vim wants to

Re: Changing filetype

2006-10-30 Thread Tim Chase
My project has decided to use XML for configuration files, and the file extension is .cfg. Because of the extension, Vim wants to "setf cfg" in filetype.vim, but I'd like to override that with a "setf xml". I can do so manually with ":setf xml" after the file loads, but I'd love to automate that.

Changing filetype

2006-10-30 Thread Daryl Lee
I'm fairly new to Vim scripting and totally new to filetype automation, so this problem has me stumped. I'm running Vim 7 in a Windows environment. My project has decided to use XML for configuration files, and the file extension is .cfg. Because of the extension, Vim wants to "setf cfg" in file

Re: Fork process is not working on GVIM7 on solaris

2006-10-30 Thread Yakov Lerner
On 10/30/06, art sm <[EMAIL PROTECTED]> wrote: Hi, I'm having trouble trying to fork a process from gui vim on solaris. For example, if I start gvim, and use do: :!touch touchtest1 & will work, but any subsequent fork commands fail: :!touch touchtest2 & does not create the touchtest2 file. A

Re: no special treatment of & and ~ in substitute? possible?

2006-10-30 Thread A.J.Mechelynck
Marc Weber wrote: How can I tell vim to not tread & and ~ in a special way when using substitute? compare echo substitute(substitute('a','a','b','&'),'b','c &','') and echo substitute(substitute('a','a','b','&'),'b',substitute('c &','\V\(&\|~\)','\\\1','g'),'') using substitute works but see

Re: no special treatment of & and ~ in substitute? possible?

2006-10-30 Thread Mikolaj Machowski
On pon paź 30 2006, vim@vim.org wrote: > How can I tell vim to not tread & and ~ in a special way when using > substitute? > > compare > echo substitute(substitute('a','a','b','&'),'b','c &','') > and > echo substitute(substitute('a','a','b','&'),'b',substitute('c > &','\V\(&\|~\)','\\\

Re: active links for opening files

2006-10-30 Thread Yakov Lerner
On 10/30/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: On 10/30/06, Michael M. Tung <[EMAIL PROTECTED]> wrote: > Hi all: > > I am working on a simple plugin and want to make vim > open a file which appears in text e.g. as > > [/tmp/test.txt] > > by clicking on it. The path and filename al

Re: active links for opening files

2006-10-30 Thread Yakov Lerner
On 10/30/06, Michael M. Tung <[EMAIL PROTECTED]> wrote: Hi all: I am working on a simple plugin and want to make vim open a file which appears in text e.g. as [/tmp/test.txt] by clicking on it. The path and filename always appears in brackets. You can do this by mapping and pseu

Fork process is not working on GVIM7 on solaris

2006-10-30 Thread art sm
Hi, I'm having trouble trying to fork a process from gui vim on solaris. For example, if I start gvim, and use do: :!touch touchtest1 & will work, but any subsequent fork commands fail: :!touch touchtest2 & does not create the touchtest2 file. Is this a bug or do I need to set some configurati

active links for opening files

2006-10-30 Thread Michael M. Tung
Hi all: I am working on a simple plugin and want to make vim open a file which appears in text e.g. as [/tmp/test.txt] by clicking on it. The path and filename always appears in brackets. My syntax file already identifies this pattern. Please send me any suggestions. Perhaps some code

Re: set -o vi

2006-10-30 Thread Vigil
No. Readline doesn't read anything from vi config files. I don't even think you need vi installed. The nearest you'll get is using readline. See 'man 3 readline'. On Mon, 30 Oct 2006, Vim Visual wrote: sets the cursor to vi mode... but vi indeed... Is there a way to set the cursor to vim, and

Re: no special treatment of & and ~ in substitute? possible?

2006-10-30 Thread Yakov Lerner
On 10/30/06, Marc Weber <[EMAIL PROTECTED]> wrote: How can I tell vim to not tread & and ~ in a special way when using substitute? compare echo substitute(substitute('a','a','b','&'),'b','c &','') and echo substitute(substitute('a','a','b','&'),'b',substitute('c &','\V\(&\|~\)',

set -o vi

2006-10-30 Thread Vim Visual
Hi, I guess you already know that typping set -o vi sets the cursor to vi mode... but vi indeed... Is there a way to set the cursor to vim, and load all map, ab etc defined in my vimrc? It'd great because I have to type a lot of times long commands like rsync -avurltz --rsh=ssh --progress [EMAI

no special treatment of & and ~ in substitute? possible?

2006-10-30 Thread Marc Weber
How can I tell vim to not tread & and ~ in a special way when using substitute? compare echo substitute(substitute('a','a','b','&'),'b','c &','') and echo substitute(substitute('a','a','b','&'),'b',substitute('c &','\V\(&\|~\)','\\\1','g'),'') using substitute works but seems to