Promote classpath.vim

The included version is going away.  Let's start getting people to
install it.
This commit is contained in:
Tim Pope 2013-01-06 20:19:16 -05:00
parent 4c60151330
commit 0d96405c1f
2 changed files with 14 additions and 9 deletions

View File

@ -8,6 +8,7 @@ Clojure.
Foreplay.vim doesn't provide indenting or syntax highlighting, so you'll want 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). [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 If you don't have a preferred installation method, I recommend
installing [pathogen.vim](https://github.com/tpope/vim-pathogen), and installing [pathogen.vim](https://github.com/tpope/vim-pathogen), and
@ -15,6 +16,7 @@ then simply copy and paste:
cd ~/.vim/bundle cd ~/.vim/bundle
git clone git://github.com/tpope/vim-foreplay.git 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 git clone git://github.com/guns/vim-clojure-static.git
Once help tags have been generated, you can view the manual with 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. 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 Oh, and if you don't have an nREPL connection, installing [classpath.vim][]
`java clojure.main`, using a class path based on your Leiningen or Maven lets it fall back to using `java clojure.main`, using a class path based on
config. It's a bit slow, but a two second delay its vastly preferable to your Leiningen or Maven config. It's a bit slow, but a two second delay its
being forced out of my flow for a single command, in my book. 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 ### Not quite a REPL

View File

@ -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 class path. The class path is found by `lein classpath`, `mvn
dependency:build-classpath`, or failing both of those, $CLASSPATH. dependency:build-classpath`, or failing both of those, $CLASSPATH.
Finding the class path can be slow. To cache it across multiple invocations This behavior is going away soon. Install classpath.vim if you'd like to keep
of Vim, try it.
set viminfo+=! https://github.com/tpope/vim-classpath
LEININGEN *foreplay-leiningen* LEININGEN *foreplay-leiningen*
@ -37,8 +37,8 @@ CONNECTING TO A REPL *foreplay-connect*
REPL server. REPL server.
The REPL is used for the commands below. If no REPL is found for the current 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 buffer and classpath.vim is installed, java (or $JAVA_CMD) is invoked
path), which can be quite slow depending on your setup. directly, which can be quite slow depending on your setup.
The only adapter shipped with foreplay.vim is for nREPL. You need Ruby 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. installed and either |if_ruby| or the ruby command in your PATH.