Re: new text object feature request

2007-05-16 Thread Peter Hodge
--- Larson, David [EMAIL PROTECTED] wrote: I often need to replace parameter text and usually try to remember the text object that selects the inner parameter, only to come up short since that type isn't defined. It seems natural to have a parameter text object, where it would act on the text

Re: wish: allow a: in the function def

2007-04-24 Thread Peter Hodge
--- Nikolai Weibull [EMAIL PROTECTED] wrote: On 4/23/07, Yakov Lerner [EMAIL PROTECTED] wrote: wish: allow a: in the function definition line: function foo(a:line1, a:line2) This is currently not allowed. But it seems logical to allow it. Why should it be? Extra typing? So that

Re: Suggestion for :syn-nextgroup enhancement

2007-02-27 Thread Peter Hodge
I would find this feature very useful as well. +1 regards, Peter --- Nikolai Weibull [EMAIL PROTECTED] wrote: I'm a firm believer in the nextgroup directive for defining syntaxes. It allows you to define grammars, which I really enjoy doing. However, one problem is that many languages allow

Re: syntax region match with braces

2006-11-01 Thread Peter Hodge
Hodge написа: --- Виктор Кожухаров [EMAIL PROTECTED] wrote: Ð’ ÑÑ€, 2006-11-01 в 10:53 +1100, Peter Hodge напиÑа: --- ÃøúÑþѬ ÃaþöђÑðѬþÃ

Re: syntax region match with braces

2006-10-31 Thread Peter Hodge
--- ÐикÑоѬ ÐaожÑ#146;ÑаѬов [EMAIL PROTECTED] wrote: Hello, I'm working on a syntax file for .edc files. The problem before me is that I want to use a different syntax file for a script part. I've created the syntax file for the script syntax, and I've read how yto use syn

Re: FW: elastic tabstops and gvim's GTK text widget

2006-10-30 Thread Peter Hodge
--- Nick Gravgaard [EMAIL PROTECTED] wrote: Hi Zdenek, On 30/10/06, Zdenek Sekera [EMAIL PROTECTED] wrote: Hi, Nick, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nick Gravgaard Sent: 19 October 2006 13:42 To: vim-dev@vim.org

Re: containedin can't include clusters

2006-10-24 Thread Peter Hodge
--- Nikolai Weibull [EMAIL PROTECTED] wrote: I figured that it was easier to add items to a cluster using containedin= for a syntax definition I'm writing, but it seems that one can't do it that way. Is there a reason for this, or is it an oversight? Can we add this to the todo? I've

Re: elastic tabstops and gvim's GTK text widget

2006-10-19 Thread Peter Hodge
Hello, Do you intend to make Elastic Tabs available in a console vim as well? regards, Peter --- Nick Gravgaard [EMAIL PROTECTED] wrote: Hi all, I am the creator of a mechanism called elastic tabstops (see nickgravgaard.com/elastictabstops/). Right now, my plan is to try and implement

Re: elastic tabstops and gvim's GTK text widget

2006-10-19 Thread Peter Hodge
I don't think so - just the GTK version. One of the advantages of the elastic tabstop system is that proportional fonts can be used without breaking vertical alignment, and obviously this advantage is invalid in a monospaced console. I'm not fussed about proportional fonts, I'm interested in

Re: elastic tabstops and gvim's GTK text widget

2006-10-19 Thread Peter Hodge
--- Nick Gravgaard [EMAIL PROTECTED] wrote: On 20/10/06, Peter Hodge [EMAIL PROTECTED] wrote: I don't think so - just the GTK version. One of the advantages of the elastic tabstop system is that proportional fonts can be used without breaking vertical alignment, and obviously

Re: the plugin startup check

2006-10-19 Thread Peter Hodge
I think it is because you may have a copy of the plugin in $VIMRUNTIME as well as in your .vim folder. In this way, your .vim copy is sourced first (well, according to 'rtp'), sets the g:plugin_name variable and when the $VIMRUNTIME plugins are sourced, and it sees the variable and prevents

Re: BUG: syntax region overlaps keyword *sometimes*

2006-10-07 Thread Peter Hodge
I can reproduce the problem. Indeed looks like a bug. Removing containedin=NOTHING solves it, while it should not change anything. Sorry for finding a bug while you are so busy. But I am addicted to syntax highlighting, it's such a wonderful feature. regards, Peter --

BUG: syntax region overlaps keyword *sometimes*

2006-10-05 Thread Peter Hodge
Hello, I have discovered that it is possible for a syntax region to overlap a syntax keyword, even though the region is not contained in the keyword. Take the following code example and apply the syntax commands below: TEST CODE: (is_array($foo)) ( is_array($foo) ) SYNTAX

Re: BUG: syntax region overlaps keyword *sometimes*

