Promote classpath.vim
The included version is going away. Let's start getting people to install it.
This commit is contained in:
parent
4c60151330
commit
0d96405c1f
@ -8,6 +8,7 @@ Clojure.
|
||||
|
||||
Foreplay.vim doesn't provide indenting or syntax highlighting, so you'll want
|
||||
[a set of Clojure runtime files](https://github.com/guns/vim-clojure-static).
|
||||
You might also want [classpath.vim][] to run code when no REPL is available.
|
||||
|
||||
If you don't have a preferred installation method, I recommend
|
||||
installing [pathogen.vim](https://github.com/tpope/vim-pathogen), and
|
||||
@ -15,6 +16,7 @@ then simply copy and paste:
|
||||
|
||||
cd ~/.vim/bundle
|
||||
git clone git://github.com/tpope/vim-foreplay.git
|
||||
git clone git://github.com/tpope/vim-classpath.git
|
||||
git clone git://github.com/guns/vim-clojure-static.git
|
||||
|
||||
Once help tags have been generated, you can view the manual with
|
||||
@ -33,10 +35,13 @@ use the right one automatically.
|
||||
|
||||
The only external dependency is that you have Ruby installed.
|
||||
|
||||
Oh, and if you don't have an nREPL connection, it falls back to using
|
||||
`java clojure.main`, using a class path based on your Leiningen or Maven
|
||||
config. It's a bit slow, but a two second delay its vastly preferable to
|
||||
being forced out of my flow for a single command, in my book.
|
||||
Oh, and if you don't have an nREPL connection, installing [classpath.vim][]
|
||||
lets it fall back to using `java clojure.main`, using a class path based on
|
||||
your Leiningen or Maven config. It's a bit slow, but a two second delay its
|
||||
vastly preferable to being forced out of my flow for a single command, in my
|
||||
book.
|
||||
|
||||
[classpath.vim]: https://github.com/tpope/vim-classpath
|
||||
|
||||
### Not quite a REPL
|
||||
|
||||
|
@ -14,10 +14,10 @@ Upon loading a Clojure buffer, the 'path' option is automatically set to your
|
||||
class path. The class path is found by `lein classpath`, `mvn
|
||||
dependency:build-classpath`, or failing both of those, $CLASSPATH.
|
||||
|
||||
Finding the class path can be slow. To cache it across multiple invocations
|
||||
of Vim, try
|
||||
This behavior is going away soon. Install classpath.vim if you'd like to keep
|
||||
it.
|
||||
|
||||
set viminfo+=!
|
||||
https://github.com/tpope/vim-classpath
|
||||
|
||||
LEININGEN *foreplay-leiningen*
|
||||
|
||||
@ -37,8 +37,8 @@ CONNECTING TO A REPL *foreplay-connect*
|
||||
REPL server.
|
||||
|
||||
The REPL is used for the commands below. If no REPL is found for the current
|
||||
buffer, java (or $JAVA_CMD) is invoked directly (using 'path' as the class
|
||||
path), which can be quite slow depending on your setup.
|
||||
buffer and classpath.vim is installed, java (or $JAVA_CMD) is invoked
|
||||
directly, which can be quite slow depending on your setup.
|
||||
|
||||
The only adapter shipped with foreplay.vim is for nREPL. You need Ruby
|
||||
installed and either |if_ruby| or the ruby command in your PATH.
|
||||
|
Loading…
Reference in New Issue
Block a user