folding question

2010-08-09 Thread Jeri Raye
Hi, I'm trying to make a fold region that looks for the following - when a line contains the word foo that's the start of the fold - when one or more lines later the word end is found that should close the line - or when the words end with one or more space char foo is found that should close the

Dynamically load a file to a plugin

2010-08-09 Thread tcha-tcho
hy everyone! Im trying to dynamically load some variables from a external file to a plugin... but readfile() returns a list and this is not working. My file has 2 multidimensions lists and im using \ to split that array into several lines... today im trying to do something like this: fun!

RE: Dynamically load a file to a plugin

2010-08-09 Thread John Beckett
tcha-tcho wrote: Im trying to dynamically load some variables from a external file to a plugin... but readfile() returns a list and this is not working. My file has 2 multidimensions lists and im using \ to split that array into several lines... You have to do the work yourself. Two examples

Re: folding question

2010-08-09 Thread Christian Brabandt
Hi Jeri! On Mo, 09 Aug 2010, Jeri Raye wrote: Hi, I'm trying to make a fold region that looks for the following - when a line contains the word foo that's the start of the fold - when one or more lines later the word end is found that should close the line - or when the words end with

Re: If I always use mouse under GTK to browse text file in gvim, sometimes gvim stops working.

2010-08-09 Thread Tony Mechelynck
On 08/08/10 18:38, H Xu wrote: Hello everybody, If I always use mouse under GTK to browse text file in gvim, sometimes gvim stops working: It will not respond any key strokes or mouse actions inside the vim box, what I can do is to click the close button. Anyone has any idea? Thank you.

fold c++ style comment

2010-08-09 Thread Wayne
Hi there, I have a c++ source file, in which there are paragraphs of comments before each function to describe it. I'm used to syntax foldmethod, which can fold the comment of style /*...*/. But it can't fold the comment like, //... //... //... I don't want to use plugin if any. Could I write

Re: Can I rely on purging locks by deepcopy function?

2010-08-09 Thread ZyX
Ответ на сообщение «Re: Can I rely on purging locks by deepcopy function?», присланное в 05:16:45 09 августа 2010, Понедельник, отправитель winterTTr: We have different point of views: I consider lock being an attribute of an object (no matter how it is actually implemented), thus, in my mind,

Re: Can I rely on purging locks by deepcopy function?

2010-08-09 Thread winterTTr
On Mon, Aug 9, 2010 at 7:01 PM, ZyX zyx@gmail.com wrote: Ответ на сообщение Re: Can I rely on purging locks by deepcopy function?, присланное в 05:16:45 09 августа 2010, Понедельник, отправитель winterTTr: We have different point of views: I consider lock being an attribute of an object

Re: fold c++ style comment

2010-08-09 Thread Jeri Raye
Hi Wayne Can you do something with a fold expression? Assuming that a fold expression works as an extra mode when syntax foldmethod is on. Or something like done in http://vim.wikia.com/wiki/Syntax-based_folding I'm a complete newbie wrt to folding in vim, I'm just experimenting with it. HTH

What is the preferred Portuguese spell file?

2010-08-09 Thread Jakson A. Aquino
Hi, Vim uses OpenOffice spell files to build its own spell file, but the Portuguese spell files downloaded by runtime/spell/pt/main.aap are outdated. I'm making a patch to update the files to be downloaded and I know that currently the best BR version can be found at

Re: how to display registers 0-9?- concise way enhanced #,*

2010-08-09 Thread yosi izaq
On Thu, Aug 5, 2010 at 8:44 PM, ZyX zyx@gmail.com wrote: Ответ на сообщение how to display registers 0-9?- concise way enhanced #,*, присланное в 16:54:56 05 августа 2010, Четверг, отправитель Yosi Izaq: execute 'registers '.join(range(0, 9)) ? ``execute'' may be truncated to

Subsitute question

2010-08-09 Thread Bu Rak
Is there a single command to change following patterns at once? %s/AAA/ZZZ/g %s/aaa/zzz/g Burak -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php

Re: Subsitute question

2010-08-09 Thread ZyX
Ответ на сообщение «Subsitute question», присланное в 16:52:43 09 августа 2010, Понедельник, отправитель Bu Rak: %s/aaa/\=((tolower(submatch(0))==submatch(0))?('zzz'):('ZZZ'))/ig Текст сообщения: Is there a single command to change following patterns at once? %s/AAA/ZZZ/g %s/aaa/zzz/g

Re: Visual bell in VIM

2010-08-09 Thread Jeri Raye
2010/8/4 Ricky J. Wu richi...@live.com: In my system, I add these two lines into vimrc: set noerrorbells novisualbell autocmd VimEnter * set vb t_vb= This does the trick for me also! Thanks Jeri -- You received this message from the vim_use maillist. Do not top-post! Type your reply below

Re: Vim 7.3e ready for beta testing

2010-08-09 Thread Boyko Bantchev
On 8 August 2010 23:01, Bram Moolenaar b...@moolenaar.net wrote: ... We are getting close to the 7.3 release!  If nothing goes wrong I will release 7.3 in less than a week.  Last chance to report problems! ... Bram, Great thanks to you for doing all this huge work on keeping Vim the best

Re: how to display registers 0-9?- concise way enhanced #,*

2010-08-09 Thread ZyX
Ответ на сообщение «Re: how to display registers 0-9?- concise way enhanced #,*», присланное в 16:50:14 09 августа 2010, Понедельник, отправитель yosi izaq: Any idea re. how to search for WORD with */# shortcuts?- Can I make a map like \* \# for that?- Or is there already a common mapping

