Hi,

On Jul 17, 3:51 pm, Dragan Djuric <draga...@gmail.com> wrote:

> I have installed vimClojure and it seems to work, but... how to push
> the code to the REPL?

Ok. Let's see. Step by step...

0. Start ng-server
1. Start a fresh vim.
2. :setfiletype clojure (a colon command like :w or :q)
3. \sr (should open a new window)
4. <Esc><C-w><C-w> (to go back to first window) (<C-w> is Control+w,
<M-w> would be Alt+w)
5. Type in some function: (defn greet [] (println "Hello, World!"))
6. Make sure the cursor is in the function, eg. on the e of Hello.
7. \et (to send the function to the Repl)
8. A new window should open, containing #'user/greet. Type \p to close
the window.
9. Go to the Repl window, eg. with <C-w><C-w>.
11. At the prompt type (gr and hit <C-x><C-o> to complete the function
name.
10. Submit (greet) by hitting return. (the Repl should now print
"Hello, World!")
12. Have fun toying around.

Note, when you have a file with a ns or in-ns clause at the top,
the file *must* be on the classpath and the file *must* parseable
by clojure without errors!

Hope this helps.

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