From gsinclair at gmail.com Tue Jul 4 21:57:46 2006 From: gsinclair at gmail.com (Gavin Sinclair) Date: Wed, 5 Jul 2006 11:57:46 +1000 Subject: What's the latest? Message-ID: Hi folks, It's been quiet on this list lately, but I noticed a few people have joined. What's the status on completions? Did everything get fixed and included in Vim 7? What about snippets? Haven't heard about them for a while, but coincidentally the most recently updated plugin on the website is "snippetsEmu" [1], created by Felix Ingram. Any outstanding indenting issues anyone wants to bring to my attention? :) Finally, I'd love to be able to download a Windows build of gvim that includes Ruby support. Is it possible that the vim-ruby project could distribute such a thing? Does anyone have a binary they can send me? Cheers, Gavin [1] http://www.vim.org/scripts/script.php?script_id=1318 From segfault at hasno.info Wed Jul 5 15:34:24 2006 From: segfault at hasno.info (Mark Guzman) Date: Wed, 05 Jul 2006 15:34:24 -0400 Subject: What's the latest? In-Reply-To: References: Message-ID: <44AC1440.2060408@hasno.info> Gavin Sinclair wrote: > Hi folks, > > It's been quiet on this list lately, but I noticed a few people have joined. > > What's the status on completions? Did everything get fixed and > included in Vim 7? > > What about snippets? Haven't heard about them for a while, but > coincidentally the most recently updated plugin on the website is > "snippetsEmu" [1], created by Felix Ingram. > > Any outstanding indenting issues anyone wants to bring to my attention? :) > > Finally, I'd love to be able to download a Windows build of gvim that > includes Ruby support. Is it possible that the vim-ruby project could > distribute such a thing? Does anyone have a binary they can send me? > I've been maintaining a windows gvim build from the svn head, built with ruby support. http://blog.hasno.info/blog/segfault/2006/06/26/vim-7-0-35.html Completions seem stable, there are a few issues that I've been handling mainly involving peoples broken vim configs. I'm working on adding support for in buffer method defines and improving/fixing completion in rails views. --mark -- sic transit gloria et adulescentia blog | http://blog.hasno.info/blog wiki | http://wiki.hasno.info From now at bitwi.se Wed Jul 5 16:10:17 2006 From: now at bitwi.se (Nikolai Weibull) Date: Wed, 5 Jul 2006 22:10:17 +0200 Subject: What's the latest? In-Reply-To: References: Message-ID: On 7/5/06, Gavin Sinclair wrote: > What about snippets? Haven't heard about them for a while, but > coincidentally the most recently updated plugin on the website is > "snippetsEmu" [1], created by Felix Ingram. As far as I have determined, snippets that don't suck are impossible to implement in Vim, as we don't have real persistent marks. Having something like Emacs's overlays would be sweet, but Bram didn't seem interested, so someone'll have to write it for us. And I am not available. (I'd much rather complete my own editor[1] than start trying to understand Vim's internals. I just can't read code with #ifdefs everywhere.) > Any outstanding indenting issues anyone wants to bring to my attention? :) Probably, but I am in "accepting patches only"-mode right now. nikolai [1] http://git.bitwi.se/?p=ned.git;a=tree From gsinclair at gmail.com Sat Jul 8 08:30:27 2006 From: gsinclair at gmail.com (Gavin Sinclair) Date: Sat, 8 Jul 2006 22:30:27 +1000 Subject: What's the latest? In-Reply-To: <44AC1440.2060408@hasno.info> References: <44AC1440.2060408@hasno.info> Message-ID: On 7/6/06, Mark Guzman wrote: > > Finally, I'd love to be able to download a Windows build of gvim that > > includes Ruby support. Is it possible that the vim-ruby project could > > distribute such a thing? Does anyone have a binary they can send me? > > I've been maintaining a windows gvim build from the svn head, built with > ruby support. > http://blog.hasno.info/blog/segfault/2006/06/26/vim-7-0-35.html That's awesome. It even works! Would it be OK for us to put that file on the vim-ruby webpage to make it available for others in a nice convenient place? I wonder if the RubyForge folks would like that. Not that it would attract a swarm of downloads, of course. Gavin From dougkearns at gmail.com Tue Jul 11 08:14:38 2006 From: dougkearns at gmail.com (Doug Kearns) Date: Tue, 11 Jul 2006 22:14:38 +1000 Subject: ANN: New stable release - 2006.07.11 Message-ID: <20060711121438.GA1824@localhost.localdomain> I've just sent up vim-ruby-2006.07.11. Regards, Doug From gsinclair at gmail.com Wed Jul 12 23:58:43 2006 From: gsinclair at gmail.com (Gavin Sinclair) Date: Thu, 13 Jul 2006 13:58:43 +1000 Subject: ANN: New stable release - 2006.07.11 In-Reply-To: <20060711121438.GA1824@localhost.localdomain> References: <20060711121438.GA1824@localhost.localdomain> Message-ID: On 7/11/06, Doug Kearns wrote: > I've just sent up vim-ruby-2006.07.11. Thanks Doug. Gavin From hgs at dmu.ac.uk Wed Jul 19 10:10:58 2006 From: hgs at dmu.ac.uk (Hugh Sasse) Date: Wed, 19 Jul 2006 15:10:58 +0100 (WEST) Subject: ANN: New stable release - 2006.07.11 In-Reply-To: <20060711121438.GA1824@localhost.localdomain> References: <20060711121438.GA1824@localhost.localdomain> Message-ID: On Tue, 11 Jul 2006, Doug Kearns wrote: > I've just sent up vim-ruby-2006.07.11. I hadn't notice vim7.0 was out till today. So I installed it. I tried to use omni-complete (^X^O) within a ruby file and I got an error E764 omnifunc not set. So I grabbed this release, installed the gem, and tried again. I got the same message. I've not been at the sharp end of vim development for a while, so I've probably missed something. Do I need to set something else? I suppose the facility has a cost so it isn't on out-of-the-box? [And if I might ask something off topic, can I set spellang=en_gb globally, so I can just set spell, set nospell to turn it on and off without having to tell it which langauge all the time? Or something that doesn't involve a mapping, so it will work wherever vim is.] Thank you. > > Regards, > Doug Hugh From dougkearns at gmail.com Wed Jul 19 10:57:41 2006 From: dougkearns at gmail.com (Doug Kearns) Date: Thu, 20 Jul 2006 00:57:41 +1000 Subject: ANN: New stable release - 2006.07.11 In-Reply-To: References: <20060711121438.GA1824@localhost.localdomain> Message-ID: <20060719145741.GH2645@localhost.localdomain> G'day Hugh, On Wed, Jul 19, 2006 at 03:10:58PM +0100, Hugh Sasse wrote: > On Tue, 11 Jul 2006, Doug Kearns wrote: > > > I've just sent up vim-ruby-2006.07.11. > > I hadn't notice vim7.0 was out till today. So I installed it. > I tried to use omni-complete (^X^O) within a ruby file and > I got an error E764 omnifunc not set. Is your version compiled with the Ruby interface? Does :version show +ruby? I would actually have expected "Error: Required vim compiled with +ruby" with the default Vim 7. > So I grabbed this release, installed the gem, and tried again. > I got the same message. I recently changed this so that 'omnifunc' is not set if vim doesn't have +ruby. > I've not been at the sharp end of vim development for a while, > so I've probably missed something. Do I need to set something > else? I suppose the facility has a cost so it isn't on out-of-the-box? It is configured to run 'out of the box' if vim was compiled with the Ruby interface. > [And if I might ask something off topic, can I set spellang=en_gb > globally, so I can just set spell, set nospell to turn it on and > off without having to tell it which langauge all the time? Or something > that doesn't involve a mapping, so it will work wherever vim is.] I'm not sure I understand...why can't you set this in your .vimrc? > Thank you. Regards, Doug From hgs at dmu.ac.uk Wed Jul 19 11:23:32 2006 From: hgs at dmu.ac.uk (Hugh Sasse) Date: Wed, 19 Jul 2006 16:23:32 +0100 (WEST) Subject: ANN: New stable release - 2006.07.11 In-Reply-To: <20060719145741.GH2645@localhost.localdomain> References: <20060711121438.GA1824@localhost.localdomain> <20060719145741.GH2645@localhost.localdomain> Message-ID: On Thu, 20 Jul 2006, Doug Kearns wrote: > G'day Hugh, > > On Wed, Jul 19, 2006 at 03:10:58PM +0100, Hugh Sasse wrote: > > On Tue, 11 Jul 2006, Doug Kearns wrote: > > > > > I've just sent up vim-ruby-2006.07.11. > > > > I hadn't notice vim7.0 was out till today. So I installed it. > > I tried to use omni-complete (^X^O) within a ruby file and > > I got an error E764 omnifunc not set. > > Is your version compiled with the Ruby interface? Does :version show > +ruby? I would actually have expected "Error: Required vim compiled with Ah, right. I have -ruby. (I wonder why it doesn't detect ruby at config time? (rhetorical, way off topic). OK, I'll have to look how to turn that on and rebuild. Oh, that seems to be ./configure --with-features=huge && gmake && gmake test to do what I want. That's in progress as I type this. > +ruby" with the default Vim 7. > > > So I grabbed this release, installed the gem, and tried again. > > I got the same message. > > I recently changed this so that 'omnifunc' is not set if vim doesn't > have +ruby. OK > > > I've not been at the sharp end of vim development for a while, > > so I've probably missed something. Do I need to set something > > else? I suppose the facility has a cost so it isn't on out-of-the-box? > > It is configured to run 'out of the box' if vim was compiled with the > Ruby interface. Isn't the ruby interface a separate function from editing Ruby files? IIRC the ruby interface allowed one to do vim scripting in ruby, whereas one may still want omnicompletion when working on Ruby code. Or is the connection more intimate than that? Maybe I'm thinking of --enable-ruby-interpreter? > > > [And if I might ask something off topic, can I set spellang=en_gb > > globally, so I can just set spell, set nospell to turn it on and > > off without having to tell it which langauge all the time? Or something > > that doesn't involve a mapping, so it will work wherever vim is.] > > I'm not sure I understand...why can't you set this in your .vimrc? The help says: This command switches on spell checking: > :setlocal spell spelllang=en_us This switches on the 'spell' option and specifies to check for US English. ....[Click!] -- I thought this was setting a sub option in spell, to set the language, but it's the same as set et sw=2 so it's setting two different options at the same time. Forget I asked! My brain is turning to cheese in this heat. Clearly I *can* set spelllang=en_gb in my .vimrc and toggle spell as usual. > > > Thank you. > > Regards, > Doug Hugh From hgs at dmu.ac.uk Wed Jul 19 11:56:22 2006 From: hgs at dmu.ac.uk (Hugh Sasse) Date: Wed, 19 Jul 2006 16:56:22 +0100 (WEST) Subject: ANN: New stable release - 2006.07.11 In-Reply-To: References: <20060711121438.GA1824@localhost.localdomain> <20060719145741.GH2645@localhost.localdomain> Message-ID: I know, replying to myself, but it's the most efficient.... On Wed, 19 Jul 2006, Hugh Sasse wrote: > > Ah, right. I have -ruby. (I wonder why it doesn't detect ruby at config > time? (rhetorical, way off topic). OK, I'll have to look how to turn that > on and rebuild. Oh, that seems to be > ./configure --with-features=huge && gmake && gmake test > to do what I want. That's in progress as I type this. No, that gives me -ruby as well. Rats! --with-features=ruby might be it? Would it be worth putting some hints about this in the project README http://rubyforge.org/docman/view.php/16/9/README Thanks Hugh From dougkearns at gmail.com Wed Jul 19 12:13:36 2006 From: dougkearns at gmail.com (Doug Kearns) Date: Thu, 20 Jul 2006 02:13:36 +1000 Subject: ANN: New stable release - 2006.07.11 In-Reply-To: References: <20060711121438.GA1824@localhost.localdomain> <20060719145741.GH2645@localhost.localdomain> Message-ID: <20060719161336.GA14568@localhost.localdomain> On Wed, Jul 19, 2006 at 04:23:32PM +0100, Hugh Sasse wrote: > On Thu, 20 Jul 2006, Doug Kearns wrote: > Ah, right. I have -ruby. (I wonder why it doesn't detect ruby at config > time? (rhetorical, way off topic). You need to run it with --enable-rubyinterp > > > I've not been at the sharp end of vim development for a while, > > > so I've probably missed something. Do I need to set something > > > else? I suppose the facility has a cost so it isn't on out-of-the-box? > > > > It is configured to run 'out of the box' if vim was compiled with the > > Ruby interface. > > Isn't the ruby interface a separate function from editing Ruby files? Yes, but the 'omnifunc' (autoload/rubycomplete.vim) uses the Ruby interface to generate the completions. Regards, Doug From hgs at dmu.ac.uk Wed Jul 19 13:33:28 2006 From: hgs at dmu.ac.uk (Hugh Sasse) Date: Wed, 19 Jul 2006 18:33:28 +0100 (WEST) Subject: ANN: New stable release - 2006.07.11 In-Reply-To: <20060719161336.GA14568@localhost.localdomain> References: <20060711121438.GA1824@localhost.localdomain> <20060719145741.GH2645@localhost.localdomain> <20060719161336.GA14568@localhost.localdomain> Message-ID: On Thu, 20 Jul 2006, Doug Kearns wrote: > On Wed, Jul 19, 2006 at 04:23:32PM +0100, Hugh Sasse wrote: > > On Thu, 20 Jul 2006, Doug Kearns wrote: > You need to run it with --enable-rubyinterp Also needed to make distclean. It's now working. I've just got to figure out how to use it now :-). I'll explore that further. > > [...] > > Isn't the ruby interface a separate function from editing Ruby files? > > Yes, but the 'omnifunc' (autoload/rubycomplete.vim) uses the Ruby > interface to generate the completions. I imaging doing that in vimscript would be hairy. :-) Thank you. > > > > Regards, > Doug Hugh From sroberts at uniserve.com Sat Jul 29 16:36:56 2006 From: sroberts at uniserve.com (Sam Roberts) Date: Sat, 29 Jul 2006 13:36:56 -0700 Subject: oddity with method called "end?" Message-ID: <20060729203656.GA575@ensemble.local> Fyi, I think the ? isn't seen as part of the method name: class Foo def end? end end Cheers, Sam From dougkearns at gmail.com Sun Jul 30 04:34:27 2006 From: dougkearns at gmail.com (Doug Kearns) Date: Sun, 30 Jul 2006 18:34:27 +1000 Subject: oddity with method called "end?" In-Reply-To: <20060729203656.GA575@ensemble.local> References: <20060729203656.GA575@ensemble.local> Message-ID: <20060730083427.GC2663@localhost.localdomain> On Sat, Jul 29, 2006 at 01:36:56PM -0700, Sam Roberts wrote: > Fyi, I think the ? isn't seen as part of the method name: > > class Foo > def end? > end > end I assume this is a problem with the syntax highlighting? If so, I can't see how this would be possible. Is there some context missing from the example? Thanks, Doug From now at bitwi.se Mon Aug 14 17:10:39 2006 From: now at bitwi.se (Nikolai Weibull) Date: Mon, 14 Aug 2006 23:10:39 +0200 Subject: A slight improvement to syntax/eruby.vim Message-ID: Here's a totally lame non-patch for syntax/eruby.vim: syn region erubyBlock matchgroup=erubyDelimiter start="<%%\@!-\=" end="-\=%>" contains=@rubyTop containedin=ALLBUT, at erubyRegions syn region erubyExpression matchgroup=erubyDelimiter start="<%=" end="-\=%>" contains=@rubyTop containedin=ALLBUT, at erubyRegions syn region erubyComment matchgroup=erubyDelimiter start="<%#" end="-\=%>" contains=rubyTodo, at Spell containedin=ALLBUT, at erubyRegions keepend One may specify the "trim mode" to be, well, "trim" using "-" on the delimiters. nikolai