Re: how to display registers 0-9?- concise way enhanced #,*

2010-08-09 Thread yosi izaq
On Mon, Aug 9, 2010 at 6:07 PM, ZyX zyx@gmail.com wrote: Ответ на сообщение Re: how to display registers 0-9?- concise way enhanced #,*, присланное в 16:50:14 09 августа 2010, Понедельник, отправитель yosi izaq: Any idea re. how to search for WORD with */# shortcuts?- Can I make a map

Re: how to display registers 0-9?- concise way enhanced #,*

2010-08-09 Thread Bee
\On Aug 9, 9:09 am, yosi izaq izaq...@gmail.com wrote: On Mon, Aug 9, 2010 at 6:07 PM, ZyX zyx@gmail.com wrote: Ответ на сообщение Re: how to display registers 0-9?- concise way enhanced #,*, присланное в 16:50:14 09 августа 2010, Понедельник, отправитель yosi izaq: Any idea

Re: Vim 7.3e ready for beta testing

2010-08-09 Thread Bram Moolenaar
Boyko Bantchev wrote: On 8 August 2010 23:01, Bram Moolenaar b...@moolenaar.net wrote: ... We are getting close to the 7.3 release! If nothing goes wrong I will release 7.3 in less than a week. Last chance to report problems! ... Bram, Great thanks to you for doing all this huge

Re: how to display registers 0-9?- concise way enhanced #,*

2010-08-09 Thread ZyX
Ответ на сообщение «Re: how to display registers 0-9?- concise way enhanced #,*», присланное в 20:09:40 09 августа 2010, Понедельник, отправитель yosi izaq: I chose the first option and tweaked it a bit to work with more spec. chars and add \# (duh), ending up with: noremap special \*

Re: What is the preferred Portuguese spell file?

2010-08-09 Thread Bram Moolenaar
Jakson A. Aquino wrote: Vim uses OpenOffice spell files to build its own spell file, but the Portuguese spell files downloaded by runtime/spell/pt/main.aap are outdated. I'm making a patch to update the files to be downloaded and I know that currently the best BR version can be found at

Re: What is the preferred Portuguese spell file?

2010-08-09 Thread Jakson A. Aquino
On Mon, Aug 9, 2010 at 5:55 PM, Bram Moolenaar b...@moolenaar.net wrote: Jakson A. Aquino wrote: Vim uses OpenOffice spell files to build its own spell file, but the Portuguese spell files downloaded by runtime/spell/pt/main.aap are outdated. I'm making a patch to update the files to be

How to modify make.vim to capture 'undefine' a new keyword in GNU Make?

2010-08-09 Thread Peng Yu
Hi, GNU Make recently added a new keyword 'undefine'. I'm not familiar with vim enough to modify the following make.vim files. Could anybody let me where I can added 'undefine' in these files? /usr/share/vim/vim72/ftplugin/make.vim /usr/share/vim/vim72/indent/make.vim

Re: Is there a way to have mouse control in a Quit Edit mode Windows console?

2010-08-09 Thread Tony Mechelynck
On 05/08/10 15:57, Jean Johner wrote: Hello, Vim works nicely in a Windows XP cmd console. set mouse=a is activated by default so that mouse control works. However, if the Quit Edit mode is selected for the console, mouse control is lost (clicking somewhere does not move the Vim cursor) despite

Re: Tips for remembering command's of scripts

2010-08-09 Thread Tony Mechelynck
On 06/08/10 15:29, Jeri Raye wrote: Hi, Maybe a stupid question but do you have any tips on rembering all the command's provided by plugin scripts? How to do that? Do you write them on a paper besides your PC? Or on another way. There are a lot of scripts with fantastic functionality. But me

Re: fold c++ style comment

2010-08-09 Thread Wayne
Hi Jeri, Sorry, I'm not familiar with fold expression. I checked the url you provided, but nothing useful found related to folding c++ style comment. Thanks anyway. Wayne On Mon, Aug 9, 2010 at 7:12 PM, Jeri Raye jeri.r...@gmail.com wrote: Hi Wayne Can you do something with a fold

Re: If I always use mouse under GTK to browse text file in gvim, sometimes gvim stops working.

2010-08-09 Thread H Xu
On 2010/8/9 16:10, Tony Mechelynck wrote: On 08/08/10 18:38, H Xu wrote: Hello everybody, If I always use mouse under GTK to browse text file in gvim, sometimes gvim stops working: It will not respond any key strokes or mouse actions inside the vim box, what I can do is to click the close

Re: Tips for remembering command's of scripts

2010-08-09 Thread Ted
AK: If I get you right, you've basically implemented a docstring parser for VimL... do I read you? Is this code published somewhere? It sounds sweet. I'm a big fan of using `:help blah^D` to get a list of commands/ functions/other help topics that contain blah. I'm approaching the point of

Re: Vim 7.3e ready for beta testing

2010-08-09 Thread Ted
Although I'm not certain that I understand the full set of use cases that would benefit from a resolution of these inconsistencies, it seems plausible to me that most or all of the use cases could be implemented in a buffer with some insightful mappings (of, for example, `i_^M`) and/or

Re: how to deal with a space in a directory path in vim

2010-08-09 Thread Ted
It might be more straightforward to set the setting using let, eg :let path = 'C:\my\ projects/...' I tried a simpler such path containing a space under linux and `:find` was able to find a file there. Cheers -Ted On Aug 9, 11:26 pm, Tony Mechelynck antoine.mechely...@gmail.com wrote: On