From dougkearns at gmail.com Mon Oct 3 23:27:06 2005 From: dougkearns at gmail.com (Doug Kearns) Date: Tue, 4 Oct 2005 13:27:06 +1000 Subject: Vim 6.4 Message-ID: <20051004032705.GH3719@localhost.localdomain> Does anyone have anything that needs to be included in next week's release of Vim 6.4? Thanks, Doug From mailing-lists.vim-ruby-development at rawuncut.elitemail.org Tue Oct 4 04:47:20 2005 From: mailing-lists.vim-ruby-development at rawuncut.elitemail.org (Nikolai Weibull) Date: Tue, 4 Oct 2005 10:47:20 +0200 Subject: Vim 6.4 In-Reply-To: <20051004032705.GH3719@localhost.localdomain> References: <20051004032705.GH3719@localhost.localdomain> Message-ID: <20051004084720.GA8859@puritan.pnetwork> Doug Kearns wrote: > Does anyone have anything that needs to be included in next week's > release of Vim 6.4? No. Please make sure that it gets in this time, as I really don't want to see more "Poor indenting in Vim" threads on ruby-talk ;-), nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);} From dougkearns at gmail.com Tue Oct 4 04:48:23 2005 From: dougkearns at gmail.com (Doug Kearns) Date: Tue, 4 Oct 2005 18:48:23 +1000 Subject: Vim 6.4 In-Reply-To: <20051004084720.GA8859@puritan.pnetwork> References: <20051004032705.GH3719@localhost.localdomain> <20051004084720.GA8859@puritan.pnetwork> Message-ID: <20051004084823.GA8358@localhost.localdomain> On Tue, Oct 04, 2005 at 10:47:20AM +0200, Nikolai Weibull wrote: > Doug Kearns wrote: > > > Does anyone have anything that needs to be included in next week's > > release of Vim 6.4? > > No. I'll probably make a minor release today or tomorrow and send that up to Bram. > Please make sure that it gets in this time, as I really don't want > to see more "Poor indenting in Vim" threads on ruby-talk ;-), I bet there were more "Vim Syntax Highlighting Broken" threads. ;-) He already has the latest release... Regards, Doug From hgs at dmu.ac.uk Tue Oct 4 05:14:26 2005 From: hgs at dmu.ac.uk (Hugh Sasse) Date: Tue, 4 Oct 2005 10:14:26 +0100 (WEST) Subject: Vim 6.4 In-Reply-To: <20051004084823.GA8358@localhost.localdomain> References: <20051004032705.GH3719@localhost.localdomain> <20051004084720.GA8859@puritan.pnetwork> <20051004084823.GA8358@localhost.localdomain> Message-ID: On Tue, 4 Oct 2005, Doug Kearns wrote: > On Tue, Oct 04, 2005 at 10:47:20AM +0200, Nikolai Weibull wrote: >> Doug Kearns wrote: >> >>> Does anyone have anything that needs to be included in next week's >>> release of Vim 6.4? >> >> No. > > I'll probably make a minor release today or tomorrow and send that up to > Bram. Thank you. I can't think of any additions that we need. [I'm glad there's to be a 6.4, I thought things were steaming towards 7, and I'm not so ready to take on all the new stuff a major release implies just now :-)] > >> Please make sure that it gets in this time, as I really don't want >> to see more "Poor indenting in Vim" threads on ruby-talk ;-), > > I bet there were more "Vim Syntax Highlighting Broken" threads. ;-) > > He already has the latest release... > > Regards, > Doug Thank you, Hugh From dougkearns at gmail.com Wed Oct 5 09:45:02 2005 From: dougkearns at gmail.com (Doug Kearns) Date: Wed, 5 Oct 2005 23:45:02 +1000 Subject: ANN: New stable release - 2005.10.05 Message-ID: <20051005134501.GB2790@localhost.localdomain> I've just sent up vim-ruby-2005.10.05. Regards, Doug From hgs at dmu.ac.uk Wed Oct 5 19:52:48 2005 From: hgs at dmu.ac.uk (Hugh Sasse) Date: Thu, 6 Oct 2005 00:52:48 +0100 (WEST) Subject: ANN: New stable release - 2005.10.05 In-Reply-To: <20051005134501.GB2790@localhost.localdomain> References: <20051005134501.GB2790@localhost.localdomain> Message-ID: On Wed, 5 Oct 2005, Doug Kearns wrote: > I've just sent up vim-ruby-2005.10.05. I've been trying this out and have come to the followint conclusion. In the ftdetect files you have " eRuby au BufNewFile,BufRead *.rhtml setf eruby I think that line should be: au BufNewFile,BufRead *.rhtml,*.erb set ft=eruby Normally avoiding setf would be wrong, because :he setf says it is to prevent the filetype being set several times when sorting out the syntax etc. [However, ideally for eruby files you still want the native syntax (whatever that happens to be) to still work.] With vim/scripts.vim there is a did_filetype() call which, unless the filetype has been set, causes scripts.vim to exit. Using setf instead of set filetype means that did_filetype "thinks" filetype has not been set, so overrides any decisions we have made up to now, setting, in my case, the filetype straight XML by examining the file's contents. .erb doesn't seem to be allocated to anything else. What I can't figure out is whether one can properly support two syntaxes at the same time as per my statement in [] above. Why would you want to? Well, see for example page 93 of "Code Generation in Action" by Jack Herrington [ISBN 1-930110-97-9] (and other examples therein) where ERB is being used to generate lots of repetitive C++ data structures. You'd want the C++ syntax to be correcly highlighted as well as the embedded ruby, if possible. [For completeness the website is at: http://www.codegeneration.net/cgia/ , but I don't see many examples of the use of eruby with C++ there.] I'm not seeing much on the net to point you at either -- any idea how to make Google do what we want with "C++" instead of treating it as C? Hugh From dougkearns at gmail.com Thu Oct 6 08:13:43 2005 From: dougkearns at gmail.com (Doug Kearns) Date: Thu, 6 Oct 2005 22:13:43 +1000 Subject: ANN: New stable release - 2005.10.05 In-Reply-To: References: <20051005134501.GB2790@localhost.localdomain> Message-ID: <20051006121343.GA4931@localhost.localdomain> G'day Hugh, On Thu, Oct 06, 2005 at 12:52:48AM +0100, Hugh Sasse wrote: > On Wed, 5 Oct 2005, Doug Kearns wrote: > > > I've just sent up vim-ruby-2005.10.05. > > I've been trying this out and have come to the followint conclusion. > > In the ftdetect files you have > " eRuby > au BufNewFile,BufRead *.rhtml setf eruby > > I think that line should be: > > au BufNewFile,BufRead *.rhtml,*.erb set ft=eruby Yes. I fixed this on 16/09/05. Have you not picked up the change as part of the past few releases? > Normally avoiding setf would be wrong, because :he setf says it is > to prevent the filetype being set several times when sorting out the > syntax etc. [However, ideally for eruby files you still want the > native syntax (whatever that happens to be) to still work.] With > vim/scripts.vim there is a did_filetype() call which, unless the > filetype has been set, causes scripts.vim to exit. Using setf > instead of set filetype means that did_filetype "thinks" filetype > has not been set, so overrides any decisions we have made up to now, > setting, in my case, the filetype straight XML by examining the > file's contents. Yes, that's my understanding as well. This should be working with the current release. > .erb doesn't seem to be allocated to anything else. I've left this out for the moment since I want to detect the 'host' language for these *.erb files. From my initial investigations it appears that it's safe enough to assume that *.rhtml is simply (X)HTML with embedded Ruby. However, *.erb could be anything so I've decided to just handle the *.rhtml files for now. Do you think we should include it for 6.4; especially if the behaviour is going to change? I'm assuming, at the moment, the biggest users of this eRuby support will be/are RoRs people who seem to use *.rhtml exclusively. I'm not sure users who are using *.erb files for other purposes will be too keen on having them open up with HTML highlighting. > What I can't figure out is whether one can properly support two > syntaxes at the same time as per my statement in [] above. It should be possible to dynamically merge them, in much the same way as the existing eruby syntax file does, provided we can determine the host filetype for non-HTML hosted eRuby files. If the file is named *.erb we'd need some way to determine the host filetype? If the file is named as per usual then we'd need some way to specify that it contains eRuby? We could add a script to ftdetect/ruby.vim which simply looks for <% %> regions. Then we'd need to think about merging ftplugins etc. This still isn't quite right for *.rhtml yet either. > would you want to? Well, see for example page 93 of "Code > Generation in Action" by Jack Herrington [ISBN 1-930110-97-9] > (and other examples therein) where ERB is being used to generate > lots of repetitive C++ data structures. You'd want the C++ syntax > to be correcly highlighted as well as the embedded ruby, if > possible. [For completeness the website is at: > > http://www.codegeneration.net/cgia/ > > , but I don't see many examples of the use of eruby with C++ there.] Yes, eRuby seems like a reasonable templating solution so I expect that its uses are varied. > I'm not seeing much on the net to point you at either -- any idea > how to make Google do what we want with "C++" instead of treating it > as C? "C++" - actually in quotes should work. Thanks, Doug From hgs at dmu.ac.uk Thu Oct 6 09:22:53 2005 From: hgs at dmu.ac.uk (Hugh Sasse) Date: Thu, 6 Oct 2005 14:22:53 +0100 (WEST) Subject: ANN: New stable release - 2005.10.05 In-Reply-To: <20051006121343.GA4931@localhost.localdomain> References: <20051005134501.GB2790@localhost.localdomain> <20051006121343.GA4931@localhost.localdomain> Message-ID: On Thu, 6 Oct 2005, Doug Kearns wrote: > G'day Hugh, > > On Thu, Oct 06, 2005 at 12:52:48AM +0100, Hugh Sasse wrote: >> On Wed, 5 Oct 2005, Doug Kearns wrote: >> >>> I've just sent up vim-ruby-2005.10.05. >> >> I've been trying this out and have come to the followint conclusion. >> >> In the ftdetect files you have >> " eRuby >> au BufNewFile,BufRead *.rhtml setf eruby >> >> I think that line should be: >> >> au BufNewFile,BufRead *.rhtml,*.erb set ft=eruby > > Yes. I fixed this on 16/09/05. Have you not picked up the change as part > of the past few releases? Well, I've not kept up with all the mods to CVS, but on my Unix box that is right, on the XP box I tested last night it isn't. Which is odd, because I re-installed gvim-6.3 from cold and then added the new ruby vim files. OK, I don't know what happened, but I'm now convinced that it was something I've botched because your distro for October 5th has filetype, not setf. I've just checked that to be certain. Some gremlin somewhere, and since I was doing this after midnight, the metaphor is appropriate. >> Normally avoiding setf would be wrong, because :he setf says it is >> to prevent the filetype being set several times when sorting out the >> syntax etc. [However, ideally for eruby files you still want the >> native syntax (whatever that happens to be) to still work.] With >> vim/scripts.vim there is a did_filetype() call which, unless the >> filetype has been set, causes scripts.vim to exit. Using setf >> instead of set filetype means that did_filetype "thinks" filetype >> has not been set, so overrides any decisions we have made up to now, >> setting, in my case, the filetype straight XML by examining the >> file's contents. > > Yes, that's my understanding as well. This should be working with the > current release. I'm sure I've botched this now, but I've not figured out how yet. > >> .erb doesn't seem to be allocated to anything else. > > I've left this out for the moment since I want to detect the 'host' > language for these *.erb files. From my initial investigations it Good point, but I'm not sure if 2 languages are supported... > appears that it's safe enough to assume that *.rhtml is simply (X)HTML > with embedded Ruby. However, *.erb could be anything so I've decided to > just handle the *.rhtml files for now. > > Do you think we should include it for 6.4; especially if the behaviour > is going to change? I'm assuming, at the moment, the biggest users of What is going to change about it? I'm not fully up to date with vim activities (and am hoping for some speed improvements in 6.4 but am not sure how to lookup if they will happen) > this eRuby support will be/are RoRs people who seem to use *.rhtml > exclusively. I'm not sure users who are using *.erb files for other > purposes will be too keen on having them open up with HTML highlighting. OOPS! Yes erb files need their own entry, then. > >> What I can't figure out is whether one can properly support two >> syntaxes at the same time as per my statement in [] above. > > It should be possible to dynamically merge them, in much the same way as > the existing eruby syntax file does, provided we can determine the host > filetype for non-HTML hosted eRuby files. > > If the file is named *.erb we'd need some way to determine the host > filetype? Yes, which scripts.vim does when setf is used. As far as I can tell from fiddling with setf vs set filetype, and from the docs. With so much happening at startup I don't pretend to fully understand the process. > > If the file is named as per usual then we'd need some way to specify > that it contains eRuby? We could add a script to ftdetect/ruby.vim which > simply looks for <% %> regions. Except that PHP uses those as well. Will Ruby and PHP ever bang into eachother in a file? Maybe someone is using ERB to do code generation for PHP. [I'm glad I'm not, the escaping would be a nightmare in itself.] > > Then we'd need to think about merging ftplugins etc. This still isn't > quite right for *.rhtml yet either. It is certainly tricky. > >> would you want to? Well, see for example page 93 of "Code >> Generation in Action" by Jack Herrington [ISBN 1-930110-97-9] >> (and other examples therein) where ERB is being used to generate >> lots of repetitive C++ data structures. You'd want the C++ syntax >> to be correcly highlighted as well as the embedded ruby, if >> possible. [For completeness the website is at: >> >> http://www.codegeneration.net/cgia/ >> >> , but I don't see many examples of the use of eruby with C++ there.] > > Yes, eRuby seems like a reasonable templating solution so I expect that > its uses are varied. > >> I'm not seeing much on the net to point you at either -- any idea >> how to make Google do what we want with "C++" instead of treating it >> as C? > > "C++" - actually in quotes should work. thanks. > > Thanks, > Doug > Thank you, Hugh From r.mark.volkmann at gmail.com Tue Oct 11 15:41:11 2005 From: r.mark.volkmann at gmail.com (Mark Volkmann) Date: Tue, 11 Oct 2005 14:41:11 -0500 Subject: installing vim-ruby Message-ID: Here's what I did to install vim-ruby. gem install vim-ruby ruby vim-ruby-install.rb (from my RUBY_HOME/bin directory) I don't get errors from either of these. I have the following in my .vimrc file (_vimrc under Windows). set nocompatible " We're running Vim, not Vi! syntax on " Enable syntax highlighting filetype on " Enable filetype detection filetype indent on " Enable filetype-specific indenting filetype plugin on " Enable filetype-specific plugins When I start a new vim session and edit a .rb file, it doesn't appear to have vim-ruby features enabled. For example, when I enter "if name == "John" and press shift-Enter, it moves to the next line and indents two spaces, but it does not add "end" to the subsequent line. I've tried this under both Windows and Fedora Core 4 Linux and get the same result. Under Linux in my ~/.vim directory I have compiler eruby.vim rubyunit.vim ruby.vim ftdetect ruby.vim ftplugin eruby.vim ruby.vim indent eruby.vim ruby.vim syntax eruby.vim ruby.vim Am I missing a step to get vim-ruby installed correctly? -- R. Mark Volkmann Partner, Object Computing, Inc. From mailing-lists.vim-ruby-development at rawuncut.elitemail.org Wed Oct 12 04:42:31 2005 From: mailing-lists.vim-ruby-development at rawuncut.elitemail.org (Nikolai Weibull) Date: Wed, 12 Oct 2005 10:42:31 +0200 Subject: installing vim-ruby In-Reply-To: References: Message-ID: <20051012084231.GA31146@puritan.pnetwork> Mark Volkmann wrote: > Here's what I did to install vim-ruby. > > gem install vim-ruby > ruby vim-ruby-install.rb (from my RUBY_HOME/bin directory) > > I don't get errors from either of these. Hooray. > I have the following in my .vimrc file (_vimrc under Windows). > > set nocompatible " We're running Vim, not Vi! 'compatible' is unset by default if you run vim or gvim (i.e., when sourcing .vimrc or .gvimrc - or _vimrc, :h 'compatible' for more information). > syntax on " Enable syntax highlighting > filetype on " Enable filetype detection > filetype indent on " Enable filetype-specific indenting > filetype plugin on " Enable filetype-specific plugins The last three can be written as filetype plugin indent on > When I start a new vim session and edit a .rb file, it doesn't appear > to have vim-ruby features enabled. For example, when I enter "if name > == "John" and press shift-Enter, it moves to the next line and indents > two spaces, but it does not add "end" to the subsequent line. How is that an example of what vim-ruby should do? The Shift-Enter auto-completion code isn?t in vim-ruby. That?s something Pit Captain has added to the rubygarden wiki so that you can added to your own ~/.vim/(after/)?ftplugin/ruby.vim if you want to. Here?s an even sweeter binding that I use in my ~/.vim/after/ftplugin/ruby.vim: inoremap :call CompleteStatement() function! s:CompleteStatement() " TODO: we can check contents of ". register to make sure that they were " inserted while typing here... if getline('.') =~ '^\s*\%(begin\|case\|class\|def\|for\|if\|module\|unless\|until\|while\)\>\|do\%(\s*|[^|]*|\s*\)\=$' let n = indent('.') let ind = '' let i = 0 while i < n let ind .= ' ' let i += 1 endwhile call append(line('.'), ind . 'end') endif endfunction > Am I missing a step to get vim-ruby installed correctly? No, but you can?t expect it to do stuff not advertised, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);} From dougkearns at gmail.com Wed Oct 12 06:01:07 2005 From: dougkearns at gmail.com (Doug Kearns) Date: Wed, 12 Oct 2005 20:01:07 +1000 Subject: Indenting here documents (was Re: [ANN] Vim/Ruby Configuration Files, 2005.10.05) In-Reply-To: <20051011142624.GC9178@puritan.pnetwork> References: <20051005134544.GC2790@localhost.localdomain> <20051011142624.GC9178@puritan.pnetwork> Message-ID: <20051012100107.GC31546@localhost.localdomain> On Tue, Oct 11, 2005 at 11:26:28PM +0900, Nikolai Weibull wrote: > Huh? The indentation doesn?t indent multiline strings, so if you have > > print < "Blah" > EOF > > it should leave everything were you put it. It doesn't seem to: if true print < Regards, Doug From mailing-lists.vim-ruby-development at rawuncut.elitemail.org Wed Oct 12 07:56:02 2005 From: mailing-lists.vim-ruby-development at rawuncut.elitemail.org (Nikolai Weibull) Date: Wed, 12 Oct 2005 13:56:02 +0200 Subject: Indenting here documents (was Re: [ANN] Vim/Ruby Configuration Files, 2005.10.05) In-Reply-To: <20051012100107.GC31546@localhost.localdomain> References: <20051005134544.GC2790@localhost.localdomain> <20051011142624.GC9178@puritan.pnetwork> <20051012100107.GC31546@localhost.localdomain> Message-ID: <20051012115602.GE32426@puritan.pnetwork> Doug Kearns wrote: > if true > print < "Blah" > EOF > end > Problem with regular expressions and syntax group names (fixed in CVS) (Fuck, I forgot to update the ChangeLog again...), nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);} From hgs at dmu.ac.uk Wed Oct 12 09:05:19 2005 From: hgs at dmu.ac.uk (Hugh Sasse) Date: Wed, 12 Oct 2005 14:05:19 +0100 (WEST) Subject: Indenting here documents (was Re: [ANN] Vim/Ruby Configuration Files, 2005.10.05) In-Reply-To: <20051012115602.GE32426@puritan.pnetwork> References: <20051005134544.GC2790@localhost.localdomain> <20051011142624.GC9178@puritan.pnetwork> <20051012100107.GC31546@localhost.localdomain> <20051012115602.GE32426@puritan.pnetwork> Message-ID: On Wed, 12 Oct 2005, Nikolai Weibull wrote: > Doug Kearns wrote: > > > if true > > print < > "Blah" > > EOF > > end > > > > Problem with regular expressions and syntax group names (fixed in CVS) > (Fuck, I forgot to update the ChangeLog again...), > nikolai Thank you for this. Can we get this into the 6.4 distro, please? Thank you, Hugh From dougkearns at gmail.com Wed Oct 12 09:03:57 2005 From: dougkearns at gmail.com (Doug Kearns) Date: Wed, 12 Oct 2005 23:03:57 +1000 Subject: installing vim-ruby In-Reply-To: References: Message-ID: <20051012130357.GA21600@localhost.localdomain> G'day Mark, On Tue, Oct 11, 2005 at 02:41:11PM -0500, Mark Volkmann wrote: > When I start a new vim session and edit a .rb file, it doesn't appear > to have vim-ruby features enabled. For example, when I enter "if name > == "John" and press shift-Enter, it moves to the next line and indents > two spaces, but it does not add "end" to the subsequent line. As Nikolai has pointed out this is not yet included with the distributed files. Are you particularly interested in this sort of functionality being included or were you just testing the installation? I ask because I'd be happy to add these sorts of helper functions but as I don't use them myself I'd probably need a nudge. ;-) Regards, Doug From dougkearns at gmail.com Wed Oct 12 09:08:44 2005 From: dougkearns at gmail.com (Doug Kearns) Date: Wed, 12 Oct 2005 23:08:44 +1000 Subject: Indenting here documents (was Re: [ANN] Vim/Ruby Configuration Files, 2005.10.05) In-Reply-To: References: <20051005134544.GC2790@localhost.localdomain> <20051011142624.GC9178@puritan.pnetwork> <20051012100107.GC31546@localhost.localdomain> <20051012115602.GE32426@puritan.pnetwork> Message-ID: <20051012130844.GB21600@localhost.localdomain> On Wed, Oct 12, 2005 at 02:05:19PM +0100, Hugh Sasse wrote: > On Wed, 12 Oct 2005, Nikolai Weibull wrote: > > > Doug Kearns wrote: > > > > > if true > > > print < > > "Blah" > > > EOF > > > end > > > > > > > Problem with regular expressions and syntax group names (fixed in CVS) > > (Fuck, I forgot to update the ChangeLog again...), > > nikolai > > Thank you for this. Can we get this into the 6.4 distro, please? Yes, I'll bump it up to Bram. Nikolai, are you sure it hasn't broken anything? Thanks, Doug From gsinclair at gmail.com Wed Oct 12 09:35:23 2005 From: gsinclair at gmail.com (Gavin Sinclair) Date: Wed, 12 Oct 2005 23:35:23 +1000 Subject: Documentation update Message-ID: Hi folks, I thought it might be time to update the documentation for this project, and get everything a user needs into the homepage (http://vim-ruby.rubyforge.org). At the same time, I'd review the wiki pages. So can people suggest what should go in the "one consolidated document"? Pretend I know nothing about the project and suggest _anything_. Thanks, Gavin From dougkearns at gmail.com Wed Oct 12 09:29:04 2005 From: dougkearns at gmail.com (Doug Kearns) Date: Wed, 12 Oct 2005 23:29:04 +1000 Subject: Indenting here documents (was Re: [ANN] Vim/Ruby Configuration Files, 2005.10.05) In-Reply-To: References: <20051005134544.GC2790@localhost.localdomain> <20051011142624.GC9178@puritan.pnetwork> <20051012100107.GC31546@localhost.localdomain> <20051012115602.GE32426@puritan.pnetwork> Message-ID: <20051012132904.GC21600@localhost.localdomain> On Wed, Oct 12, 2005 at 02:05:19PM +0100, Hugh Sasse wrote: > On Wed, 12 Oct 2005, Nikolai Weibull wrote: > > > Doug Kearns wrote: > > > > > if true > > > print < > > "Blah" > > > EOF > > > end > > > > > > > Problem with regular expressions and syntax group names (fixed in CVS) > > (Fuck, I forgot to update the ChangeLog again...), > > nikolai > > Thank you for this. Can we get this into the 6.4 distro, please? Is this fixed for you Hugh? I'm still getting the EOF indented... Regards, Doug From hgs at dmu.ac.uk Wed Oct 12 10:38:23 2005 From: hgs at dmu.ac.uk (Hugh Sasse) Date: Wed, 12 Oct 2005 15:38:23 +0100 (WEST) Subject: Indenting here documents (was Re: [ANN] Vim/Ruby Configuration Files, 2005.10.05) In-Reply-To: <20051012132904.GC21600@localhost.localdomain> References: <20051005134544.GC2790@localhost.localdomain> <20051011142624.GC9178@puritan.pnetwork> <20051012100107.GC31546@localhost.localdomain> <20051012115602.GE32426@puritan.pnetwork> <20051012132904.GC21600@localhost.localdomain> Message-ID: On Wed, 12 Oct 2005, Doug Kearns wrote: > On Wed, Oct 12, 2005 at 02:05:19PM +0100, Hugh Sasse wrote: > > On Wed, 12 Oct 2005, Nikolai Weibull wrote: > > > > > Doug Kearns wrote: > > > > > > > if true > > > > print < > > > "Blah" > > > > EOF > > > > end > > > > > > > > > > Problem with regular expressions and syntax group names (fixed in CVS) > > > (Fuck, I forgot to update the ChangeLog again...), > > > nikolai > > > > Thank you for this. Can we get this into the 6.4 distro, please? > > Is this fixed for you Hugh? I'm still getting the EOF indented... It is working for me in so far as it will leave the EOF where I put it. If it starts out (incorrectly) indented it will remain indented. If everything is left-justified (all lines start in column 1 (pausing only to fend off a FORTRAN programmer!)) then the EOF and the quoted text gets left in column 1 and the rest gets indented correctly. Of course, it would be lovely if it were able to figure out, with reference to the << and the <<- what should actually happen, but this is much better than before because indenting doesn't break stuff that works. Since I can't figure out how to do the ideal, this is enough to make me happy. > > Regards, > Doug Thank you, Hugh From mailing-lists.vim-ruby-development at rawuncut.elitemail.org Wed Oct 12 11:31:28 2005 From: mailing-lists.vim-ruby-development at rawuncut.elitemail.org (Nikolai Weibull) Date: Wed, 12 Oct 2005 17:31:28 +0200 Subject: installing vim-ruby In-Reply-To: <20051012130357.GA21600@localhost.localdomain> References: <20051012130357.GA21600@localhost.localdomain> Message-ID: <20051012153128.GH32426@puritan.pnetwork> Doug Kearns wrote: > I ask because I'd be happy to add these sorts of helper functions but as > I don't use them myself I'd probably need a nudge. ;-) I think that we should ask Bram about this. There should be some standard way of disabling/enabling this on a global scale and on a filetype scale, i.e., behind some if exists("...") test or some such, perhaps if exists("g:electric_keys") or exists("g:ruby_electric_keys") ... endif Something along those lines, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);} From mailing-lists.vim-ruby-development at rawuncut.elitemail.org Wed Oct 12 11:32:49 2005 From: mailing-lists.vim-ruby-development at rawuncut.elitemail.org (Nikolai Weibull) Date: Wed, 12 Oct 2005 17:32:49 +0200 Subject: Indenting here documents (was Re: [ANN] Vim/Ruby Configuration Files, 2005.10.05) In-Reply-To: <20051012130844.GB21600@localhost.localdomain> References: <20051005134544.GC2790@localhost.localdomain> <20051011142624.GC9178@puritan.pnetwork> <20051012100107.GC31546@localhost.localdomain> <20051012115602.GE32426@puritan.pnetwork> <20051012130844.GB21600@localhost.localdomain> Message-ID: <20051012153249.GI32426@puritan.pnetwork> Doug Kearns wrote: > > > Problem with regular expressions and syntax group names (fixed in CVS) > > Thank you for this. Can we get this into the 6.4 distro, please? > Nikolai, are you sure it hasn't broken anything? No. But I can?t see how. I don?t understand why the StringDelimiter weren?t in those regexes. I know that they weren?t for a reason, but I think that that was only legacy stuff for when my indenting code wasn?t as simple as it is now, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);} From mailing-lists.vim-ruby-development at rawuncut.elitemail.org Wed Oct 12 11:34:55 2005 From: mailing-lists.vim-ruby-development at rawuncut.elitemail.org (Nikolai Weibull) Date: Wed, 12 Oct 2005 17:34:55 +0200 Subject: Indenting here documents (was Re: [ANN] Vim/Ruby Configuration Files, 2005.10.05) In-Reply-To: References: <20051005134544.GC2790@localhost.localdomain> <20051011142624.GC9178@puritan.pnetwork> <20051012100107.GC31546@localhost.localdomain> <20051012115602.GE32426@puritan.pnetwork> <20051012132904.GC21600@localhost.localdomain> Message-ID: <20051012153455.GJ32426@puritan.pnetwork> Hugh Sasse wrote: > It is working for me in so far as it will leave the EOF where I put > it. If it starts out (incorrectly) indented it will remain indented. If > everything is left-justified (all lines start in column 1 (pausing > only to fend off a FORTRAN programmer!)) then the EOF and the quoted > text gets left in column 1 and the rest gets indented correctly. Of > course, it would be lovely if it were able to figure out, with > reference to the << and the <<- what should actually happen, but > this is much better than before because indenting doesn't break > stuff that works. Since I can't figure out how to do the ideal, > this is enough to make me happy. Yes, the indentation code leaves all strings as they were. It simple returns the indent("."). There?s really no other way of doing it without a lot of messing about. I mean, a user has probably indented a string the way they have for a reason. The indentation code isn?t meant to work for stuff that has had all its indentation removed. (Where do you get these files without indentation anyway?), nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);} From hgs at dmu.ac.uk Wed Oct 12 12:01:08 2005 From: hgs at dmu.ac.uk (Hugh Sasse) Date: Wed, 12 Oct 2005 17:01:08 +0100 (WEST) Subject: Indenting here documents (was Re: [ANN] Vim/Ruby Configuration Files, 2005.10.05) In-Reply-To: <20051012153455.GJ32426@puritan.pnetwork> References: <20051005134544.GC2790@localhost.localdomain> <20051011142624.GC9178@puritan.pnetwork> <20051012100107.GC31546@localhost.localdomain> <20051012115602.GE32426@puritan.pnetwork> <20051012132904.GC21600@localhost.localdomain> <20051012153455.GJ32426@puritan.pnetwork> Message-ID: On Wed, 12 Oct 2005, Nikolai Weibull wrote: > > Hugh Sasse wrote: > > > It is working for me in so far as it will leave the EOF where I put > > it. If it starts out (incorrectly) indented it will remain indented. If > > everything is left-justified (all lines start in column 1 (pausing [...] > > this is much better than before because indenting doesn't break > > stuff that works. Since I can't figure out how to do the ideal, > > this is enough to make me happy. > > Yes, the indentation code leaves all strings as they were. It simple > returns the indent("."). There’s really no other way of doing it > without a lot of messing about. I mean, a user has probably indented a Well, as I said, I'm not up to doing that messing about. This doesn't break working code now, so I'm happy. Thank you. > string the way they have for a reason. The indentation code isn’t meant > to work for stuff that has had all its indentation removed. (Where do > you get these files without indentation anyway?), I don't get them usually, but I was stress testing it, and it performed very well. My remarks about it not doing "the ideal" were really to explain to Doug about what wasn't happening, because his test failed, and that might have been due to his expectations, rather than an actual failure. > nikolai Thank you, Hugh From dougkearns at gmail.com Wed Oct 12 12:03:20 2005 From: dougkearns at gmail.com (Doug Kearns) Date: Thu, 13 Oct 2005 02:03:20 +1000 Subject: Indenting here documents (was Re: [ANN] Vim/Ruby Configuration Files, 2005.10.05) In-Reply-To: References: <20051005134544.GC2790@localhost.localdomain> <20051011142624.GC9178@puritan.pnetwork> <20051012100107.GC31546@localhost.localdomain> <20051012115602.GE32426@puritan.pnetwork> <20051012132904.GC21600@localhost.localdomain> Message-ID: <20051012160319.GA30885@localhost.localdomain> On Wed, Oct 12, 2005 at 03:38:23PM +0100, Hugh Sasse wrote: > Since I can't figure out how to do the ideal, > this is enough to make me happy. OK, I've forwarded this on to BM. Nikolai, if something turns up over night (for me) please bump it on up to Bram. Thanks, Doug From mailing-lists.vim-ruby-development at rawuncut.elitemail.org Wed Oct 12 13:35:01 2005 From: mailing-lists.vim-ruby-development at rawuncut.elitemail.org (Nikolai Weibull) Date: Wed, 12 Oct 2005 19:35:01 +0200 Subject: Indenting here documents (was Re: [ANN] Vim/Ruby Configuration Files, 2005.10.05) In-Reply-To: <20051012160319.GA30885@localhost.localdomain> References: <20051005134544.GC2790@localhost.localdomain> <20051011142624.GC9178@puritan.pnetwork> <20051012100107.GC31546@localhost.localdomain> <20051012115602.GE32426@puritan.pnetwork> <20051012132904.GC21600@localhost.localdomain> <20051012160319.GA30885@localhost.localdomain> Message-ID: <20051012173501.GB3258@puritan.pnetwork> Doug Kearns wrote: > On Wed, Oct 12, 2005 at 03:38:23PM +0100, Hugh Sasse wrote: > > Since I can't figure out how to do the ideal, this is enough to make > > me happy. > OK, I've forwarded this on to BM. > Nikolai, if something turns up over night (for me) please bump it on > up to Bram. ACK, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);} From r.mark.volkmann at gmail.com Wed Oct 12 15:44:13 2005 From: r.mark.volkmann at gmail.com (Mark Volkmann) Date: Wed, 12 Oct 2005 14:44:13 -0500 Subject: installing vim-ruby In-Reply-To: <20051012130357.GA21600@localhost.localdomain> References: <20051012130357.GA21600@localhost.localdomain> Message-ID: On 10/12/05, Doug Kearns wrote: > G'day Mark, > > On Tue, Oct 11, 2005 at 02:41:11PM -0500, Mark Volkmann wrote: > > > > > When I start a new vim session and edit a .rb file, it doesn't appear > > to have vim-ruby features enabled. For example, when I enter "if name > > == "John" and press shift-Enter, it moves to the next line and indents > > two spaces, but it does not add "end" to the subsequent line. > > As Nikolai has pointed out this is not yet included with the distributed > files. Are you particularly interested in this sort of functionality > being included or were you just testing the installation? Both. I was reading quickly when I saw that functionality described at http://rubygarden.com/ruby?VimRubySupport. I incorrectly assumed that it was describing customizations to vim provided by vim-ruby. I understand now that it was describing customizations beyond what vim-ruby provides. I think it would be nice if each release of vim-ruby had a version number associated with it and there was a vim command you could run to find out what version you have ... like running "ruby -v" to find out what version of Ruby is installed. Maybe there's already a way to do that and I just haven't stumbled across it. Is there a web page that provides a complete list of the features that vim-ruby provides? -- R. Mark Volkmann Partner, Object Computing, Inc. From hgs at dmu.ac.uk Wed Oct 12 16:50:14 2005 From: hgs at dmu.ac.uk (Hugh Sasse) Date: Wed, 12 Oct 2005 21:50:14 +0100 (WEST) Subject: Indenting here documents (was Re: [ANN] Vim/Ruby Configuration Files, 2005.10.05) In-Reply-To: <20051012153455.GJ32426@puritan.pnetwork> References: <20051005134544.GC2790@localhost.localdomain> <20051011142624.GC9178@puritan.pnetwork> <20051012100107.GC31546@localhost.localdomain> <20051012115602.GE32426@puritan.pnetwork> <20051012132904.GC21600@localhost.localdomain> <20051012153455.GJ32426@puritan.pnetwork> Message-ID: On Wed, 12 Oct 2005, Nikolai Weibull wrote: > [...] The indentation code isn’t meant > to work for stuff that has had all its indentation removed. (Where do > you get these files without indentation anyway?), Ruby-Talk:160269 would be one source, I suppose :-) :-) > nikolai Thank you, Hugh From gsinclair at gmail.com Wed Oct 12 17:42:57 2005 From: gsinclair at gmail.com (Gavin Sinclair) Date: Thu, 13 Oct 2005 07:42:57 +1000 Subject: installing vim-ruby In-Reply-To: References: <20051012130357.GA21600@localhost.localdomain> Message-ID: On 10/13/05, Mark Volkmann wrote: > I think it would be nice if each release of vim-ruby had a version > number associated with it and there was a vim command you could run to > find out what version you have ... like running "ruby -v" to find out > what version of Ruby is installed. Maybe there's already a way to do > that and I just haven't stumbled across it. There's probably no way at present. Something to consider. > Is there a web page that provides a complete list of the features that > vim-ruby provides? I hope to provide that at http://vim-ruby-rubyforge.org after a documentation overhaul. Gavin From dougkearns at gmail.com Thu Oct 13 09:43:51 2005 From: dougkearns at gmail.com (Doug Kearns) Date: Thu, 13 Oct 2005 23:43:51 +1000 Subject: License Message-ID: <20051013134351.GB30885@localhost.localdomain> Does anyone have any objections to releasing these files under of the Vim license rather than the GPL? As Nikolai predicted Bram would prefer it. I don't actually remember the reason this occurred... Thanks, Doug From hgs at dmu.ac.uk Thu Oct 13 10:36:57 2005 From: hgs at dmu.ac.uk (Hugh Sasse) Date: Thu, 13 Oct 2005 15:36:57 +0100 (WEST) Subject: License In-Reply-To: <20051013134351.GB30885@localhost.localdomain> References: <20051013134351.GB30885@localhost.localdomain> Message-ID: On Thu, 13 Oct 2005, Doug Kearns wrote: > Does anyone have any objections to releasing these files under of the > Vim license rather than the GPL? Not sure about "rather than" -- "both" makes sense, but if something's GPL'd doesn't it get the RMS::Freedom meme tag that means it can't be un-GPL'd? [An infinite number of licence lawyers with an infinite number of keyboards....wouldn't help] > > As Nikolai predicted Bram would prefer it. > > I don't actually remember the reason this occurred... > > Thanks, > Doug Hugh From gsinclair at gmail.com Thu Oct 13 10:39:52 2005 From: gsinclair at gmail.com (Gavin Sinclair) Date: Fri, 14 Oct 2005 00:39:52 +1000 Subject: License In-Reply-To: <20051013134351.GB30885@localhost.localdomain> References: <20051013134351.GB30885@localhost.localdomain> Message-ID: No beef from me! On 10/13/05, Doug Kearns wrote: > Does anyone have any objections to releasing these files under of the > Vim license rather than the GPL? > > As Nikolai predicted Bram would prefer it. > > I don't actually remember the reason this occurred... > > Thanks, > Doug > _______________________________________________ > vim-ruby-devel mailing list > vim-ruby-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/vim-ruby-devel > From tim+vim-ruby at vegeta.ath.cx Thu Oct 13 13:37:12 2005 From: tim+vim-ruby at vegeta.ath.cx (Tim Hammerquist) Date: Thu, 13 Oct 2005 10:37:12 -0700 Subject: License In-Reply-To: <20051013134351.GB30885@localhost.localdomain> References: <20051013134351.GB30885@localhost.localdomain> Message-ID: <20051013173712.GE5626@vegeta> Doug Kearns wrote: > Does anyone have any objections to releasing these files under > of the Vim license rather than the GPL? > > As Nikolai predicted Bram would prefer it. > > I don't actually remember the reason this occurred... No qualms here. If possible, how about releasing as *both*? As in, either/or? Tim From tim+vim-ruby at vegeta.ath.cx Thu Oct 13 13:38:38 2005 From: tim+vim-ruby at vegeta.ath.cx (Tim Hammerquist) Date: Thu, 13 Oct 2005 10:38:38 -0700 Subject: Where have I been?! Message-ID: <20051013173838.GF5626@vegeta> All: Given the fact that I haven't commited a change in 2 years, and that the single file I originally contributed has been improved and extended so much as to be barely recognizable, I think it's overdue that I demote myself from primary contributor. I'd still like to be a member of the group, but time constraints have made active development next to impossible. Tim From mailing-lists.vim-ruby-development at rawuncut.elitemail.org Thu Oct 13 16:25:16 2005 From: mailing-lists.vim-ruby-development at rawuncut.elitemail.org (Nikolai Weibull) Date: Thu, 13 Oct 2005 22:25:16 +0200 Subject: License In-Reply-To: <20051013173712.GE5626@vegeta> References: <20051013134351.GB30885@localhost.localdomain> <20051013173712.GE5626@vegeta> Message-ID: <20051013202516.GA9093@puritan.pnetwork> Tim Hammerquist wrote: > Doug Kearns wrote: > > Does anyone have any objections to releasing these files under > > of the Vim license rather than the GPL? No. All I require is that my name be mentioned somewhere, and it already is so I?m cool. > > As Nikolai predicted Bram would prefer it. The name people will be referring to in 300 years time will not be Nostradamus but Weibullus. > > I don't actually remember the reason this occurred... > No qualms here. If possible, how about releasing as *both*? As > in, either/or? Why does it matter? I have a hard time seeing how the miniscule differences between the GPL and the Vim charityware licenses affect us. I also have a hard time seeing anyone ripping us off here in any way that matters. I?m not saying that licenses don?t matter, but it?s not like somebody?s going to be using our code in an embedded system somewhere and not telling us about it, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);} From tim+vim-ruby at vegeta.ath.cx Thu Oct 13 17:05:27 2005 From: tim+vim-ruby at vegeta.ath.cx (Tim Hammerquist) Date: Thu, 13 Oct 2005 14:05:27 -0700 Subject: License In-Reply-To: <20051013202516.GA9093@puritan.pnetwork> References: <20051013134351.GB30885@localhost.localdomain> <20051013173712.GE5626@vegeta> <20051013202516.GA9093@puritan.pnetwork> Message-ID: <20051013210527.GG5626@vegeta> Nikolai Weibull wrote: > Tim Hammerquist wrote: > > If possible, how about releasing as *both*? As in, > > either/or? > > Why does it matter? I have a hard time seeing how the > miniscule differences between the GPL and the Vim charityware > licenses affect us. I also have a hard time seeing anyone > ripping us off here in any way that matters. I???m not saying > that licenses don???t matter, but it???s not like somebody???s > going to be using our code in an embedded system somewhere and > not telling us about it, Fair enough. You seem to feel much more strongly against, than I feel in favor, and that's enough for me. Vim's license is fine by me. Tim From gsinclair at gmail.com Thu Oct 13 17:53:30 2005 From: gsinclair at gmail.com (Gavin Sinclair) Date: Fri, 14 Oct 2005 07:53:30 +1000 Subject: Where have I been?! In-Reply-To: <20051013173838.GF5626@vegeta> References: <20051013173838.GF5626@vegeta> Message-ID: Good to hear from you, Tim! I've been absent myself and wouldn't know how "my" file even works, so you're not alone. I'm going to redo the main page soon and will credit the main maintainers of the files, which doesn't include myself, so I guess we'll determine whether that includes you. Cheers, Gavin On 10/14/05, Tim Hammerquist wrote: > All: > > Given the fact that I haven't commited a change in > 2 years, and that the single file I originally contributed has > been improved and extended so much as to be barely recognizable, > I think it's overdue that I demote myself from primary > contributor. I'd still like to be a member of the group, but > time constraints have made active development next to > impossible. > > Tim > _______________________________________________ > vim-ruby-devel mailing list > vim-ruby-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/vim-ruby-devel > From gsinclair at gmail.com Thu Oct 13 18:16:58 2005 From: gsinclair at gmail.com (Gavin Sinclair) Date: Fri, 14 Oct 2005 08:16:58 +1000 Subject: Documentation update In-Reply-To: References: Message-ID: On 10/12/05, Gavin Sinclair wrote: > > So can people suggest what should go in the "one consolidated > document"? Pretend I know nothing about the project and suggest > _anything_. > No bites? What a surprise... Anyway, I thought just presenting the site as a FAQ would be good. Here are the questions I've come up with. Any others to add? What is the vim-ruby project? - basic description, components How do you get it? - gem, tarball How do you install it? - gem, tarball What Vim config do I need? - definitive answer How do I know that everything's working? - a few things to try How do I use it? - summary of commands I want feature X. Will you include it? - probably not What are some other cool Ruby-related Vim tricks I can use? - nice summary + links How can I report a bug? - bug tracker or mailing list or file maintainer (in that order of preference) I have another question... - mailing list or file maintainer From mailing-lists.vim-ruby-development at rawuncut.elitemail.org Thu Oct 13 18:23:59 2005 From: mailing-lists.vim-ruby-development at rawuncut.elitemail.org (Nikolai Weibull) Date: Fri, 14 Oct 2005 00:23:59 +0200 Subject: License In-Reply-To: <20051013210527.GG5626@vegeta> References: <20051013134351.GB30885@localhost.localdomain> <20051013173712.GE5626@vegeta> <20051013202516.GA9093@puritan.pnetwork> <20051013210527.GG5626@vegeta> Message-ID: <20051013222359.GC9093@puritan.pnetwork> Tim Hammerquist wrote: > Nikolai Weibull wrote: > > Tim Hammerquist wrote: > > > If possible, how about releasing as *both*? As in, either/or? > > Why does it matter? I have a hard time seeing how the miniscule > > differences between the GPL and the Vim charityware licenses affect > > us. I also have a hard time seeing anyone ripping us off here in > > any way that matters. I???m not saying that licenses don???t > > matter, but it???s not like somebody???s going to be using our code > > in an embedded system somewhere and not telling us about it, > Fair enough. You seem to feel much more strongly against, than I feel > in favor, and that's enough for me. Man, beyond the anger management class I should really take a course in writing and perhaps also one in rhetoric. I don?t care much one way or the other, but I don?t see a reason to use GPL over Vim?s license either. I think that if using Vim?s license makes for a simpler release cycle (and keeps our headers clean), then that?s the way to go. But I don?t want to force the issue. A lot of crap has been going on in my life lately and I guess it shows. I really hope that none of you has come to think of me as a bit of an asshole for lashing out on the slightest of issues. Gavin: you?ve done a fine work and I appreciate the attention that the vim-ruby project has gotten as a result of it. Doug: the same goes for you. You?ve queried me politely about issues and made me take the time to fix some bugs in my code, without bending my arm. Thank you for staying cool and for the pleasant side-discussions. I still think that vim-ruby should have an even closer relationship to a central Vim repository. However, this is a big issue and is not something that we are solely responsible for finding a solution to, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);} From mailing-lists.vim-ruby-development at rawuncut.elitemail.org Thu Oct 13 18:27:48 2005 From: mailing-lists.vim-ruby-development at rawuncut.elitemail.org (Nikolai Weibull) Date: Fri, 14 Oct 2005 00:27:48 +0200 Subject: License In-Reply-To: References: <20051013134351.GB30885@localhost.localdomain> Message-ID: <20051013222748.GD9093@puritan.pnetwork> Hugh Sasse wrote: > On Thu, 13 Oct 2005, Doug Kearns wrote: > > Does anyone have any objections to releasing these files under of > > the Vim license rather than the GPL? > Not sure about "rather than" -- "both" makes sense, but if something's > GPL'd doesn't it get the RMS::Freedom meme tag that means it can't be > un-GPL'd? [An infinite number of licence lawyers with an infinite > number of keyboards....wouldn't help] The GPL isn?t herpes. It?s not like someone can force us to continue to release under a given license. We decide what freedoms we give our users. It?s not for them to force their freedom to freedom upon us. This is something I only realized recently myself (and I really hope I?m right on this point, for if I?m not then the GPL is totally botched), nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);} From mailing-lists.vim-ruby-development at rawuncut.elitemail.org Thu Oct 13 19:03:34 2005 From: mailing-lists.vim-ruby-development at rawuncut.elitemail.org (Nikolai Weibull) Date: Fri, 14 Oct 2005 01:03:34 +0200 Subject: Documentation update In-Reply-To: References: Message-ID: <20051013230334.GE9093@puritan.pnetwork> Gavin Sinclair wrote: > I want feature X. Will you include it? > - probably not ...but give us a good reason and we just might do it. > What are some other cool Ruby-related Vim tricks I can use? > - nice summary + links How about putting this on the wiki (rubyforge vim-ruby project wiki or rubygarden)? nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);} From tim+vim-ruby at vegeta.ath.cx Thu Oct 13 19:19:26 2005 From: tim+vim-ruby at vegeta.ath.cx (Tim Hammerquist) Date: Thu, 13 Oct 2005 16:19:26 -0700 Subject: License In-Reply-To: <20051013222359.GC9093@puritan.pnetwork> References: <20051013134351.GB30885@localhost.localdomain> <20051013173712.GE5626@vegeta> <20051013202516.GA9093@puritan.pnetwork> <20051013210527.GG5626@vegeta> <20051013222359.GC9093@puritan.pnetwork> Message-ID: <20051013231926.GH5626@vegeta> Nikolai Weibull wrote: > Tim Hammerquist wrote: > > Fair enough. You seem to feel much more strongly against, > > than I feel in favor, and that's enough for me. > > Man, beyond the anger management class I should really take > a course in writing and perhaps also one in rhetoric. I don't > care much one way or the other, but I don't see a reason to > use GPL over Vim's license either. I think that if using > Vim's license makes for a simpler release cycle (and keeps our > headers clean), then that's the way to go. But I don't want > to force the issue. Don't worry. I said you feel more strongly than I do, which really doesn't take much. I've just heard the subject come up in other projects and thought I'd throw it out there for discussion. In truth, I'm much more in favor of consistency than any sort of GPL zealotry I've seen in some groups. :) > A lot of crap has been going on in my life lately and I guess > it shows. Life has a way of doing that. :) > Doug: the same goes for you. You've queried me politely about > issues and made me take the time to fix some bugs in my code, > without bending my arm. Thank you for staying cool and for > the pleasant side-discussions. Dough, I wanted to add my own thanks to this, as your name is the only one I see commiting to "my file" for the last 2 years. I wish I could have been a more active member of the group, but I'm glad it's grown into something better! Thanks! Tim From r.mark.volkmann at gmail.com Thu Oct 13 19:31:58 2005 From: r.mark.volkmann at gmail.com (Mark Volkmann) Date: Thu, 13 Oct 2005 18:31:58 -0500 Subject: Documentation update In-Reply-To: References: Message-ID: On 10/13/05, Gavin Sinclair wrote: > On 10/12/05, Gavin Sinclair wrote: > > > > So can people suggest what should go in the "one consolidated > > document"? Pretend I know nothing about the project and suggest > > _anything_. > > > > No bites? What a surprise... Your list looks great to me! I'm really looking forward to seeing the summary of commands. > Anyway, I thought just presenting the site as a FAQ would be good. > Here are the questions I've come up with. Any others to add? > > What is the vim-ruby project? > - basic description, components > > How do you get it? > - gem, tarball > > How do you install it? > - gem, tarball > > What Vim config do I need? > - definitive answer > > How do I know that everything's working? > - a few things to try > > How do I use it? > - summary of commands > > I want feature X. Will you include it? > - probably not > > What are some other cool Ruby-related Vim tricks I can use? > - nice summary + links > > How can I report a bug? > - bug tracker or mailing list or file maintainer (in that order of preference) > > I have another question... > - mailing list or file maintainer > > _______________________________________________ > vim-ruby-devel mailing list > vim-ruby-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/vim-ruby-devel > -- R. Mark Volkmann Partner, Object Computing, Inc. From dougkearns at gmail.com Thu Oct 13 19:36:20 2005 From: dougkearns at gmail.com (Doug Kearns) Date: Fri, 14 Oct 2005 09:36:20 +1000 Subject: Documentation update In-Reply-To: References: Message-ID: <20051013233620.GA17819@localhost.localdomain> On Fri, Oct 14, 2005 at 08:16:58AM +1000, Gavin Sinclair wrote: > On 10/12/05, Gavin Sinclair wrote: > > > > So can people suggest what should go in the "one consolidated > > document"? Pretend I know nothing about the project and suggest > > _anything_. > > > > No bites? What a surprise... Just very short on time. I'm going down to the MotoGP for a week but will lend you a hand when I return. Thanks, Doug From dougkearns at gmail.com Thu Oct 13 19:41:43 2005 From: dougkearns at gmail.com (Doug Kearns) Date: Fri, 14 Oct 2005 09:41:43 +1000 Subject: License In-Reply-To: <20051013202516.GA9093@puritan.pnetwork> References: <20051013134351.GB30885@localhost.localdomain> <20051013173712.GE5626@vegeta> <20051013202516.GA9093@puritan.pnetwork> Message-ID: <20051013234143.GB17819@localhost.localdomain> On Thu, Oct 13, 2005 at 10:25:16PM +0200, Nikolai Weibull wrote: > Tim Hammerquist wrote: > > > Doug Kearns wrote: > > > > Does anyone have any objections to releasing these files under > > > of the Vim license rather than the GPL? > > No. All I require is that my name be mentioned somewhere, and it > already is so I?m cool. > > No qualms here. If possible, how about releasing as *both*? As > > in, either/or? OK, thanks. BM has been updated with versions released under the Vim License. Whether or not we want to continue using the GPL for releases that we make in between Vim releases is a matter I'll leave up to others... Regards, Doug From tim+vim-ruby at vegeta.ath.cx Fri Oct 14 00:27:17 2005 From: tim+vim-ruby at vegeta.ath.cx (Tim Hammerquist) Date: Thu, 13 Oct 2005 21:27:17 -0700 Subject: License In-Reply-To: <20051013231926.GH5626@vegeta> References: <20051013134351.GB30885@localhost.localdomain> <20051013173712.GE5626@vegeta> <20051013202516.GA9093@puritan.pnetwork> <20051013210527.GG5626@vegeta> <20051013222359.GC9093@puritan.pnetwork> <20051013231926.GH5626@vegeta> Message-ID: <20051014042717.GJ5626@vegeta> Tim Hammerquist wrote: > Nikolai Weibull wrote: > > Tim Hammerquist wrote: > Dough, I wanted to add my own thanks to this, as your name is [ snippage ] Doh! :s/Dough/Doug/ Long day. Finally over. Cheers! Tim From gsinclair at gmail.com Fri Oct 14 05:02:30 2005 From: gsinclair at gmail.com (Gavin Sinclair) Date: Fri, 14 Oct 2005 19:02:30 +1000 Subject: Documentation update In-Reply-To: <20051013230334.GE9093@puritan.pnetwork> References: <20051013230334.GE9093@puritan.pnetwork> Message-ID: On 10/14/05, Nikolai Weibull wrote: > Gavin Sinclair wrote: > > > I want feature X. Will you include it? > > - probably not > > ...but give us a good reason and we just might do it. Well, the intention was to highlight that Vim's distro should contain only things that all Ruby programmers will benefit from, not personal favourite mappings. However, I think we could build up another file with cool stuff in it, and make it an optional part of the install. > > What are some other cool Ruby-related Vim tricks I can use? > > - nice summary + links > > How about putting this on the wiki (rubyforge vim-ruby project wiki or > rubygarden)? There's already some stuff on the rubygarden wiki, but it's become kind of disorganised. That's why this entry in the FAQ would be just a summary, with a link to the wiki. Gavin From gsinclair at gmail.com Fri Oct 14 05:12:56 2005 From: gsinclair at gmail.com (Gavin Sinclair) Date: Fri, 14 Oct 2005 19:12:56 +1000 Subject: License In-Reply-To: <20051013222359.GC9093@puritan.pnetwork> References: <20051013134351.GB30885@localhost.localdomain> <20051013173712.GE5626@vegeta> <20051013202516.GA9093@puritan.pnetwork> <20051013210527.GG5626@vegeta> <20051013222359.GC9093@puritan.pnetwork> Message-ID: On 10/14/05, Nikolai Weibull wrote: > > A lot of crap has been going on in my life lately and I guess it shows. > I really hope that none of you has come to think of me as a bit of an > asshole for lashing out on the slightest of issues. Not an asshole, but slightly touchy in an amusing way. The Ruby community takes all comers :) > Gavin: you've done a fine work and I appreciate the attention that the > vim-ruby project has gotten as a result of it. Well, it wasn't exactly me who created the indent/ruby.vim file, was it? :) BTW, I'm going to change the name of the "maintainer" in that file to yours rather than mine, if it hasn't been changed already. I don't have the slightest idea how that stuff works! And Doug's the de facto maintainer now. I can't imagine myself creating another release unless he gave up on it :) > I still think that vim-ruby should have an even closer relationship to a > central Vim repository. However, this is a big issue and is not > something that we are solely responsible for finding a solution to, Well, yeah. It really depends what Bram wants. If we can use Vim's CVS, great. If we can't, I don't see what other options there are for a "closer relationship". Cheers, Gavin From hgs at dmu.ac.uk Fri Oct 14 06:15:35 2005 From: hgs at dmu.ac.uk (Hugh Sasse) Date: Fri, 14 Oct 2005 11:15:35 +0100 (WEST) Subject: Documentation update In-Reply-To: References: Message-ID: On Fri, 14 Oct 2005, Gavin Sinclair wrote: > On 10/12/05, Gavin Sinclair wrote: > > > > So can people suggest what should go in the "one consolidated > > document"? Pretend I know nothing about the project and suggest > > _anything_. > > > > No bites? What a surprise... > > Anyway, I thought just presenting the site as a FAQ would be good. > Here are the questions I've come up with. Any others to add? > > What is the vim-ruby project? > - basic description, components Why does it appear to be separate from vim? - How other syntax/indent/... files are maintained, how the stuff gets into the next vim > > How do I know that everything's working? > - a few things to try That's nice, but what about "matchit"? What? How? - Allows you to bounce on % to navigate classes, blocks etc. - You move matchit.vim from here to there and setup wossname in your ~/.vim... [which I can't remember and must lookup..] > > How do I use it? > - summary of commands with particular emphasis on :he Hugh From gsinclair at gmail.com Fri Oct 14 06:30:56 2005 From: gsinclair at gmail.com (Gavin Sinclair) Date: Fri, 14 Oct 2005 20:30:56 +1000 Subject: Documentation update In-Reply-To: References: Message-ID: On 10/14/05, Hugh Sasse wrote: > > Why does it appear to be separate from vim? > - How other syntax/indent/... files are maintained, how > the stuff gets into the next vim Excellent idea. > > > > How do I know that everything's working? > > - a few things to try > > That's nice, but what about "matchit"? What? How? > - Allows you to bounce on % to navigate classes, blocks etc. > - You move matchit.vim from here to there and setup wossname > in your ~/.vim... [which I can't remember and must lookup..] I intended to talk about matchit in there somewhere, and include matchit setup in the "basic setup required" section. You're suggesting a special question. We'll see how it pans out. > > How do I use it? > > - summary of commands > with particular emphasis on :he :) I sorta meant any vim-ruby commands that are introduced, but thanks for the reminder :) Cheers, Gavin From hgs at dmu.ac.uk Fri Oct 14 07:18:07 2005 From: hgs at dmu.ac.uk (Hugh Sasse) Date: Fri, 14 Oct 2005 12:18:07 +0100 (WEST) Subject: Documentation update In-Reply-To: References: Message-ID: On Fri, 14 Oct 2005, Gavin Sinclair wrote: > On 10/14/05, Hugh Sasse wrote: > > > > Why does it appear to be separate from vim? > > - How other syntax/indent/... files are maintained, how > > the stuff gets into the next vim > > Excellent idea. > > > > > > > How do I know that everything's working? > > > - a few things to try > > > > That's nice, but what about "matchit"? What? How? > > - Allows you to bounce on % to navigate classes, blocks etc. > > - You move matchit.vim from here to there and setup wossname > > in your ~/.vim... [which I can't remember and must lookup..] > > I intended to talk about matchit in there somewhere, and include > matchit setup in the "basic setup required" section. You're > suggesting a special question. We'll see how it pans out. Not really, I didn't know you were planning to include it. As long as it can be found easily.... Can it be beaten into vim help format, so we can use vim to navigate it? Maybe even get the help shipped with vim? > > > > How do I use it? > > > - summary of commands > > with particular emphasis on :he > > :) > > I sorta meant any vim-ruby commands that are introduced, but thanks > for the reminder :) > > Cheers, > Gavin Hugh From gsinclair at gmail.com Fri Oct 14 11:08:54 2005 From: gsinclair at gmail.com (Gavin Sinclair) Date: Sat, 15 Oct 2005 01:08:54 +1000 Subject: Documentation update In-Reply-To: References: Message-ID: On 10/14/05, Hugh Sasse wrote: > > I intended to talk about matchit in there somewhere, and include > > matchit setup in the "basic setup required" section. You're > > suggesting a special question. We'll see how it pans out. > > Not really, I didn't know you were planning to include it. As long > as it can be found easily.... I'll ensure it. > > Can it be beaten into vim help format, so we can use vim to > navigate it? Maybe even get the help shipped with vim? > Now there's some clever thinking! I've done it like that, but will post as a separate thread. Cheers, Gavin From gsinclair at gmail.com Fri Oct 14 11:17:05 2005 From: gsinclair at gmail.com (Gavin Sinclair) Date: Sat, 15 Oct 2005 01:17:05 +1000 Subject: Documentation update: first draft Message-ID: Hi guys, Attached is a FAQ in Vim Help format, so view it in Vim. The idea is to generate a table of contents with a Ruby program, and convert the whole lot to HTML to go on the project homepage. This is a first draft. Little or nothing is sacred. Please critique. Some parts are left to be done. Note to Hugh: I haven't dealt with matchit adequately at all, so there's one detailed suggestion you can make :) Cheers, Gavin -------------- next part -------------- A non-text attachment was scrubbed... Name: FAQ Type: application/octet-stream Size: 8017 bytes Desc: not available Url : http://rubyforge.org/pipermail/vim-ruby-devel/attachments/20051015/3aaf6ff1/FAQ.obj From hgs at dmu.ac.uk Fri Oct 14 13:19:43 2005 From: hgs at dmu.ac.uk (Hugh Sasse) Date: Fri, 14 Oct 2005 18:19:43 +0100 (WEST) Subject: Documentation update: first draft In-Reply-To: References: Message-ID: On Sat, 15 Oct 2005, Gavin Sinclair wrote: > Hi guys, > > Attached is a FAQ in Vim Help format, so view it in Vim. The idea is > to generate a table of contents with a Ruby program, and convert the > whole lot to HTML to go on the project homepage. > > This is a first draft. Little or nothing is sacred. Please critique. > Some parts are left to be done. Note to Hugh: I haven't dealt with > matchit adequately at all, so there's one detailed suggestion you can > make :) It was easy to deal with matchit, as you see. Hope the other suggestions in the attached patch are ok. > > Cheers, > Gavin > -------------- next part -------------- --- vim-ruby-FAQ.orig 2005-10-14 09:28:42.783441000 -0700 +++ vim-ruby-FAQ 2005-10-14 10:14:09.051192000 -0700 @@ -28,7 +28,8 @@ Yes it does. You should only want to download and install this project if it has changed since you last installed your version of Vim. Read the "News" -section of the homepage to see when the most recent release was made. +section of the |vim-ruby-homepage| to see when the most recent release was +made. *vim-ruby-faq-X* How do you get it? @@ -37,7 +38,8 @@ gem install vim-ruby -(This really only downloads it. See installation instructions below.) +(This really only downloads it. See installation instructions +|vim-ruby-install| below.) If you don't have RubyGems, download a tarball from: > @@ -46,7 +48,7 @@ Again, see installation instructions below. -*vim-ruby-faq-X* How do you install it? +*vim-ruby-faq-X* How do you install it? *vim-ruby-install* If you obtained the vim-ruby files via RubyGems, run: > @@ -91,7 +93,7 @@ customisations will definitely take effect. -*vim-ruby-faq-X* What Vim config do I need? +*vim-ruby-faq-X* What Vim config do I need? *vim-ruby-config* Without the following lines in your .vimrc, _vimrc, or other startup file, the files in the vim-ruby project will be largely useless. > @@ -101,16 +103,18 @@ filetype on " Enable filetype detection filetype indent on " Enable filetype-specific indenting filetype plugin on " Enable filetype-specific plugins + compiler ruby " Enable compiler support for ruby - TODO: matchit support - TODO: anything needed for compiler support? - +See |matchit-install| for how to install matchit (which allows you +to use |%| to bounce between (class,def,while,...) and their +respective end keywords See |.vimrc| for more information about this important Vim configuration file. *vim-ruby-faq-X* How do I know that everything's working? -If you've run the installer and added the configuration above, everything should +If you've run the installer and added the configuration +|vim-ruby-config| above, everything should be fine when you restart Vim. To test this: - Edit a Ruby file with Vim (make sure it has a .rb extension). - The code should be syntax highlighted. @@ -128,7 +132,7 @@ TODO: write. -*vim-ruby-faq-X* How do I customise it? +*vim-ruby-faq-X* How do I customise it? *vim-ruby-customize* The most important customisation for editing Ruby code is the amount of space to indent. The following is a typical setup. Look up the various options to read @@ -140,6 +144,8 @@ TODO: is autoindent necessary? What other options should go here? What about Ruby comments? +FIXME: Autoindent is good. maybe mention |i_CTRL_D| and |i_CTRL_T| for +moving lines about in this context? *vim-ruby-faq-X* I want feature X. Will you include it? @@ -157,7 +163,7 @@ *vim-ruby-faq-X* What are some other cool Ruby-related Vim tricks I can use? An example is the following (put it in ~/.vimrc/ftplugin/ruby_extra.vim or -similar): > +similar): [similar? |$VIMRUNTIME| or what?] > if !exists( "*EndToken" ) function EndToken() @@ -185,7 +191,7 @@ http://rubygarden.org/ruby?VimRubySupport -*vim-ruby-faq-X* How can I report a bug? +*vim-ruby-faq-X* How can I report a bug? *vim-ruby-bug-reporting* Bug reports are most welcome. In order or preference: - submit a bug at http://rubyforge.org/tracker/?group_id=16 @@ -193,6 +199,7 @@ - email the maintainer (email address appears in each configuration file) + *vim-ruby-list* *vim-ruby-faq-X* Does the project have a mailing list? Yes: vim-ruby-devel at rubyforge.org. Only subscribers can post. To join, visit: @@ -221,7 +228,7 @@ *vim-ruby-faq-X* Can you repeat all the web pages listed in this FAQ? -Homepage: > +Homepage *vim-ruby-homepage* : > http://vim-ruby.rubyforge.org Project page: > @@ -241,4 +248,4 @@ http://rubyforge.org/mailman/listinfo/vim-ruby-devel -vim: ft=help +vim: ft=help tw=78 noet : From gsinclair at gmail.com Sat Oct 15 09:09:06 2005 From: gsinclair at gmail.com (Gavin Sinclair) Date: Sat, 15 Oct 2005 23:09:06 +1000 Subject: Documentation update: first draft In-Reply-To: References: Message-ID: Excellent patch; thanks. This is in CVS, by the way: vim-ruby/FAQ. On 10/15/05, Hugh Sasse wrote: > On Sat, 15 Oct 2005, Gavin Sinclair wrote: > > > Hi guys, > > > > Attached is a FAQ in Vim Help format, so view it in Vim. The idea is > > to generate a table of contents with a Ruby program, and convert the > > whole lot to HTML to go on the project homepage. > > > > This is a first draft. Little or nothing is sacred. Please critique. > > Some parts are left to be done. Note to Hugh: I haven't dealt with > > matchit adequately at all, so there's one detailed suggestion you can > > make :) > > It was easy to deal with matchit, as you see. Hope the other > suggestions in the attached patch are ok. > > > > Cheers, > > Gavin > > > > > _______________________________________________ > vim-ruby-devel mailing list > vim-ruby-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/vim-ruby-devel > > > > From hgs at dmu.ac.uk Thu Oct 20 11:41:02 2005 From: hgs at dmu.ac.uk (Hugh Sasse) Date: Thu, 20 Oct 2005 16:41:02 +0100 (WEST) Subject: Indent wierdness. Message-ID: I know this is post 6.4, but still: how does this code [the first box] indent for you: class Object # The hidden singleton lurks behind everyone def metaclass; class << self; self; end; end def meta_eval &blk; metaclass.instance_eval &blk; end # Adds methods to a metaclass def meta_def name, &blk meta_eval { define_method name, &blk } end # Defines an instance method within a class def class_def name, &blk class_eval { define_method name, &blk } end end For me it ends up like this: class Object # The hidden singleton lurks behind everyone def metaclass; class << self; self; end; end def meta_eval &blk; metaclass.instance_eval &blk; end # Adds methods to a metaclass def meta_def name, &blk meta_eval { define_method name, &blk } end # Defines an instance method within a class def class_def name, &blk class_eval { define_method name, &blk } end end Is this reproducable? Thank you, Hugh From mailing-lists.vim-ruby-development at rawuncut.elitemail.org Thu Oct 20 18:04:10 2005 From: mailing-lists.vim-ruby-development at rawuncut.elitemail.org (Nikolai Weibull) Date: Fri, 21 Oct 2005 00:04:10 +0200 Subject: Indent wierdness. In-Reply-To: References: Message-ID: <20051020220410.GA9051@puritan.petwork> Hugh Sasse wrote: > def metaclass; class << self; self; end; end Problem with counting of def and class versus ends. We only see things at the beginning of the line. So don't write it in the shrivelled-up-I?m-in-a-book kind of way; instead, write it as: def metaclass class << self; self; end end That won?t fool the indenter. Perhaps we can rewrite the regular expressions to do this kind of stuff, but I don?t remember if there were issues with doing so. If you want, please try redefining s:end_start_regex so that it can find the ?class? in the above example as well. That?d solve a lot of issues. Perhaps my reasoning has been far too restrictive when it comes to that variable. You can try something like let s:end_start_regex = '\%(^\|[^.:]\)\@<=\<\%(module\|class\|def\|if' . \ '\|for\|while\|until\|case\|unless\|begin\|do\)\>' and report back on how that works. It solves the issues you were having now, but please verify that it doesn?t introduce something nasty.... Thanks, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);} From hgs at dmu.ac.uk Thu Oct 20 18:29:09 2005 From: hgs at dmu.ac.uk (Hugh Sasse) Date: Thu, 20 Oct 2005 23:29:09 +0100 (WEST) Subject: Indent wierdness. In-Reply-To: <20051020220410.GA9051@puritan.petwork> References: <20051020220410.GA9051@puritan.petwork> Message-ID: On Fri, 21 Oct 2005, Nikolai Weibull wrote: > Hugh Sasse wrote: > > > def metaclass; class << self; self; end; end > > Problem with counting of def and class versus ends. We only see things > at the beginning of the line. Ok, that makes sense. > > So don't write it in the shrivelled-up-I’m-in-a-book kind of way; :-) I pasted it from the web. > instead, write it as: > > > def metaclass > class << self; self; end > end that'w what I did and it works for that case. > > That won’t fool the indenter. Perhaps we can rewrite the regular > expressions to do this kind of stuff, but I don’t remember if there were > issues with doing so. > > If you want, please try redefining s:end_start_regex so that it can find > the ‘class’ in the above example as well. That’d solve a lot of issues. > Perhaps my reasoning has been far too restrictive when it comes to that > variable. You can try something like > > let s:end_start_regex = '\%(^\|[^.:]\)\@<=\<\%(module\|class\|def\|if' . > \ '\|for\|while\|until\|case\|unless\|begin\|do\)\>' OK, I don't knwo when I'll get chance to explore this, but now you've told me what to look at it is much more feasible for me. Thank you. > > and report back on how that works. It solves the issues you were having > now, but please verify that it doesn’t introduce something nasty.... > > Thanks, > nikolai > Thank you, Hugh From mailing-lists.vim-ruby-development at rawuncut.elitemail.org Thu Oct 20 19:02:27 2005 From: mailing-lists.vim-ruby-development at rawuncut.elitemail.org (Nikolai Weibull) Date: Fri, 21 Oct 2005 01:02:27 +0200 Subject: Indent wierdness. In-Reply-To: References: <20051020220410.GA9051@puritan.petwork> Message-ID: <20051020230227.GB9051@puritan.petwork> Hugh Sasse wrote: > On Fri, 21 Oct 2005, Nikolai Weibull wrote: > > So don't write it in the shrivelled-up-I?m-in-a-book kind of way; > :-) I pasted it from the web. Precisely; ;-), nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);} From gsinclair at gmail.com Mon Oct 24 09:59:09 2005 From: gsinclair at gmail.com (Gavin Sinclair) Date: Mon, 24 Oct 2005 23:59:09 +1000 Subject: Indent problem Message-ID: Our project considers the following code indented. I'll raise a bug. unless defined? 1.power! alias power! ** alias ** rpower end Gavin From hgs at dmu.ac.uk Fri Nov 4 14:30:54 2005 From: hgs at dmu.ac.uk (Hugh Sasse) Date: Fri, 4 Nov 2005 11:30:54 -0800 (PST) Subject: (brainstorm) munge(syntax_files, ASTs) => possibilities. Message-ID: Two ideas just bumped together, and I wondered if they are worth following up by those who are familiar with them. People have projects for Ruby that take ruby syntax and produce abstract syntax trees. These allow flexible manipulation of the code. In particular, swapping bits around should be easier, and I think this is what IDEs do. I wanted to port the FIXME and NOTE highlighting from the Ruby syntax file to the MySQL one, but foound that the references occur in too many places for me to do so with any confidence at all. So, my question is: Is it sensible to consider doing this sort of manipulation with ASTs? Is it worth floating (a fleshed out?) version of the idea on vim-dev or elsewhere? I'm thinking it might make it easier for the vim-file maintainers to re-use code from other files if the semantics can be encapsulated as well as the syntax, but I don't actually know where to start with this. Hugh From mailing-lists.vim-ruby-development at rawuncut.elitemail.org Fri Nov 4 07:08:16 2005 From: mailing-lists.vim-ruby-development at rawuncut.elitemail.org (Nikolai Weibull) Date: Fri, 4 Nov 2005 13:08:16 +0100 Subject: (brainstorm) munge(syntax_files, ASTs) => possibilities. In-Reply-To: References: Message-ID: <20051104120816.GD9068@puritan.petwork> Hugh Sasse wrote: > So, my question is: Is it sensible to consider doing this sort of > manipulation with ASTs? Is it worth floating (a fleshed out?) version > of the idea on vim-dev or elsewhere? I'm thinking it might make it > easier for the vim-file maintainers to re-use code from other files if > the semantics can be encapsulated as well as the syntax, but I don't > actually know where to start with this. Hm, perhaps I never sent that mail to vim-dev, but I was certainly thinking of the same thing. Todo, String, Number, and Comment are often similar between many syntaxes. I can?t remember the exact reason I opted not to send anything about it, but I think there was a good reason. nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);} From jeff at rosejn.net Thu Dec 8 18:36:59 2005 From: jeff at rosejn.net (Jeff Rose) Date: Fri, 09 Dec 2005 00:36:59 +0100 Subject: vim api Message-ID: <1134085019.13743.23.camel@localhost.localdomain> Hello everyone, I just asked the vim-dev list, but then I realized this might be a better place. I've been working on a vim plugin using the ruby module, and its required learning and using a fair amount of vim script. Anyone know why at least the rest of the built-in functions haven't been included in the ruby API? It would make it a lot easier to jump in and write useful scripts... -Jeff From gsinclair at gmail.com Thu Dec 8 19:08:19 2005 From: gsinclair at gmail.com (Gavin Sinclair) Date: Fri, 9 Dec 2005 11:08:19 +1100 Subject: vim api In-Reply-To: <1134085019.13743.23.camel@localhost.localdomain> References: <1134085019.13743.23.camel@localhost.localdomain> Message-ID: On 12/9/05, Jeff Rose wrote: > Hello everyone, > I just asked the vim-dev list, but then I realized this might be a > better place. I've been working on a vim plugin using the ruby module, > and its required learning and using a fair amount of vim script. Anyone > know why at least the rest of the built-in functions haven't been > included in the ruby API? It would make it a lot easier to jump in and > write useful scripts... Hi Jeff, Not that I don't welcome the question, but the vim-dev mailing list is actually more appropriate. I doubt anyone on this list has the expertise to improve the Ruby API within Vim, nor the authority in Vim development to make it happen. Here's my take on your actual question. As far as I know, there is not a single significant vim plugin out there written using the Ruby module. You are at the cutting edge. Probably other people have tried, but seen how limited the API is and given up. The other problem with using the Ruby API, of course, is that it's not typically available in the Vim that people run -- they need to compile Vim themselves with the +ruby option. So your potential audience is limited. I'd love to see Vim implement better Ruby support, but it's probably not seen as a priority. After all, are people even using the Perl, Python, and TCL APIs? There's great potential for all these things, but there's a catch-22 going on: people won't write the plugins until the support is there; the support won't be there until there's a clear demand. So my advice is to persist on the vim-dev list and do whatever you can to improve the Ruby API. Also, if you know of any plugins written in Ruby/Python/etc., I'd be interested to hear of them. Cheers, Gavin From jeff at rosejn.net Thu Dec 8 19:28:24 2005 From: jeff at rosejn.net (Jeff Rose) Date: Fri, 09 Dec 2005 01:28:24 +0100 Subject: vim api In-Reply-To: References: <1134085019.13743.23.camel@localhost.localdomain> Message-ID: <1134088105.13743.43.camel@localhost.localdomain> Thanks for getting back so quickly... On Fri, 2005-12-09 at 11:08 +1100, Gavin Sinclair wrote: > On 12/9/05, Jeff Rose wrote: > > Hello everyone, > > I just asked the vim-dev list, but then I realized this might be a > > better place. I've been working on a vim plugin using the ruby module, > > and its required learning and using a fair amount of vim script. Anyone > > know why at least the rest of the built-in functions haven't been > > included in the ruby API? It would make it a lot easier to jump in and > > write useful scripts... > > Hi Jeff, > > Not that I don't welcome the question, but the vim-dev mailing list is > actually more appropriate. I doubt anyone on this list has the > expertise to improve the Ruby API within Vim, nor the authority in Vim > development to make it happen. > > Here's my take on your actual question. As far as I know, there is > not a single significant vim plugin out there written using the Ruby > module. You are at the cutting edge. Probably other people have > tried, but seen how limited the API is and given up. Well, maybe this will be the first plugin of significance :-) I think I'm just about ready to release what I've put together. After hearing so much hubub about this TextMate editor for OSX and its snippet feature, I decided to check it out on a powerbook I've got at school. (Good write-up of the features described here by the main developer: http://macromates.com/blog/archives/2005/08/25/the-power-of-snippets/ ) The snippets are very cool, and I found out that the definitions are open source and available in a subversion repository. So, after way too much time I've implemented a vim plugin using the ruby bindings to provide the same functionality in vim. It parses the snippet definitions from the TextMate bundle format, and then lets you tab through regions of a snippet entering text. So far I've got variable substitution, backtick expansion, mirroring, tabstops, and default values up and running... In gvim it runs as fast as you type. As an example, you type "foo.each" and it spits out "foo.each {|element| element. }" where the first element is selected. You type in whatever you want to replace element with and hit tab. It mirrors your change to the second element, and then places the cursor after the dot. All virtually instant so once you learn the tab triggers snippets of code like this just pop out and you fill in the gaps. They've already got bundles for something like 50 languages, and even rails has its own bundle to speed up coding. > The other problem with using the Ruby API, of course, is that it's not > typically available in the Vim that people run -- they need to compile > Vim themselves with the +ruby option. So your potential audience is > limited. > > I'd love to see Vim implement better Ruby support, but it's probably > not seen as a priority. After all, are people even using the Perl, > Python, and TCL APIs? There's great potential for all these things, > but there's a catch-22 going on: people won't write the plugins until > the support is there; the support won't be there until there's a clear > demand. Yeah, that seems like a typical problem. Until rails came along as a "gateway app" I think ruby had a similar dilemma in getting people to exert the energy to try it out. Maybe with some more work these snippets (snippetMagic is the current name, but maybe I should put an "r" or "ruby" in there to make it explicit... :-) can act as a catalyst for ruby support in vim. > So my advice is to persist on the vim-dev list and do whatever you can > to improve the Ruby API. Ok, I'll talk to those folks. There is a set of things that would really help for writing plugins, and I'd be willing to implement it... > Also, if you know of any plugins written in Ruby/Python/etc., I'd be > interested to hear of them. It would be great to have some extra eyes on this snippets plugin. This is the first time I've tried something like this so there are most likely better ways to do some things. If anyone is interested in helping out or just beta testing it would be fantastic. > > Cheers, > Gavin Thanks for all the work you've done with the current ruby support. -Jeff > > _______________________________________________ > vim-ruby-devel mailing list > vim-ruby-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/vim-ruby-devel From mailing-lists.vim-ruby-development at rawuncut.elitemail.org Thu Dec 8 19:55:12 2005 From: mailing-lists.vim-ruby-development at rawuncut.elitemail.org (Nikolai Weibull) Date: Fri, 9 Dec 2005 01:55:12 +0100 Subject: vim api In-Reply-To: <1134085019.13743.23.camel@localhost.localdomain> References: <1134085019.13743.23.camel@localhost.localdomain> Message-ID: <20051209005512.GB8932@puritan.petwork> Jeff Rose wrote: > Hello everyone, > I just asked the vim-dev list, but then I realized this might be a > better place. I've been working on a vim plugin using the ruby module, > and its required learning and using a fair amount of vim script. Anyone > know why at least the rest of the built-in functions haven't been > included in the ruby API? It would make it a lot easier to jump in and > write useful scripts... No, this is probably not a better place. Sorry. We only really deal with the runtime system, not the API of the Ruby interface. We can basically not use anything except VimL, as we need the portability it brings. The maintainer of the Ruby interface is Shugo Maeda. You could perhaps contact him personally, as I don't think he reads vim-dev (well, I haven't seen him post anyting to it anyway). I think that the best way to get more functionality into the interface is simply to provide Shugo and/or Bram with patches to it. Doing things yourself is (sadly) the best way of getting things done. Good luck. nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);} From gsinclair at gmail.com Thu Dec 8 19:56:06 2005 From: gsinclair at gmail.com (Gavin Sinclair) Date: Fri, 9 Dec 2005 11:56:06 +1100 Subject: vim api In-Reply-To: <1134088105.13743.43.camel@localhost.localdomain> References: <1134085019.13743.23.camel@localhost.localdomain> <1134088105.13743.43.camel@localhost.localdomain> Message-ID: On 12/9/05, Jeff Rose wrote: > Thanks for getting back so quickly... It doesn't usually happen that way! :) > It would be great to have some extra eyes on this snippets plugin. This > is the first time I've tried something like this so there are most > likely better ways to do some things. If anyone is interested in > helping out or just beta testing it would be fantastic. I'd certainly try it out. I don't have a runy-enabled gvim at the moment, but could create one with a bit of luck :) I first saw those snippets in IntelliJ IDEA (fantastic IDE for Java) and thought they were excellent. Implementing that sort of thing in vim is *exactly* what the Ruby API should be able to do! Cheers, Gavin From jeffrey.dik at myrealbox.com Fri Dec 9 10:57:30 2005 From: jeffrey.dik at myrealbox.com (Jeffrey Dik) Date: Fri, 9 Dec 2005 10:57:30 -0500 Subject: vim api In-Reply-To: <1134088105.13743.43.camel@localhost.localdomain> References: <1134085019.13743.23.camel@localhost.localdomain> <1134088105.13743.43.camel@localhost.localdomain> Message-ID: <20051209155730.GA26293@sasori.gotdns.org> Hi, I would love to help beta test your snippits plugin. And, I'd also really really really love to have a better VIM api for ruby. Alas, I'm running short of time these days, but this has really gotten my interest. Now I'm going to have to subscribe to the vim-dev list and poke around in vim's source some time. See what you've done :-) Thanks, Jeff On Fri, Dec 09, 2005 at 01:28:24AM +0100, Jeff Rose wrote: > Thanks for getting back so quickly... > > On Fri, 2005-12-09 at 11:08 +1100, Gavin Sinclair wrote: > > On 12/9/05, Jeff Rose wrote: > > > Hello everyone, > > > I just asked the vim-dev list, but then I realized this might be a > > > better place. I've been working on a vim plugin using the ruby module, > > > and its required learning and using a fair amount of vim script. Anyone > > > know why at least the rest of the built-in functions haven't been > > > included in the ruby API? It would make it a lot easier to jump in and > > > write useful scripts... > > > > Hi Jeff, > > > > Not that I don't welcome the question, but the vim-dev mailing list is > > actually more appropriate. I doubt anyone on this list has the > > expertise to improve the Ruby API within Vim, nor the authority in Vim > > development to make it happen. > > > > Here's my take on your actual question. As far as I know, there is > > not a single significant vim plugin out there written using the Ruby > > module. You are at the cutting edge. Probably other people have > > tried, but seen how limited the API is and given up. > > Well, maybe this will be the first plugin of significance :-) I think > I'm just about ready to release what I've put together. After hearing > so much hubub about this TextMate editor for OSX and its snippet > feature, I decided to check it out on a powerbook I've got at school. > (Good write-up of the features described here by the main developer: > http://macromates.com/blog/archives/2005/08/25/the-power-of-snippets/ ) > The snippets are very cool, and I found out that the definitions are > open source and available in a subversion repository. So, after way too > much time I've implemented a vim plugin using the ruby bindings to > provide the same functionality in vim. It parses the snippet > definitions from the TextMate bundle format, and then lets you tab > through regions of a snippet entering text. So far I've got variable > substitution, backtick expansion, mirroring, tabstops, and default > values up and running... In gvim it runs as fast as you type. > > As an example, you type "foo.each" and it spits out > "foo.each {|element| element. }" where the first element is selected. > You type in whatever you want to replace element with and hit tab. It > mirrors your change to the second element, and then places the cursor > after the dot. All virtually instant so once you learn the tab triggers > snippets of code like this just pop out and you fill in the gaps. > They've already got bundles for something like 50 languages, and even > rails has its own bundle to speed up coding. > > > The other problem with using the Ruby API, of course, is that it's not > > typically available in the Vim that people run -- they need to compile > > Vim themselves with the +ruby option. So your potential audience is > > limited. > > > > I'd love to see Vim implement better Ruby support, but it's probably > > not seen as a priority. After all, are people even using the Perl, > > Python, and TCL APIs? There's great potential for all these things, > > but there's a catch-22 going on: people won't write the plugins until > > the support is there; the support won't be there until there's a clear > > demand. > > Yeah, that seems like a typical problem. Until rails came along as a > "gateway app" I think ruby had a similar dilemma in getting people to > exert the energy to try it out. Maybe with some more work these > snippets (snippetMagic is the current name, but maybe I should put an > "r" or "ruby" in there to make it explicit... :-) can act as a catalyst > for ruby support in vim. > > > So my advice is to persist on the vim-dev list and do whatever you can > > to improve the Ruby API. > Ok, I'll talk to those folks. There is a set of things that would > really help for writing plugins, and I'd be willing to implement it... > > > Also, if you know of any plugins written in Ruby/Python/etc., I'd be > > interested to hear of them. > It would be great to have some extra eyes on this snippets plugin. This > is the first time I've tried something like this so there are most > likely better ways to do some things. If anyone is interested in > helping out or just beta testing it would be fantastic. > > > > > Cheers, > > Gavin > > Thanks for all the work you've done with the current ruby support. > > -Jeff > > > > _______________________________________________ > > vim-ruby-devel mailing list > > vim-ruby-devel at rubyforge.org > > http://rubyforge.org/mailman/listinfo/vim-ruby-devel > > _______________________________________________ > vim-ruby-devel mailing list > vim-ruby-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/vim-ruby-devel > From rosejn at gmail.com Mon Dec 12 12:10:24 2005 From: rosejn at gmail.com (Jeff Rose) Date: Mon, 12 Dec 2005 18:10:24 +0100 Subject: snippets Message-ID: <1134407424.16067.25.camel@localhost.localdomain> Alright, I've got a version of the snippet magic plugin ready for download. (A semi-programmable code completion system modeled after TextMate and implemented as a Ruby plugin for vim...) The download link and some instructions can be found here: http://blog.rosejn.net/articles/2005/12/09/snippets-0-01 Please let me know how it works for you. Any patches or ideas for improvement would be greatly appreciated. Ciao, Jeff From gsinclair at gmail.com Mon Dec 12 21:04:19 2005 From: gsinclair at gmail.com (Gavin Sinclair) Date: Tue, 13 Dec 2005 13:04:19 +1100 Subject: snippets In-Reply-To: <1134407424.16067.25.camel@localhost.localdomain> References: <1134407424.16067.25.camel@localhost.localdomain> Message-ID: I got it running. Took a lot of effort to get a Ruby-enabled vim set up on Cygwin, but it's there now :) It looks sweet! I'll play with it later today. Cheers, Gavin On 12/13/05, Jeff Rose wrote: > Alright, I've got a version of the snippet magic plugin ready for > download. (A semi-programmable code completion system modeled after > TextMate and implemented as a Ruby plugin for vim...) The download link > and some instructions can be found here: > > http://blog.rosejn.net/articles/2005/12/09/snippets-0-01 > > Please let me know how it works for you. Any patches or ideas for > improvement would be greatly appreciated. > > Ciao, > Jeff > > > > _______________________________________________ > vim-ruby-devel mailing list > vim-ruby-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/vim-ruby-devel > From rosejn at gmail.com Fri Dec 16 09:27:49 2005 From: rosejn at gmail.com (Jeff Rose) Date: Fri, 16 Dec 2005 15:27:49 +0100 Subject: snippet magic, slicker & slimmer Message-ID: <1134743269.8963.5.camel@localhost.localdomain> You can find an updated version of SnippetMagic available here: http://code.rosejn.net/snippetMagic.tgz After discussing it with Gavin, I've written a converter to go from the TextMate formatted bundles to a native ruby format so loading and parsing files is now dramatically faster. In addition I think it will now correctly handle tabs according to the settings you have specified in vim. Still have some issues to fix with selected text and nested snippets, but with help from the vim-dev crew I think I might be moving toward a solution. Please, try it out and break it. Bug reports and especially patches would be greatly appreciated :-) I've gone through and commented everything pretty extensively so hopefully its not too hard to jump in. -Jeff From rosejn at gmail.com Tue Dec 20 17:18:49 2005 From: rosejn at gmail.com (Jeff Rose) Date: Tue, 20 Dec 2005 23:18:49 +0100 Subject: insert result of ruby Message-ID: <1135117129.30273.3.camel@localhost.localdomain> Anyone know if there is a way to run a small bit of ruby and insert the result into the current buffer? I wanted to do something like this, but get the output into the buffer rather than the command window: :ruby require 'date'; puts Date.today -Jeff From ryan.platte at pobox.com Tue Dec 20 17:34:51 2005 From: ryan.platte at pobox.com (Ryan Platte) Date: Tue, 20 Dec 2005 16:34:51 -0600 Subject: insert result of ruby In-Reply-To: <1135117129.30273.3.camel@localhost.localdomain> References: <1135117129.30273.3.camel@localhost.localdomain> Message-ID: <2f1a1dcb0512201434v14ea4c6br925ba1f0b5ea1d79@mail.gmail.com> This should get you started: :help r! On 12/20/05, Jeff Rose wrote: > Anyone know if there is a way to run a small bit of ruby and insert the > result into the current buffer? > > I wanted to do something like this, but get the output into the buffer > rather than the command window: > > :ruby require 'date'; puts Date.today > > -Jeff > > _______________________________________________ > vim-ruby-devel mailing list > vim-ruby-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/vim-ruby-devel > > -- Ryan Platte From jeffrey.dik at myrealbox.com Tue Dec 20 17:59:39 2005 From: jeffrey.dik at myrealbox.com (Jeffrey Dik) Date: Tue, 20 Dec 2005 17:59:39 -0500 Subject: insert result of ruby In-Reply-To: <2f1a1dcb0512201434v14ea4c6br925ba1f0b5ea1d79@mail.gmail.com> References: <1135117129.30273.3.camel@localhost.localdomain> <2f1a1dcb0512201434v14ea4c6br925ba1f0b5ea1d79@mail.gmail.com> Message-ID: <20051220225939.GA11552@sasori.gotdns.org> For another approach, check out http://eigenclass.org/hiki.rb?Ruby+support+for+Vim http://www.rubygarden.org/ruby?VimXmp http://www.rubygarden.org/ruby?VimExtensions Hope that helps, Jeff On Tue, Dec 20, 2005 at 04:34:51PM -0600, Ryan Platte wrote: > This should get you started: > > :help r! > > On 12/20/05, Jeff Rose wrote: > > Anyone know if there is a way to run a small bit of ruby and insert the > > result into the current buffer? > > > > I wanted to do something like this, but get the output into the buffer > > rather than the command window: > > > > :ruby require 'date'; puts Date.today > > > > -Jeff > > > > _______________________________________________ > > vim-ruby-devel mailing list > > vim-ruby-devel at rubyforge.org > > http://rubyforge.org/mailman/listinfo/vim-ruby-devel > > > > > > > -- > Ryan Platte > > _______________________________________________ > vim-ruby-devel mailing list > vim-ruby-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/vim-ruby-devel > From penryu at saiyix.ath.cx Wed Dec 21 03:05:14 2005 From: penryu at saiyix.ath.cx (Tim Hammerquist) Date: Wed, 21 Dec 2005 00:05:14 -0800 Subject: insert result of ruby In-Reply-To: <1135117129.30273.3.camel@localhost.localdomain> References: <1135117129.30273.3.camel@localhost.localdomain> Message-ID: <20051221080514.GB5359@ruri> Jeff Rose wrote: > Anyone know if there is a way to run a small bit of ruby and > insert the result into the current buffer? > > I wanted to do something like this, but get the output into > the buffer rather than the command window: > > :ruby require 'date'; puts Date.today Assuming you have a vim built with +ruby: :ruby < From penryu at saiyix.ath.cx Wed Dec 21 03:07:34 2005 From: penryu at saiyix.ath.cx (Tim Hammerquist) Date: Wed, 21 Dec 2005 00:07:34 -0800 Subject: insert result of ruby In-Reply-To: <20051221080514.GB5359@ruri> References: <1135117129.30273.3.camel@localhost.localdomain> <20051221080514.GB5359@ruri> Message-ID: <20051221080734.GC5359@ruri> Tim Hammerquist wrote: > Jeff Rose wrote: > > Anyone know if there is a way to run a small bit of ruby and > > insert the result into the current buffer? > > > > I wanted to do something like this, but get the output into > > the buffer rather than the command window: > > > > :ruby require 'date'; puts Date.today > > Assuming you have a vim built with +ruby: > > :ruby < def insert_string (str) > buf = VIM::Buffer.current > win = VIM::Window.current > buf.append(win.cursor[0], str) > end > EOF > > :ruby require 'date'; insert_string( Date.today.to_s ) Doh! :help if_ruby for more information. :) Tim