not sure whether I am doing something wrong, but for a project with many jar
artifacts [1] that have to be classpath-fed to nailgun I need to armwrestle
vim(clojure) to start honoring the mappings and calling into vimclojure's
(version 2.1.2) guts and onto nailgun...

Here's what I mean by armwrestle:
+ I open a clojure module that depends (directly or indirectly on the
aforementioned jar artifacts [1])
+ When I do that I get the syntax highlighting and the omni-completions
+ But I don't get any of the 'vimclojure commands' mapped:
     :nmap:
     n  gx            <Plug>NetrwBrowseX
     n  <Plug>NetrwBrowseX * :call
netrw#NetrwBrowseX(expand("<cWORD>"),0)<CR>
+ Then I am able to 'unlock' the 'vimclojure commands' by opening (in the
same vim session) a toy clojure module [2] and sending it for evaluation to
nailgun.

Any ideas of why things are not clicking for me at the start? It's worth
mentioning an error [3] vim [4] is reporting each time vimclojure asks
nailgun to evaluate a clojure form (the evaluation succeeds, though).

[1] java -Xms256m -Xmx1024m -cp
${VIMCLOJURE_HOME}/build/vimclojure.jar:/home/nkolev/projects/bayermdm/trunk/common/target/classes:/home/nkolev/.m2/repository/com/hmsonline/datastore/datastore-clj/1.0.4.1-SNAPSHOT/datastore-clj-1.0.4.1-SNAPSHOT.jar:/home/nkolev/.m2/repository/org/clojure/clojure-lang/1.1.0-5f1e6ed540eab11281b7bfb19f831b7e445ed0d0/clojure-lang-1.1.0-5f1e6ed540eab11281b7bfb19f831b7e445ed0d0.jar:/home/nkolev/.m2/repository/org/clojure/clojure-contrib/1.0-39618b6d881fb0c3b52de4929aa34134bb32ffdb/clojure-contrib-1.0-39618b6d881fb0c3b52de4929aa34134bb32ffdb.jar:/home/nkolev/.m2/repository/com/hmsonline/common/hmscommon-clojure/1.1.0.0-SNAPSHOT/hmscommon-clojure-1.1.0.0-SNAPSHOT.jar:/home/nkolev/.m2/repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar:/home/nkolev/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar:/home/nkolev/.m2/repository/commons-codec/commons-codec/1.2/commons-codec-1.2.jar:/home/nkolev/.m2/repository/com/hmsonline/datastore/datastore-ejb-client/1.0.4.1-SNAPSHOT/datastore-ejb-client-1.0.4.1-SNAPSHOT.jar:/home/nkolev/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar:/home/nkolev/.m2/repository/com/hmsonline/common/hmsCommon-ejb/3.0.6/hmsCommon-ejb-3.0.6.jar:/home/nkolev/.m2/repository/com/hmsonline/common/hmsCommon-util/3.0.39/hmsCommon-util-3.0.39.jar:/home/nkolev/.m2/repository/com/hmsonline/common/hmsCommon-collections/1.0.15/hmsCommon-collections-1.0.15.jar:/home/nkolev/.m2/repository/commons-collections/commons-collections/3.2/commons-collections-3.2.jar:/home/nkolev/.m2/repository/commons-cli/commons-cli/1.0-LEGIT/commons-cli-1.0-LEGIT.jar:/home/nkolev/.m2/repository/poi/poi/2.5.1-final-20040804/poi-2.5.1-final-20040804.jar:/home/nkolev/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar:/home/nkolev/.m2/repository/velocity/velocity/1.5/velocity-1.5.jar:/home/nkolev/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar:/home/nkolev/.m2/repository/com/healthmarketscience/common/common-util/1.0.4/common-util-1.0.4.jar:/home/nkolev/.m2/repository/com/hmsonline/common/hmsCommon-xml/1.0.9/hmsCommon-xml-1.0.9.jar:/home/nkolev/.m2/repository/commons-io/commons-io/1.4/commons-io-1.4.jar:/home/nkolev/.m2/repository/com/hmsonline/common/hmsCommon-jmx/3.0.3/hmsCommon-jmx-3.0.3.jar:/home/nkolev/.m2/repository/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar:/home/nkolev/.m2/repository/com/hmsonline/common/hmsCommon-abtab/1.2.10/hmsCommon-abtab-1.2.10.jar:/home/nkolev/.m2/repository/com/hmsonline/common/hmsCommon-db/1.0.19/hmsCommon-db-1.0.19.jar:/home/nkolev/.m2/repository/com/healthmarketscience/sqlbuilder/sqlbuilder/1.0/sqlbuilder-1.0.jar:/home/nkolev/.m2/repository/com/healthmarketscience/rmiio/rmiio/1.1.0/rmiio-1.1.0.jar:/home/nkolev/.m2/repository/commons-dbcp/commons-dbcp/1.2.2/commons-dbcp-1.2.2.jar:/home/nkolev/.m2/repository/commons-pool/commons-pool/1.3/commons-pool-1.3.jar:/home/nkolev/.m2/repository/hibernate/hibernate/2.1.5-hms/hibernate-2.1.5-hms.jar:/home/nkolev/.m2/repository/com/google/code/guice/guice/1.0/guice-1.0.jar:/home/nkolev/.m2/repository/commons-configuration/commons-configuration/1.6/commons-configuration-1.6.jar:/home/nkolev/.m2/repository/commons-digester/commons-digester/1.8/commons-digester-1.8.jar:/home/nkolev/.m2/repository/com/healthmarketscience/jackcess/jackcess/1.1.14/jackcess-1.1.14.jar:/home/nkolev/.m2/repository/commons-compress/commons-compress/20050911/commons-compress-20050911.jar:/home/nkolev/.m2/repository/oranxo/gate3/2.07/gate3-2.07.jar:/home/nkolev/.m2/repository/com/hmsonline/lms/lms-common/
1.1.0.6/lms-common-1.1.0.6.jar:/home/nkolev/.m2/repository/com/hmsonline/geocode/geocode-geog/3.2.3/geocode-geog-3.2.3.jar:/home/nkolev/.m2/repository/com/google/google-collections/0.5/google-collections-0.5.jar:/home/nkolev/.m2/repository/com/hmsonline/geocode/geocode-geostanBean-ejb/3.2.3/geocode-geostanBean-ejb-3.2.3-client.jar:/home/nkolev/.m2/repository/com/hmsonline/geocode/geocode-standardizer/3.2.3/geocode-standardizer-3.2.3.jar:/home/nkolev/.m2/repository/com/hmsonline/geocode/geocode-geostan/3.2.3/geocode-geostan-3.2.3.jar:/home/nkolev/.m2/repository/com/hmsonline/lms/lms-ejb/1.1.0.6/lms-ejb-1.1.0.6-client.jar:/home/nkolev/.m2/repository/com/hmsonline/mdmutils/1.1.0.1/mdmutils-1.1.0.1.jar:/home/nkolev/.m2/repository/joda-time/joda-time/1.5.2/joda-time-1.5.2.jar:/home/nkolev/.m2/repository/com/hmsonline/common/hmsCommon-hms/1.0.8/hmsCommon-hms-1.0.8.jar:/home/nkolev/.m2/repository/jboss/jboss-aspect-jdk50-client/4.0.5.GA/jboss-aspect-jdk50-client-4.0.5.GA.jar:/home/nkolev/.m2/repository/jboss/jboss-ejb3-client/4.0.5.GA/jboss-ejb3-client-4.0.5.GA.jar:/home/nkolev/.m2/repository/jboss/jbossall-client/4.0.5.GA-hms-1/jbossall-client-4.0.5.GA-hms-1.jar:/home/nkolev/.m2/repository/jboss/jboss-aop-jdk50-client/4.0.5.GA-hms-1/jboss-aop-jdk50-client-4.0.5.GA-hms-1.jar:/home/nkolev/.m2/repository/org/jboss/jboss-ejb3x/4.0.5.GA/jboss-ejb3x-4.0.5.GA.jar:/home/nkolev/projects/bayermdm/trunk/common/target/../src/main/cljcom.martiansoftware.nailgun.NGServer
127.0.0.1

