Re: running Gorilla
Hi, Am 21.01.2009 um 14:06 schrieb bOR_: Just for posterity: It took me a while to realize that my fresh vim didn't have a maplocalleader defined. Had to add it to the .vimrc so that chimp (and I guess gorilla as well) would actually have some keybindings associated with it. let maplocalleader = "," This shouldn't be necessary. When not set, the maplocalleader defaults to '\'. Sincerely Meikel smime.p7s Description: S/MIME cryptographic signature
Re: running Gorilla
Just for posterity: It took me a while to realize that my fresh vim didn't have a maplocalleader defined. Had to add it to the .vimrc so that chimp (and I guess gorilla as well) would actually have some keybindings associated with it. let maplocalleader = "," Gracias! On Dec 19 2008, 8:26 am, Meikel Brandmeyer wrote: > Hi, > > On 19 Dez., 08:04, "Axel Schlueter" wrote: > > > The directory name "after" is IMHO just meant as a hint like > > in "copy this files AFTER building the gorilla jar" but not as > > the name of the final directory. > > No it is not. The after is there on purpose. It says > "load this file after loading the 'normal' ftplugin(s) for this > filetype". > > Sincerely > Meikel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---
Re: running Gorilla
Hi, On 19 Dez., 08:04, "Axel Schlueter" wrote: > The directory name "after" is IMHO just meant as a hint like > in "copy this files AFTER building the gorilla jar" but not as > the name of the final directory. No it is not. The after is there on purpose. It says "load this file after loading the 'normal' ftplugin(s) for this filetype". Sincerely Meikel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---
Re: running Gorilla
Hi, On Fri, Dec 19, 2008 at 2:47 AM, Mike Perham wrote: > ./after/ftplugin/clojure: > total 8 > -rw-r--r-- 1 mperham mperham 1698 Dec 18 17:40 gorilla.vim The directory name "after" is IMHO just meant as a hint like in "copy this files AFTER building the gorilla jar" but not as the name of the final directory. So please copy the files into their corresponding directories under .vim without "after": USERNAME/.vim> pwd /Users/USERNAME/.vim USERNAME/.vim> find . ./doc ./doc/clojure.txt ./ftdetect ./ftdetect/clojure.vim ./ftplugin ./ftplugin/clojure ./ftplugin/clojure/completions ./ftplugin/clojure/gorilla.vim ./ftplugin/clojure.vim ./indent ./indent/clojure.vim ./plugin ./plugin/gorilla.vim ./syntax ./syntax/clojure.vim That should do the trick. Regards, Axel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---
Re: running Gorilla
Hi, On 19 Dez., 02:47, Mike Perham wrote: > Can you create a more thorough install doc which walks us through > the setup? Yes. It seems this is necessary. There is a small screencast available explaining the installation of VimClojure with a minimal set of required options. http://de.youtube.com/watch?v=rqweCwAMan0&fmt=18 > I compiled MacVim with ruby support. This is not necessary. MacVim comes with Ruby support enabled. > When I open a clj file, it says it is filetype=conf. I'm not sure, why this happens. I see this with markdown files. >From your file layout however, everything should work fine. I'll try to investigate this. Sincerely Meikel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---
Re: running Gorilla
I think the point is that the installation documentation is a little lacking right now. Can you create a more thorough install doc which walks us through the setup? I'm an experienced Java developer so I had no problem getting the Gorilla server running but the vim setup is a mystery to me. I compiled MacVim with ruby support but, like Mark, have had no luck in getting VimClojure or the Gorilla plugin to work when following your minimal instructions. When I open a clj file, it says it is filetype=conf. Here's my .vim directory: mikeperham:~/.vim$ ls -lR total 0 drwxr-xr-x 3 mperham mperham 102 Dec 18 17:40 after drwxr-xr-x 3 mperham mperham 102 May 7 2007 autoload drwxr-xr-x 4 mperham mperham 136 Dec 18 17:29 bin drwxr-xr-x 5 mperham mperham 170 May 7 2007 compiler drwxr-xr-x 6 mperham mperham 204 Dec 18 17:27 doc drwxr-xr-x 4 mperham mperham 136 Dec 18 17:27 ftdetect drwxr-xr-x 6 mperham mperham 204 Dec 18 17:27 ftplugin drwxr-xr-x 5 mperham mperham 170 Dec 18 17:27 indent drwxr-xr-x 3 mperham mperham 102 Dec 18 17:40 plugin drwxr-xr-x 5 mperham mperham 170 Dec 18 17:27 syntax ./after: total 0 drwxr-xr-x 3 mperham mperham 102 Dec 18 17:40 ftplugin ./after/ftplugin: total 0 drwxr-xr-x 3 mperham mperham 102 Dec 18 17:40 clojure ./after/ftplugin/clojure: total 8 -rw-r--r-- 1 mperham mperham 1698 Dec 18 17:40 gorilla.vim ./autoload: total 48 -rw-r--r-- 1 mperham mperham 23455 Dec 14 2006 rubycomplete.vim ./bin: total 40 -rw-r--r-- 1 mperham mperham644 Dec 18 17:29 gen-completions.clj -rwxr-xr-x 1 mperham mperham 13171 Apr 15 2006 vim-ruby-install.rb ./compiler: total 24 -rw-r--r-- 1 mperham mperham 953 Apr 15 2006 eruby.vim -rw-r--r-- 1 mperham mperham 1815 Apr 15 2006 ruby.vim -rw-r--r-- 1 mperham mperham 837 Apr 15 2006 rubyunit.vim ./doc: total 40 -rw-r--r-- 1 mperham mperham 826 Dec 18 17:27 clojure.txt -rw-r--r-- 1 mperham mperham 1696 Jun 20 2006 ft-ruby-omni.txt -rw-r--r-- 1 mperham mperham 2259 May 7 2007 ft-ruby-syntax.txt -rw-r--r-- 1 mperham mperham 7298 Dec 18 17:40 gorilla.txt ./ftdetect: total 16 -rw-r--r-- 1 mperham mperham 48 Dec 18 17:27 clojure.vim -rw-r--r-- 1 mperham mperham 365 May 7 2007 ruby.vim ./ftplugin: total 32 drwxr-xr-x 3 mperham mperham 102 Dec 18 17:39 clojure -rw-r--r-- 1 mperham mperham 1500 Dec 18 17:27 clojure.vim -rw-r--r-- 1 mperham mperham 3115 May 7 2007 eruby.vim -rw-r--r-- 1 mperham mperham 8140 May 7 2007 ruby.vim ./ftplugin/clojure: total 8 -rw-r--r-- 1 mperham mperham 3121 Dec 18 17:27 completions ./indent: total 48 -rw-r--r-- 1 mperham mperham 5400 Dec 18 17:27 clojure.vim -rw-r--r-- 1 mperham mperham 1900 Apr 17 2007 eruby.vim -rw-r--r-- 1 mperham mperham 11683 Mar 21 2007 ruby.vim ./plugin: total 40 -rw-r--r-- 1 mperham mperham 16490 Dec 18 17:40 gorilla.vim ./syntax: total 88 -rw-r--r-- 1 mperham mperham 12433 Dec 18 17:27 clojure.vim -rw-r--r-- 1 mperham mperham 3121 May 7 2007 eruby.vim -rw-r--r-- 1 mperham mperham 23154 Nov 6 2007 ruby.vim On Dec 18, 5:09 pm, Meikel Brandmeyer wrote: > Hi, > > Am 18.12.2008 um 23:36 schrieb Mark Volkmann: > > > The documentation says sr. > > I don't know what LocalLeader means. Is that just a colon? > > The is a key you define yourself. I remapped > the \ to , since \ is awkward to type on german keyboards. > is for plugins, is for filetype > plugins. See ":help mapleader" for more information. > > Sincerely > Meikel > > smime.p7s > 5KViewDownload --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---
Re: running Gorilla
Hi, Am 18.12.2008 um 23:36 schrieb Mark Volkmann: The documentation says sr. I don't know what LocalLeader means. Is that just a colon? The is a key you define yourself. I remapped the \ to , since \ is awkward to type on german keyboards. is for plugins, is for filetype plugins. See ":help mapleader" for more information. Sincerely Meikel smime.p7s Description: S/MIME cryptographic signature
Re: running Gorilla
LocalLeader usually means \ On Thu, Dec 18, 2008 at 3:36 PM, Mark Volkmann wrote: > > On Thu, Dec 18, 2008 at 4:10 PM, Meikel Brandmeyer wrote: > > Hi, > > > > Am 18.12.2008 um 23:06 schrieb Mark Volkmann: > >> > >> Error detected while processing /Users/Mark/.vim/plugin/gorilla.vim: > >> line 558: > >> LoadError: /usr/local/lib/ruby/1.8/i686-darwin9.3.0/socket.bundle: > >> dlopen(/usr/local/lib/ruby/1.8/i686-darwin9.3.0/socket.bundle, 9): > >> Symbol not found: _rb_eStandardError > >> Press ENTER or type command to continue > >> > >> I don't know what to make of this. > >> BTW, I have Ruby 1.8.7. > > > > To be honest: I never compiled vim with Ruby support. > > So I don't know, what shadows may lurk on this path. > > > > Your error messages hint that you a running on a Mac. > > If that is the case, try MacVim. It is ruby enabled and > > works with the standard ruby of Mac Os out of the box. > > Okay, I'm using MacVim now and I have a gorilla server running. What > are the keystrokes to open a REPL buffer? The documentation says > sr. I don't know what LocalLeader means. Is that just a > colon? > > -- > R. Mark Volkmann > Object Computing, Inc. > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---
Re: running Gorilla
On Thu, Dec 18, 2008 at 4:10 PM, Meikel Brandmeyer wrote: > Hi, > > Am 18.12.2008 um 23:06 schrieb Mark Volkmann: >> >> Error detected while processing /Users/Mark/.vim/plugin/gorilla.vim: >> line 558: >> LoadError: /usr/local/lib/ruby/1.8/i686-darwin9.3.0/socket.bundle: >> dlopen(/usr/local/lib/ruby/1.8/i686-darwin9.3.0/socket.bundle, 9): >> Symbol not found: _rb_eStandardError >> Press ENTER or type command to continue >> >> I don't know what to make of this. >> BTW, I have Ruby 1.8.7. > > To be honest: I never compiled vim with Ruby support. > So I don't know, what shadows may lurk on this path. > > Your error messages hint that you a running on a Mac. > If that is the case, try MacVim. It is ruby enabled and > works with the standard ruby of Mac Os out of the box. Okay, I'm using MacVim now and I have a gorilla server running. What are the keystrokes to open a REPL buffer? The documentation says sr. I don't know what LocalLeader means. Is that just a colon? -- R. Mark Volkmann Object Computing, Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---
Re: running Gorilla
Hi, Am 18.12.2008 um 23:06 schrieb Mark Volkmann: Error detected while processing /Users/Mark/.vim/plugin/gorilla.vim: line 558: LoadError: /usr/local/lib/ruby/1.8/i686-darwin9.3.0/socket.bundle: dlopen(/usr/local/lib/ruby/1.8/i686-darwin9.3.0/socket.bundle, 9): Symbol not found: _rb_eStandardError Press ENTER or type command to continue I don't know what to make of this. BTW, I have Ruby 1.8.7. To be honest: I never compiled vim with Ruby support. So I don't know, what shadows may lurk on this path. Your error messages hint that you a running on a Mac. If that is the case, try MacVim. It is ruby enabled and works with the standard ruby of Mac Os out of the box. Sincerely Meikel smime.p7s Description: S/MIME cryptographic signature
Re: running Gorilla
On Thu, Dec 18, 2008 at 2:18 PM, Randall R Schulz wrote: > > On Thursday 18 December 2008 12:13, Mark Volkmann wrote: >> On Thu, Dec 18, 2008 at 2:07 PM, Randall R Schulz > wrote: >> > ... >> > >> > First of all, check whether you Vim has the necessary Ruby support: >> > >> > % vim --version |sed -n -e 1p -e '/ruby/p' >> > ... >> > >> > If you see "-ruby" then you're out of luck until you acquire or >> > rebuild Vim with Ruby support. >> >> Do you mean that I'm out of luck if I do not see "ruby"? > > No. This time I meant what I wrote. The minus sign means "without," the > plus sign "with." > > >> Here's what I get: >> >> VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Nov 11 2008 17:20:43) >> +printer -profile -python +quickfix +reltime -rightleft -ruby >> +scrollbind > > That's your problem. At least one of them: -ruby Okay, I'm hot on the trail with this! Here's what I did. 1) download the vim source from ftp://ftp.vim.org/pub/vim/unix/ 2) unzip it 3) cd to that directory 4) run "./configure --enable-rubyinterp" 5) run "sudo make install" Now when I run vim --version |sed -n -e 1p -e '/ruby/p I see +ruby! Now though when I run vim I get the following: Error detected while processing /Users/Mark/.vim/plugin/gorilla.vim: line 558: LoadError: /usr/local/lib/ruby/1.8/i686-darwin9.3.0/socket.bundle: dlopen(/usr/local/lib/ruby/1.8/i686-darwin9.3.0/socket.bundle, 9): Symbol not found: _rb_eStandardError Press ENTER or type command to continue I don't know what to make of this. BTW, I have Ruby 1.8.7. -- R. Mark Volkmann Object Computing, Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---
Re: running Gorilla
On Thursday 18 December 2008 12:13, Mark Volkmann wrote: > On Thu, Dec 18, 2008 at 2:07 PM, Randall R Schulz wrote: > > ... > > > > First of all, check whether you Vim has the necessary Ruby support: > > > > % vim --version |sed -n -e 1p -e '/ruby/p' > > ... > > > > If you see "-ruby" then you're out of luck until you acquire or > > rebuild Vim with Ruby support. > > Do you mean that I'm out of luck if I do not see "ruby"? No. This time I meant what I wrote. The minus sign means "without," the plus sign "with." > Here's what I get: > > VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Nov 11 2008 17:20:43) > +printer -profile -python +quickfix +reltime -rightleft -ruby > +scrollbind That's your problem. At least one of them: -ruby Randall Schulz --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---
Re: running Gorilla
On Thu, Dec 18, 2008 at 2:07 PM, Randall R Schulz wrote: > > On Thursday 18 December 2008 11:52, Mark Volkmann wrote: >> I'm probably doing something wrong, but I haven't been able to get >> Gorilla to work with Vim. The installation instructions say: >> >> ... >> >> I've done this, but it doesn't seem to recognize Gorilla shortcuts. >> Should I be able to open a REPL buffer by entering ":sr"? >> >> Am I missing an installation step? > > First of all, check whether you Vim has the necessary Ruby support: > > % vim --version |sed -n -e 1p -e '/ruby/p' > VIM - Vi IMproved 6.3 (2004 June 7, compiled Aug 15 2007 23:30:49) > +path_extra -perl +postscript +printer -python +quickfix +rightleft -ruby > > > % vim --version |sed -n -e 1p -e '/[-+]ruby/p' > VIM - Vi IMproved 7.1 (2007 May 12, compiled Dec 12 2007 14:10:50) > +python +quickfix +reltime +rightleft +ruby +scrollbind +signs +smartindent > > If you see "-ruby" then you're out of luck until you acquire or rebuild > Vim with Ruby support. Do you mean that I'm out of luck if I do not see "ruby"? Here's what I get: VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Nov 11 2008 17:20:43) +printer -profile -python +quickfix +reltime -rightleft -ruby +scrollbind -- R. Mark Volkmann Object Computing, Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---
Re: running Gorilla
Hi, Am 18.12.2008 um 20:52 schrieb Mark Volkmann: I've done this, but it doesn't seem to recognize Gorilla shortcuts. Should I be able to open a REPL buffer by entering ":sr"? The keymappings are only active in Clojure buffers. Try editing a clojure file or set the filetype manually with ":setfiletype clojure". Sincerely Meikel smime.p7s Description: S/MIME cryptographic signature
Re: running Gorilla
On Thursday 18 December 2008 11:52, Mark Volkmann wrote: > I'm probably doing something wrong, but I haven't been able to get > Gorilla to work with Vim. The installation instructions say: > > ... > > I've done this, but it doesn't seem to recognize Gorilla shortcuts. > Should I be able to open a REPL buffer by entering ":sr"? > > Am I missing an installation step? First of all, check whether you Vim has the necessary Ruby support: % vim --version |sed -n -e 1p -e '/ruby/p' VIM - Vi IMproved 6.3 (2004 June 7, compiled Aug 15 2007 23:30:49) +path_extra -perl +postscript +printer -python +quickfix +rightleft -ruby % vim --version |sed -n -e 1p -e '/[-+]ruby/p' VIM - Vi IMproved 7.1 (2007 May 12, compiled Dec 12 2007 14:10:50) +python +quickfix +reltime +rightleft +ruby +scrollbind +signs +smartindent If you see "-ruby" then you're out of luck until you acquire or rebuild Vim with Ruby support. Randall Schulz --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---