Hi,

I got vimclojure working after some pain.  Perhaps checking out how I
have things set up will help:

br...@milo:~/clojure$ ls
clojure  clojure-contrib  programs  slime  swank-clojure
vimclojure-2.1.2
br...@milo:~/clojure$ pwd
/home/brian/clojure

I put the command to start nailgun into an executable script.  The key
element for me, after wrastling with this, was to have the directory
I'm working in on the classpath for nailgun (this is all one line that
wraps):

java -cp /home/brian/clojure/clojure/clojure.jar:/home/brian/clojure/
clojure-contrib/clojure-contrib.jar:/home/brian/clojure/
vimclojure-2.1.2/build/vimclojure.jar:/home/brian/clojure/programs/:.
com.martiansoftware.nailgun.NGServer 127.0.0.1

When the documentation says to use the shortcut |sr| or whatever, you
have to type <LocalLeader> first, which is by default a backslash
(\).  You probably don't have to remap it to a comma in your .vimrc
unless you want it to be a comma, or unless doing so gives you piece
of mind ("Ok, so at least I KNOW FOR SURE what <LocalLeader> is"),
which is always nice.

I hope this helps.  Good luck.

-Brian


On Sep 3, 2:14 am, Meikel Brandmeyer <m...@kotka.de> wrote:
> Hi,
>
> On Sep 3, 2:21 am, Bokeh Sensei <bokeh.sen...@gmail.com> wrote:
>
> > vimclojure took me a whole weekend to get started.
> > it's sensitive to how it's setup, but with no way to automatically
> > verify the correctness of it.
>
> Ok. I give up. Obviously I'm not able to explain how to install
> VimClojure, neither with the README nor with the screencast.
>
> ANY VC USERS OUT THERE WITH A RUNNING SETUP!
> Please think about contributing some documentation on how
> to setup up VimClojure! I'm routine-blinded so any documentation
> from the "outside" with a fresh view is highly appreciated!
>
> > Try this in vim:
>
> > :call vimclojure#Repl.New()
>
> Please don't do that. Poking in the guts doesn't help. The problem is
> more likely in the setup.
>
> On Sep 2, 10:31 pm, ronen <nark...@gmail.com> wrote:
>
> > Iv been trying to use the Nailgun functionlity of vimclojure but Im
> > stuck on a silly issue, Im hitting <LocalLeader>el inside:
> > (println "hello")
>
> >  And nothing happens, same goes for the rest options.
>
> Things to check:
>  - Did you install the vim side of the plugin? ("ant install" should
> be sufficient)
>  - Did you enable filetype plugins and syntax highlighting?
>  - Is the filetype of the buffer correctly set to "clojure"?
>  - Are the key mappings set up correctly? (Check with "nmap" and look
> for something like "Clojure....")
>  - Are there error messages? (Check with ":messages")
>
> This should cover the "nothing happens" case. If that doesn't help, I
> will need a more detailed description, what you did to setup VC and
> how your .vimrc looks like. If there are failure messages, I'll need
> the message content. (Not the whole stacktrace, but what the message
> said...)
>
> > In addition its not clear to me how to start the REPL the doc/
> > README.txt says:
>
> > "Start a Repl via the |sr| shortcut. At the prompt just type
> > expressions"
>
> > Im typing sr with and without pipes with no avail.
>
> The pipes are a marker for Vim's online help system. Run ':helptags
> ~/.vim/doc' after installing the Vim plugin of VC to regenerate the
> tags file. Then hitting <C-]> on the text in the pipes or (in gvim)
> double-clicking it will jump to the referenced documentation. There
> you will be told that the key mapping is '<LocalLeader>sr'.
> '<LocalLeader>' is a configurable key which defaults to \. So the
> correct key mapping to start a repl is \sr. Similar the other
> mappings: \et, \eb, \lw, ...
>
> The '<LocalLeader>' can be configured via the special maplocalleader
> variable. When you put 'let maplocalleader = ","' in your .vimrc, the
> mappings will be ,et etc...
>
> More on these topics:
> :help helptags
> :help mapleader
> :help maplocalleader or :help <LocalLeader>
>
> > My vimrc settings are:
> > " Vim Clojure
> > let vimclojure#NailgunClient = "/home/ronen/.vimclojure/ng"
> > let clj_want_gorilla = 1
> > let clj_paren_rainbow = 1
> > let clj_highlight_builtins = 1
> > let clj_highlight_contrib = 1
>
> > Im starting Nailgun with:
>
> > java -cp ../.clojure/:build/vimclojure.jar:src/
> > com.martiansoftware.nailgun.NGServer 127.0.0.1
>
> This will not be sufficient. You will also need clojure.contrib.pprint
> and clojure.contrib.def in your classpath. Also the clojure directory
> looks suspicious. Did you mean the clojure.jar?
>
> 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
Note that posts from new members are moderated - please be patient with your 
first post.
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to