Permalink
Browse files

added some bundles and commands

  • Loading branch information...
1 parent 95fc542 commit 75b4d7e57ab7708ad4a3acf286f3eb73e33038f0 @coreyhaines committed Oct 4, 2009
Showing with 8,126 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +8 −0 .vimrc
  3. +20 −0 bundle/vimclojure-2.1.2/LICENSE.txt
  4. +30 −0 bundle/vimclojure-2.1.2/Makefile
  5. +109 −0 bundle/vimclojure-2.1.2/README.txt
  6. +672 −0 bundle/vimclojure-2.1.2/autoload/vimclojure.vim
  7. +55 −0 bundle/vimclojure-2.1.2/bin/ng-server
  8. +243 −0 bundle/vimclojure-2.1.2/build.xml
  9. BIN bundle/vimclojure-2.1.2/build/vimclojure.jar
  10. +266 −0 bundle/vimclojure-2.1.2/doc/clojure.txt
  11. +1 −0 bundle/vimclojure-2.1.2/ftdetect/clojure.vim
  12. +157 −0 bundle/vimclojure-2.1.2/ftplugin/clojure.vim
  13. +433 −0 bundle/vimclojure-2.1.2/ftplugin/clojure/completions-clojure.core.txt
  14. +10 −0 bundle/vimclojure-2.1.2/ftplugin/clojure/completions-clojure.set.txt
  15. +13 −0 bundle/vimclojure-2.1.2/ftplugin/clojure/completions-clojure.xml.txt
  16. +27 −0 bundle/vimclojure-2.1.2/ftplugin/clojure/completions-clojure.zip.txt
  17. +206 −0 bundle/vimclojure-2.1.2/indent/clojure.vim
  18. +24 −0 bundle/vimclojure-2.1.2/ivy.xml
  19. +9 −0 bundle/vimclojure-2.1.2/ivysettings.xml
  20. BIN bundle/vimclojure-2.1.2/ng.exe
  21. +638 −0 bundle/vimclojure-2.1.2/ngclient/ng.c
  22. +113 −0 bundle/vimclojure-2.1.2/src/com/martiansoftware/nailgun/Alias.java
  23. +132 −0 bundle/vimclojure-2.1.2/src/com/martiansoftware/nailgun/AliasManager.java
  24. +61 −0 bundle/vimclojure-2.1.2/src/com/martiansoftware/nailgun/LongUtils.java
  25. +108 −0 bundle/vimclojure-2.1.2/src/com/martiansoftware/nailgun/NGConstants.java
  26. +261 −0 bundle/vimclojure-2.1.2/src/com/martiansoftware/nailgun/NGContext.java
  27. +47 −0 bundle/vimclojure-2.1.2/src/com/martiansoftware/nailgun/NGExitException.java
  28. +123 −0 bundle/vimclojure-2.1.2/src/com/martiansoftware/nailgun/NGInputStream.java
  29. +76 −0 bundle/vimclojure-2.1.2/src/com/martiansoftware/nailgun/NGOutputStream.java
  30. +74 −0 bundle/vimclojure-2.1.2/src/com/martiansoftware/nailgun/NGSecurityManager.java
  31. +506 −0 bundle/vimclojure-2.1.2/src/com/martiansoftware/nailgun/NGServer.java
  32. +337 −0 bundle/vimclojure-2.1.2/src/com/martiansoftware/nailgun/NGSession.java
  33. +122 −0 bundle/vimclojure-2.1.2/src/com/martiansoftware/nailgun/NGSessionPool.java
  34. +130 −0 bundle/vimclojure-2.1.2/src/com/martiansoftware/nailgun/NailStats.java
  35. +144 −0 bundle/vimclojure-2.1.2/src/com/martiansoftware/nailgun/ThreadLocalInputStream.java
  36. +261 −0 bundle/vimclojure-2.1.2/src/com/martiansoftware/nailgun/ThreadLocalPrintStream.java
  37. +37 −0 bundle/vimclojure-2.1.2/src/com/martiansoftware/nailgun/builtins/DefaultNail.java
  38. +82 −0 bundle/vimclojure-2.1.2/src/com/martiansoftware/nailgun/builtins/NGAlias.java
  39. +77 −0 bundle/vimclojure-2.1.2/src/com/martiansoftware/nailgun/builtins/NGClasspath.java
  40. +54 −0 bundle/vimclojure-2.1.2/src/com/martiansoftware/nailgun/builtins/NGServerStats.java
  41. +36 −0 bundle/vimclojure-2.1.2/src/com/martiansoftware/nailgun/builtins/NGStop.java
  42. +16 −0 bundle/vimclojure-2.1.2/src/com/martiansoftware/nailgun/builtins/NGVersion.java
  43. +14 −0 bundle/vimclojure-2.1.2/src/com/martiansoftware/nailgun/builtins/builtins.properties
  44. +3 −0 bundle/vimclojure-2.1.2/src/com/martiansoftware/nailgun/nailgun-version.properties
  45. +187 −0 bundle/vimclojure-2.1.2/src/de/kotka/vimclojure/backend.clj
  46. +30 −0 bundle/vimclojure-2.1.2/src/de/kotka/vimclojure/gencompletions.clj
  47. +236 −0 bundle/vimclojure-2.1.2/src/de/kotka/vimclojure/nails.clj
  48. +185 −0 bundle/vimclojure-2.1.2/src/de/kotka/vimclojure/repl.clj
  49. +393 −0 bundle/vimclojure-2.1.2/src/de/kotka/vimclojure/util.clj
  50. +97 −0 bundle/vimclojure-2.1.2/src/org/apache/tools/ant/ExitException.java
  51. +174 −0 plugin/ruby_focused_unit_test.vim
  52. +353 −0 ruby/fuzzy_file_finder.rb
  53. +8 −0 ruby_mappings.vim
  54. +266 −0 syntax/clojure.vim
  55. +100 −0 syntax/cucumber.vim
  56. +361 −0 syntax/ruby.vim
