Re: some ideas

2006-12-14 Thread Marc Weber
On Mon, Dec 11, 2006 at 09:08:20PM -0200, Rodolfo Borges wrote: (1) When tab-completing on Vim :cmdline, start with the dir of the current file being edited, instead of the $PWD (use ./ for that). Yet another idea. I'm using many mappinngs like this to not change workinng directory (it seems

Re: Cream slow to start up

2006-12-14 Thread Gary Johnson
On 2006-12-14, Yakov Lerner [EMAIL PROTECTED] wrote: On 12/13/06, Gary Johnson [EMAIL PROTECTED] wrote: On 2006-12-03, Yakov Lerner [EMAIL PROTECTED] wrote: You can try 'gvim.exe -V20/tmp/log' to identity points of slowness. You might need timestamps in the logfile for that. To add

Re: Cream slow to start up

2006-12-14 Thread Yakov Lerner
On 12/14/06, Gary Johnson [EMAIL PROTECTED] wrote: On 2006-12-14, Yakov Lerner [EMAIL PROTECTED] wrote: On 12/13/06, Gary Johnson [EMAIL PROTECTED] wrote: On 2006-12-03, Yakov Lerner [EMAIL PROTECTED] wrote: You can try 'gvim.exe -V20/tmp/log' to identity points of slowness. You might

grep and regular expression

2006-12-14 Thread Naim Far
Hi, I'm writing C++ code, I'm trying to search for all class declaration via the following command: :grep 'class\s*\w\+{' *.hpp The command fails! although if I do search for the same expression, the search succeeds (in a specific file)! Y?! Thanx...

RE: grep and regular expression

2006-12-14 Thread Dan Mergens
Vim does not use strict regular expressions and grep does not use regular expressions for pattern matching. The regular expression 'class\s*\w\+{' would have to match something like this: class ALPHAJunk+{ which I don't think is representative of any class declaration I've seen. You

Re: grep and regular expression

2006-12-14 Thread A.J.Mechelynck
Dan Mergens wrote: Vim does not use strict regular expressions and grep does not use regular expressions for pattern matching. The regular expression 'class\s*\w\+{' would have to match something like this: class ALPHAJunk+{ which I don't think is representative of any class declaration

RE: grep and regular expression

2006-12-14 Thread Dan Mergens
I neglected to mention that grep uses basic regular expressions. Use 'egrep' for full regular expression matching. (or grep -E). I meant to say '/s' doesn't work in grep as a whitespace matching character, not '/w'. From: A.J.Mechelynck [mailto:[EMAIL

Re: Cream slow to start up

2006-12-14 Thread Gary Johnson
On 2006-12-14, Yakov Lerner [EMAIL PROTECTED] wrote: On 12/14/06, Gary Johnson [EMAIL PROTECTED] wrote: On 2006-12-14, Yakov Lerner [EMAIL PROTECTED] wrote: On 12/13/06, Gary Johnson [EMAIL PROTECTED] wrote: On 2006-12-03, Yakov Lerner [EMAIL PROTECTED] wrote: You can try

Re: grep and regular expression

2006-12-14 Thread Charles E Campbell Jr
Dan Mergens wrote: Vim does not use strict regular expressions and grep does not use regular expressions for pattern matching. I find this comment about Vim curious. Do you perhaps mean that Vim does not use Perl's regular expressions? Grep also uses regular expressions, BTW, although

RE: grep and regular expression

2006-12-14 Thread Dan Mergens
I would have to defer to the regular expression experts, but VIM does not use the standard regular expressions that work on the command line, in say, Linux. Specifically, in the example cited, '/s' was used for whitespace matching, which is not available in standard regular expressions (c.f.

Re: vim 7 python completion

2006-12-14 Thread Andrea Spadaccini
Ciao Aaron, sys.excepthook( Allowing you to enter the parameters themselves. Hitting C-x,C-o at this point will complete the parameters as named in the original popup, leaving you with: sys.excepthook(exctype, value, traceback) Thanks a lot for your message and for your great script!

Re: grep and regular expression

2006-12-14 Thread Tim Chase
I would have to defer to the regular expression experts, but VIM does not use the standard regular expressions that work on the command line, in say, Linux. Specifically, in the example cited, '/s' was used for whitespace matching, which is not available in standard regular expressions (c.f.

Re: grep and regular expression

2006-12-14 Thread Charles E Campbell Jr
Dan Mergens wrote: I would have to defer to the regular expression experts, but VIM does not use the standard regular expressions that work on the command line, in say, Linux. Specifically, in the example cited, '/s' was used for whitespace matching, which is not available in standard

Re: auto complete function of the tab does not work

2006-12-14 Thread Yegappan Lakshmanan
On 12/13/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: To see if Vim finds your vimrc, look at the top of the output of the :scriptnames command. To see _where_ it looks for a vimrc, use (on [g]vim for Windows) :echo $HOME :echo $VIM In Vim7, Vim sets the MYVIMRC

Re: Making C-] do something different

2006-12-14 Thread Yegappan Lakshmanan
Hi, On 12/13/06, Chuck Mason [EMAIL PROTECTED] wrote: In source code, C-] follows a tags file. In :help it follows links (Maybe there's a helptags file?). But I've created a new temp buffer from some vim code and I want C-] to do something different for only this buffer. For instance I have

Re: auto complete function of the tab does not work

2006-12-14 Thread Steven Woody
thank you all! the problem has been resolved. actually, 'verboset set cp?' returns 'compatiable', so i recheck where is my _vimrc file and found it was lost. i rewrite the file and everything goes fine. thank you again! On 12/15/06, Yegappan Lakshmanan [EMAIL PROTECTED] wrote: On 12/13/06,