Re: The :perl command segfaults in 7.2.394 built with --enable-perlinterp under cygwin

2010-03-15 Fir de Conversatie Jürgen Krämer
Hi, Peter Thomas wrote: I'm trying to build a version of vim with perl support that will run under the cygwin terminal (ie. *not* the win32 build). The configure/ make/make install sequence runs to completion with no errors, however when I fire up vim and do a test perl command like :perl

Re: textobjects extension

2010-03-15 Fir de Conversatie Jürgen Krämer
Hi, [quoting re-ordered, please bottom-post mobi phil wrote: On Sun, Mar 14, 2010 at 6:26 PM, Antony Scriven adscri...@gmail.com wrote: On 14 March 2010 13:53, mobi phil m...@mobiphil.com wrote: I think it would make enough sense to extend the textobjects with af that would select a

Re: textobjects extension

2010-03-15 Fir de Conversatie mobi phil
I think what Antony wanted to say is: What do you understand by 'a function'? How can it be identified in text? IMHO a function is such a highly language-dependent construct that a definition for a corresponding text object can not be easily described by a single flag or even some parameters

Re: col() in lines with apostrophe characters

2010-03-15 Fir de Conversatie ZyX
Ответ на сообщение «Re: col() in lines with apostrophe characters», присланное в 20:15:39 14 марта 2010, Воскресенье, отправитель Ingo Karkat: let len = strlen(substitute(str, ., x, g)) Never use this. It is three orders of magnitude slower than let len=len(split(str, '\zs')) You can

Re: col() in lines with apostrophe characters

2010-03-15 Fir de Conversatie Gregor Uhlenheuer
Am 14.03.2010 18:15, schrieb Ingo Karkat: On 14-Mar-2010 17:49, Gregor Uhlenheuer wrote: Hello, I think the col() function does not work properly for lines with apostrophe characters (`´). :echo col([line('.'), '$']) returns 6 on the line below: ´foo It should return 5 I think. It

Re: col() in lines with apostrophe characters

2010-03-15 Fir de Conversatie Ingo Karkat
On 15-Mar-2010 11:21, Gregor Uhlenheuer wrote: Since you nearly guessed my use of col() - I want to get the length of the current line - thank you for the tip with the substitution. I figured that using virtcol() is probably more appropriate for that purpose. Well, call it psychic debugging

Re: textobjects extension

2010-03-15 Fir de Conversatie Kana Natsuno
On Sun, 14 Mar 2010 22:53:57 +0900, mobi phil m...@mobiphil.com wrote: I think it would make enough sense to extend the textobjects with af that would select a function, that is its name, formal parameters and the body. One could write a script for it, I know, but the same time hundreds of

Re: col() in lines with apostrophe characters

2010-03-15 Fir de Conversatie Ingo Karkat
On 15-Mar-2010 18:57, ZyX wrote: Ответ на сообщение Re: col() in lines with apostrophe characters, присланное в 20:15:39 14 марта 2010, Воскресенье, отправитель Ingo Karkat: let len = strlen(substitute(str, ., x, g)) Never use this. It is three orders of magnitude slower than let

Re: textobjects extension

2010-03-15 Fir de Conversatie Ben Fritz
On Mar 15, 4:39 am, mobi phil m...@mobiphil.com wrote: Sorry... Indeed Antony wrote define. It seems that I wanted so much not to read that write a function :) Vim is and was primarily c and c++ programmers editor, and lots of features are tuned for c. My a function text object for C

Re: textobjects extension

2010-03-15 Fir de Conversatie Ben Fritz
On Mar 15, 8:56 am, Ben Fritz fritzophre...@gmail.com wrote: My a function text object for C code: [[vaB ...which of course will only work if your coding style places '{' at the beginning of a new line, and could more easily be written [[v% in most cases. I must need some more coffee this

Re: textobjects extension

2010-03-15 Fir de Conversatie mobi phil
thanks, * both examples are rather obvious, but they do not select the functions header. * Ben: in what you proposed, [[ jumps to the wrong position if { is not in the first colum, so both [[%v and [[aB do the job only if { is in the first position * this tells me that [[ is less useful in most

Re: textobjects extension

2010-03-15 Fir de Conversatie mobi phil
That sounds good... will try out. Maybe adding what I was mentioning in my prev email, would make sense ( select class, struct, while/if/switch blocks together with their header) -- rgrds, mobi phil being mobile, but including technology http://mobiphil.com -- You received this message from

Re: Error in the management of the jump list when using File browser (windows or Linux)

2010-03-15 Fir de Conversatie Charles Campbell
Jean Johner wrote: Hello, A still simpler case showing a problem with File browser and Ctrl-O/ Ctrl-I Suppress the ~/(.,_)viminfo file. Type vim test1 (file1 opens at line 1) Type :e . (The file browser opens at line 8 OK) Type Ctrl-O twice (Return to file1, OK) Type Ctrl-I (Return to File

Re: Caught E38 Null argument

2010-03-15 Fir de Conversatie Lech Lorens
On 14-Mar-2010 Dominique Pellé dominique.pe...@gmail.com wrote: So the position of the cursor is wrong. I think curwin-w_cursor.lnum is 0 because it's set in popupmnu.c:643 to 0: 643 curwin-w_cursor.lnum = 0; If I replace this line with... 643