View
@@ -0,0 +1 @@
+.DS_Store
View
8 .vimrc
@@ -1,6 +1,7 @@
syntax on
filetype plugin indent on
colorscheme vividchalk
+au BufNewFile,BufRead *.clj set ft=clojure
runtime! autoload/pathogen.vim
if exists("g:loaded_pathogen")
@@ -14,3 +15,10 @@ if (has('gui_running'))
set lines=70
set number
endif
+
+autocmd FileType ruby runtime ruby_mappings.vim
+
+map <silent> <LocalLeader>nt :NERDTreeToggle<CR>
+map <silent> <LocalLeader>nr :NERDTree<CR>
+
+map <silent> <LocalLeader>nh :nohls<CR>
@@ -0,0 +1,20 @@
+Copyright 2008,2009 (c) Meikel Brandmeyer.
+All rights reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
@@ -0,0 +1,30 @@
+# This Makefile has only been tested on linux. It uses
+# MinGW32 to cross-compile for windows. To install and
+# configure MinGW32 on linux, see
+# http://www.mingw.org/MinGWiki/index.php/BuildMingwCross
+#
+# Marty Lamb
+
+CC=gcc
+CFLAGS=-Wall -pedantic -s -O3
+
+# Special library requirements
+# Default:
+LIBS=
+
+# OpenSolaris 2009.06
+#LIBS=-lsocket -lnsl
+
+# Windows
+#LIBS=-lwsock32
+
+ng: ngclient/ng.c
+ @echo "Building ng client. To build a Windows binary, type 'make ng.exe'"
+ ${CC} ${CFLAGS} ${LIBS} -o ng ngclient/ng.c
+
+clean:
+ @echo "If you have a Windows binary, 'make clean' won't delete it."
+ @echo "You must remove this manually. Most users won't have MinGW"
+ @echo "installed - so I'd rather not delete something they can't rebuild."
+ rm ng
+# rm ng.exe
@@ -0,0 +1,109 @@
+___ ______ ______________ ________
+__ | / /__(_)______ _____ ____/__ /___________(_)___ _____________
+__ | / /__ /__ __ `__ \ / __ /_ __ \____ /_ / / /_ ___/ _ \
+__ |/ / _ / _ / / / / / /___ _ / / /_/ /___ / / /_/ /_ / / __/
+_____/ /_/ /_/ /_/ /_/\____/ /_/ \____/___ / \__,_/ /_/ \___/
+ /___/
+
+VimClojure – a Clojure environment for Vim
+==========================================
+
+VimClojure is one of the most sophisticated editing environments for Clojure.
+It provides syntax highlighting, indenting and command completion.
+
+If requested it also provides a SLIME like interface to dynamically work with
+Clojure code. For this to work the included Nailgun server must be running.
+Remote may be forwarded via ssh.
+
+Features of the interactive interface are:
+
+- dynamic documentation lookup
+- dynamic javadoc lookup (in an external browser)
+- Repl running in a Vim buffer
+- smart omni completion
+- easy evaluation of code in a buffer
+
+To activate the interactive interface define the clj_want_gorilla variable
+in your .vimrc: let clj_want_gorilla = 1
+
+Requirements
+============
+
+Please make sure that the following options are set in your .vimrc:
+
+––8<––––8<––––8<––
+syntax on
+filetype plugin indent on
+––8<––––8<––––8<––
+
+Otherwise the filetype is not activated, and hence VimClojure doesn't work.
+
+Building the Nailgun interface
+==============================
+
+To build the Nailgun interface, create a local.properties file that contains
+the path to your clojure.jar and clojure-contrib.jar. The file should look
+similar to:
+
+––8<––––8<––––8<––
+clojure.jar=/path/to/clojure.jar
+clojure-contrib.jar=/path/to/clojure-contrib.jar
+nailgun-client=ng
+vimdir=/custom/installation/path/for/vimplugin
+––8<––––8<––––8<––
+
+Once you have created this file, simply run ant. This should give a
+vimclojure.jar containing the server part and the nailgun client. Note for
+Windows users: please leave out the last line in the properties file. The
+windows client for nailgun is included in the distribution as ng.exe. Delete
+it only in case you are sure, that you can rebuild it. You may see an error
+when building the nailgun-client. That's ok.
+
+Running „ant install“ will install the vim plugin into the named directory.
+If you omit the vimdir line in the local.properties file the vim plugin
+will be installed in the user's runtime directory – <home>/.vim on Unic/Mac,
+<home>\vimfiles on Windows.
+
+To run the Nailgun server you need the clojure.jar, clojure-contrib.jar and
+vimclojure.jar in your Classpath:
+
+java -cp /path/to/clojure.jar:/path/to/clojure-contrib.jar:/path/to/vimclojure.jar com.martiansoftware.nailgun.NGServer 127.0.0.1
+
+There is also a launcher script included in the bin subdirectory based on
+Stephen C. Gilardi's clj-env-dir launcher. Set the environment variable
+CLOJURE_EXT to the name of a directory containing the jars and (possibly
+links to) subdirectories you want in your classpath. Additionally the
+CLASSPATH environment variable will be added to the classpath.
+
+Put the nailgun client somewhere into your PATH or specify the location in
+your .vimrc by means of the vimclojure#NailgunClient variable.
+
+––8<––––8<––––8<––
+let vimclojure#NailgunClient = "/path/to/your/ng"
+––8<––––8<––––8<––
+
+Please refer to the online documentation in the doc folder for further
+information on how to use VimClojure, its features and its caveats.
+
+Note: You might need to check the Makefile for special lib requirments
+to compile the nailgun client, eg. OpenSolaris.
+
+Using Ivy
+=========
+
+Alternatively you may use Ivy to resolve the dependencies. Simply omit the
+first two lines in the local.properties file and ant will automatically
+download any missing dependencies. In case you don't have Ivy installed,
+this will be fetched also.
+
+VimClojure is available as Ivy dependency also. Run "ant publish-local"
+after building the VimClojure and use
+
+ <dependency org="de.kokta" name="vimclojure" rev="2.1.0"/>
+
+to include the VimClojure jar in your projects classpath. But mapping
+the dependency to a private configuration the dependency is only for
+development. Users of your project won't be bothered with the dependency.
+
+Meikel Branmdeyer <mb@kotka.de>
+Frankfurt am Main, 2009
Oops, something went wrong.

0 comments on commit 75b4d7e

Please sign in to comment.