[2] (defn foo [] "foo") (foo)

[3] Error detected while processing function vimclojure#EvalLine..3..1:
line    1:
E716: Key not present in Dictionary: _buffer
E15: Invalid expression: "buffer! " . self._buffer

[4] :version
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Aug 20 2009 08:37:35)
Compiled by nko...@nkolev-lin2
Normal version without GUI.  Features included (+) or not (-):
-arabic +autocmd -balloon_eval -browse +builtin_terms +byte_offset +cindent
-clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info
+comments +cryptv -cscope +cursorshape +dialog_con +diff
+digraphs -dnd -ebcdic -emacs_tags +eval +ex_extra +extra_search -farsi
+file_in_path +find_in_path +float +folding -footer +fork() -gettext
-hangul_input -iconv +insert_expand +jumplist -keymap -langmap
+libcall +linebreak +lispindent +listcmds +localmap +menu +mksession
+modify_fname +mouse -mouseshape -mouse_dec -mouse_gpm -mouse_jsbterm
-mouse_netterm -mouse_sysmouse +mouse_xterm -multi_byte +multi_lang
-mzscheme -netbeans_intg -osfiletype +path_extra -perl +postscript +printer
-profile -python +quickfix +reltime -rightleft -ruby +scrollbind -signs
+smartindent -sniff +statusline -sun_workshop +syntax
+tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse
+textobjects +title -toolbar +user_commands +vertsplit +virtualedit +visual
+visualextra +viminfo +vreplace +wildignore +wildmenu
+windows +writebackup -X11 -xfontset -xim -xsmp -xterm_clipboard -xterm_save
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/local/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H     -O2 -fno-strength-reduce
-Wall
Linking: gcc   -L/usr/local/lib -o vim       -lm -lncurses -lselinux


On Thu, Sep 3, 2009 at 9:52 AM, bballant <brianballant...@gmail.com> wrote:

>
> 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