2006-10-05 Thread Peter Hodge
--- Ilya Bobir [EMAIL PROTECTED] wrote: Peter Hodge wrote: Hello, I have discovered that it is possible for a syntax region to overlap a syntax keyword, even though the region is not contained in the keyword. Take the following code example and apply the syntax commands below

vim -u NONE (was: Re: Vim 7.0 (1-109 patches) completion bug.)

2006-10-05 Thread Peter Hodge
BTW, using gvim -u NONE -U NONE is both redundant (in the case of -U NONE), dangerous (since default settings may truncate your viminfo on exit), and put you in vi compatible mode. Better is: gvim -u NONE -i NONE -N I wouldn't think the -i option is necessary, because

Re: compilation of regular expressions/ enhancement?

2006-10-04 Thread Peter Hodge
--- Nikolai Weibull [EMAIL PROTECTED] wrote: On 10/4/06, Peter Hodge [EMAIL PROTECTED] wrote: --- Nikolai Weibull [EMAIL PROTECTED] wrote: Great idea, Nikolei! ^- gaah! nikolai iabbrev Nikolei Nikolai match Error /Nikol[^a]i/ I'd extended

Re: Time to remove naming restrictions?

2006-10-04 Thread Peter Hodge
Seeing as you've identified the location and apparent fix, why not you? Because I don't want to maintain my own set of patches, that would be more tiring than using upper-case commands. On Yahoo!7

Re: Time to remove naming restrictions?

2006-10-03 Thread Peter Hodge
Argh. This is exactly why all the hacks one has to employ never really quite make it. There's always some base you haven't covered, some point you can't reach. Seriously, if people want to f**k up their session, let them. No one who isn't prepared to get burned is going to override

Re: vim is scrambling my files

2006-09-26 Thread Peter Hodge
Just my 2c worth, is it a display problem that goes away when you press CTRL+L? regards, Peter --- jinxjinx [EMAIL PROTECTED] wrote: :verbose set makeprg? makeef? autowrite? autowriteall? makeprg=make makeef= noautowrite noautowriteall :verbose setlocal filetype? filetype=c

Re: distributing experimental patches with vim ?

2006-09-14 Thread Peter Hodge
Hello Yakov, If I recall correctly, didn't you write the shell script which automatically patches and installs Vim 7? If so, why not expand on it to allow (optionally) installing unofficial patches from vim.org as well? Maybe a '--with-patch=script_id' argument would work? regards, Peter

Fixed: prevent slowness from Insert mode completion

2006-09-13 Thread Peter Hodge
*** *** 3019,3024 --- 3019,3031 p = line + curwin-w_cursor.col; mb_ptr_back(line, p); + /* + * PETER HODGE - if completeopt contains 'stop', then stop + * insert completion when backspace is used + */ + if (vim_strchr(p_cot, 's') != NULL

Re: Fixed: prevent slowness from Insert mode completion

2006-09-13 Thread Peter Hodge
1. The second title above is misleading. Bram uses (after patch nnn) when a patch _depends_ on another, i.e., requires patch nnn to have been applied previously, usually because the later patch fixes a bug introduced by the earlier one. For instance, official patch 7.0.057 is labeled

Re: indenting weirdness

2006-09-06 Thread Peter Hodge
Hello scott, The 'filetype=' message is what happens when you use ':set filetype=' and don't specify any filetype. If you have 'cindent' turned on, Vim will add an indent after a line ending in a comma (,) and your sample sentence does. Use ':set cindent?' to check if it is turned on. regards,

Re: Problem with completion

2006-08-21 Thread Peter Hodge
Hi Srinath, For now, I am just going to set noignorecase to get around this, but it would be nice if this were fixed. On another note, I would like an option which only ignores case when searching. When doing completion, I have taken the trouble of typing Graph with a capital G, so I don't

Syntax Feature Request

2006-07-27 Thread Peter Hodge
Hello all, I just want to throw this idea out there as a potential solution to the problems I am having with the PHP syntax. It would be helpful to be able to name sequential 'nextgroups' for regions and matches, so that the syntax will highlight an area using certain groups in specific order.

Re: foldmethod=expr very slow

2006-07-26 Thread Peter Hodge
Hi Thore, You can probably get away with foldmethod=expr in large files by de-activating it in Insert mode. I.e., add this to your after/ftplugin/php.vim: augroup FastFold autocmd! autocmd InsertEnter * if ft == 'php' | setlocal foldmethod=manual | endif autocmd Insertleave * if ft ==

Re: foldmethod=expr very slow

2006-07-24 Thread Peter Hodge
Hi Thore, I've never tried folding like this before, and unfortunately I don't have time to try out this 'optimized' version, but it may work faster for you (I've just replaced the regex matches with stridx and rearranged the code flow): set foldexpr=GetFoldLevel() function! GetFoldLevel()