Gorilla: key combinations

6 views
Skip to first unread message

Alex Burka

unread,
Dec 15, 2008, 10:08:20 PM12/15/08
to clo...@googlegroups.com
Thanks for Gorilla. I am using it with MacVim. One (or :bug :pebkac)
report...

I put plugin/gorilla.vim in /Applications/MacVim.app/Contents/
Resources/vim/runtime/plugin/ and it seems to be loaded when MacVim
starts. But the keybindings are not set up. \sr doesn't do anything
(well, the 's' puts Vim in insert mode). I can do :ruby
Gorilla::Repl.start() (which \sr is supposed to be bound to), and that
works. I can also do :ruby Gorilla.setup_maps() and after that \sr
starts the REPL as expected. I fixed this by adding the line
"Gorilla.setup_maps()" before the "EOF" line in gorilla.vim, but I
imagine that shouldn't be necesssary.

Alex

Meikel Brandmeyer

unread,
Dec 16, 2008, 2:32:55 AM12/16/08
to Clojure
Hi,

On 16 Dez., 04:08, Alex Burka <zapper3...@gmail.com> wrote:
> I put plugin/gorilla.vim in /Applications/MacVim.app/Contents/
> Resources/vim/runtime/plugin/.

The correct way to install Gorilla is to copy the contents of the
plugin, after and doc directories to your .vim directory in your
home directory. Be sure to keep the structure intact. So
after/ftplugin/clojure/gorilla.vim should go to ~/.vim/after/ftplugin/
clojure/gorilla.vim.

From inside macvim run ":helptags ~/.vim/doc" and you have
a running Gorilla installation with online help.

Installing everything in the app directory is a bad idea, because
it has to be redone everytime you install a new MacVim.

Hope this helps.

Sincerely
Meikel

Drew Olson

unread,
Dec 16, 2008, 8:55:50 AM12/16/08
to clo...@googlegroups.com
On Mon, Dec 15, 2008 at 10:08 PM, Alex Burka <zappe...@gmail.com> wrote:

Thanks for Gorilla. I am using it with MacVim. One (or :bug :pebkac)
report...

I put plugin/gorilla.vim in /Applications/MacVim.app/Contents/
Resources/vim/runtime/plugin/ and it seems to be loaded when MacVim
starts. But the keybindings are not set up. \sr doesn't do anything
(well, the 's' puts Vim in insert mode).

Alex -

Make sure your filetype is set to clojure. You can test this with:

:set filetype?

If it's not, try:

:set filetype=clojure

then perform the command \sr again.

- Drew 
Reply all
Reply to author
Forward
0 new messages