Permalink
Browse files

Commit the entire .vim directory

  • Loading branch information...
1 parent e750de6 commit 10a8a216e7da28883cf5a977a083fa03b89e5414 Andrey Paramonov committed Oct 27, 2012
Showing with 4,436 additions and 0 deletions.
  1. +1,155 −0 .vim/autoload/vimclojure.vim
  2. +108 −0 .vim/autoload/vimclojure/util.vim
  3. +80 −0 .vim/bin/clj
  4. +55 −0 .vim/bin/clj.bat
  5. +77 −0 .vim/bin/ng-server
  6. +57 −0 .vim/bin/ng-server.bat
  7. +70 −0 .vim/doc/ack.txt
  8. +433 −0 .vim/doc/clojure.txt
  9. +66 −0 .vim/doc/tags
  10. +1 −0 .vim/ftdetect/clojure.vim
  11. +147 −0 .vim/ftplugin/clojure.vim
  12. +544 −0 .vim/ftplugin/clojure/completions-clojure.core.txt
  13. +1 −0 .vim/ftplugin/clojure/completions-clojure.data.txt
  14. +13 −0 .vim/ftplugin/clojure/completions-clojure.inspector.txt
  15. +2 −0 .vim/ftplugin/clojure/completions-clojure.java.browse.txt
  16. +19 −0 .vim/ftplugin/clojure/completions-clojure.java.io.txt
  17. +8 −0 .vim/ftplugin/clojure/completions-clojure.java.javadoc.txt
  18. +4 −0 .vim/ftplugin/clojure/completions-clojure.java.shell.txt
  19. +13 −0 .vim/ftplugin/clojure/completions-clojure.main.txt
  20. +25 −0 .vim/ftplugin/clojure/completions-clojure.pprint.txt
  21. +13 −0 .vim/ftplugin/clojure/completions-clojure.repl.txt
  22. +12 −0 .vim/ftplugin/clojure/completions-clojure.set.txt
  23. +5 −0 .vim/ftplugin/clojure/completions-clojure.stacktrace.txt
  24. +15 −0 .vim/ftplugin/clojure/completions-clojure.string.txt
  25. +2 −0 .vim/ftplugin/clojure/completions-clojure.template.txt
  26. +18 −0 .vim/ftplugin/clojure/completions-clojure.test.junit.txt
  27. +6 −0 .vim/ftplugin/clojure/completions-clojure.test.tap.txt
  28. +35 −0 .vim/ftplugin/clojure/completions-clojure.test.txt
  29. +10 −0 .vim/ftplugin/clojure/completions-clojure.walk.txt
  30. +13 −0 .vim/ftplugin/clojure/completions-clojure.xml.txt
  31. +27 −0 .vim/ftplugin/clojure/completions-clojure.zip.txt
  32. +268 −0 .vim/indent/clojure.vim
  33. +80 −0 .vim/plugin/ack.vim
  34. +637 −0 .vim/plugin/bufkill.vim
  35. +60 −0 .vim/plugin/clojure.vim
  36. +357 −0 .vim/syntax/clojure.vim
View

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,108 @@
+" Part of Vim filetype plugin for Clojure
+" Language: Clojure
+" Maintainer: Meikel Brandmeyer <mb@kotka.de>
+
+let s:save_cpo = &cpo
+set cpo&vim
+
+function! vimclojure#util#SynIdName()
+ return synIDattr(synID(line("."), col("."), 0), "name")
+endfunction
+
+function! vimclojure#util#WithSaved(closure)
+ let v = a:closure.save()
+ try
+ let r = a:closure.f()
+ finally
+ call a:closure.restore(v)
+ endtry
+ return r
+endfunction
+
+function! s:SavePosition() dict
+ let [ _b, l, c, _o ] = getpos(".")
+ let b = bufnr("%")
+ return [b, l, c]
+endfunction
+
+function! s:RestorePosition(value) dict
+ let [b, l, c] = a:value
+
+ if bufnr("%") != b
+ execute b "buffer!"
+ endif
+ call setpos(".", [0, l, c, 0])
+endfunction
+
+function! vimclojure#util#WithSavedPosition(closure)
+ let a:closure.save = function("s:SavePosition")
+ let a:closure.restore = function("s:RestorePosition")
+
+ return vimclojure#util#WithSaved(a:closure)
+endfunction
+
+function! s:SaveRegister(reg)
+ return [a:reg, getreg(a:reg, 1), getregtype(a:reg)]
+endfunction
+
+function! s:SaveRegisters() dict
+ return map([self._register, "", "/", "-",
+ \ "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
+ \ "s:SaveRegister(v:val)")
+endfunction
+
+function! s:RestoreRegisters(registers) dict
+ for register in a:registers
+ call call(function("setreg"), register)
+ endfor
+endfunction
+
+function! vimclojure#util#WithSavedRegister(reg, closure)
+ let a:closure._register = a:reg
+ let a:closure.save = function("s:SaveRegisters")
+ let a:closure.restore = function("s:RestoreRegisters")
+
+ return vimclojure#util#WithSaved(a:closure)
+endfunction
+
+function! s:SaveOption() dict
+ return eval("&" . self._option)
+endfunction
+
+function! s:RestoreOption(value) dict
+ execute "let &" . self._option . " = a:value"
+endfunction
+
+function! vimclojure#util#WithSavedOption(option, closure)
+ let a:closure._option = a:option
+ let a:closure.save = function("s:SaveOption")
+ let a:closure.restore = function("s:RestoreOption")
+
+ return vimclojure#util#WithSaved(a:closure)
+endfunction
+
+function! s:DoYank() dict
+ silent execute self.yank
+ return getreg(self.reg)
+endfunction
+
+function! vimclojure#util#Yank(r, how)
+ let closure = {
+ \ 'reg': a:r,
+ \ 'yank': a:how,
+ \ 'f': function("s:DoYank")
+ \ }
+
+ return vimclojure#util#WithSavedRegister(a:r, closure)
+endfunction
+
+function! vimclojure#util#MoveBackward()
+ call search('\S', 'Wb')
+endfunction
+
+function! vimclojure#util#MoveForward()
+ call search('\S', 'W')
+endfunction
+
+" Epilog
+let &cpo = s:save_cpo
View
@@ -0,0 +1,80 @@
+#!/bin/bash
+
+# Copyright (c) Stephen C. Gilardi. All rights reserved. The use and
+# distribution terms for this software are covered by the Eclipse Public
+# License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) which can be
+# found in the file epl-v10.html at the root of this distribution. By
+# using this software in any fashion, you are agreeing to be bound by the
+# terms of this license. You must not remove this notice, or any other,
+# from this software.
+#
+# clj-env-dir Launches Clojure, passing along command line arguments. This
+# launcher can be configured using environment variables and
+# makes it easy to include directories full of classpath roots
+# in CLASSPATH.
+#
+# scgilardi (gmail)
+# Created 7 January 2009
+#
+# Modified to read in an optional .clojure file in the current directory
+# naming further items for the CLASSPATH.
+#
+# Meikel Brandmeyer (mb ? kotka ! de)
+# Frankfurt am Main, 21.08.2009
+#
+# Environment variables (optional):
+#
+# CLOJURE_EXT Colon-delimited list of paths to directories whose top-level
+# contents are (either directly or as symbolic links) jar
+# files and/or directories whose paths will be in Clojure's
+# classpath. The value of the CLASSPATH environment variable
+# for Clojure will include these top-level paths followed by
+# the previous value of CLASSPATH (if any).
+# default:
+# example: /usr/local/share/clojure/ext:$HOME/.clojure.d/ext
+#
+# CLOJURE_JAVA The command to launch a JVM instance for Clojure
+# default: java
+# example: /usr/local/bin/java6
+#
+# CLOJURE_OPTS Java options for this JVM instance
+# default:
+# example:"-Xms32M -Xmx128M -server"
+#
+# CLOJURE_MAIN The Java class to launch
+# default: clojure.main
+# example: clojure.contrib.repl_ln
+
+set -o errexit
+#set -o nounset
+#set -o xtrace
+
+if [ -n "${CLOJURE_EXT:-}" ]; then
+ OLD="$IFS"
+ IFS=":"
+ EXT="$(find -H ${CLOJURE_EXT} -mindepth 1 -maxdepth 1 -print0 | tr \\0 \:)"
+ IFS="$OLD"
+ if [ -n "${CLASSPATH:-}" ]; then
+ CLASSPATH="${EXT}${CLASSPATH}"
+ else
+ CLASSPATH="${EXT%:}"
+ fi
+fi
+
+if [ -f .clojure ]; then
+ for path in `cat .clojure`; do
+ if [ -n "${CLASSPATH:-}" ]; then
+ CLASSPATH="${path}:${CLASSPATH}"
+ else
+ CLASSPATH="${path%:}"
+ fi
+ done
+fi
+
+export CLASSPATH
+
+JAVA=${CLOJURE_JAVA:-java}
+OPTS=${CLOJURE_OPTS:-}
+MAIN=${CLOJURE_MAIN:-clojure.main}
+
+exec ${JAVA} ${OPTS} ${MAIN} "$@"
View
@@ -0,0 +1,55 @@
+@ECHO OFF
+
+REM # Copyright (c) Stephen C. Gilardi. All rights reserved. The use and
+REM # distribution terms for this software are covered by the Eclipse Public
+REM # License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) which can be
+REM # found in the file epl-v10.html at the root of this distribution. By
+REM # using this software in any fashion, you are agreeing to be bound by the
+REM # terms of this license. You must not remove this notice, or any other,
+REM # from this software.
+REM #
+REM # scgilardi (gmail)
+REM # Created 7 January 2009
+REM #
+REM # Modified by Justin Johnson <justin _ honesthacker com> to run on Windows
+REM # and to include a check for .clojure file in the current directory.
+REM #
+REM # Environment variables:
+REM #
+REM # Optional:
+REM #
+REM # CLOJURE_EXT The path to a directory containing (either directly or as
+REM # symbolic links) jar files and/or directories whose paths
+REM # should be in Clojure's classpath. The value of the
+REM # CLASSPATH environment variable for Clojure will be a list
+REM # of these paths followed by the previous value of CLASSPATH
+REM # (if any).
+REM #
+REM # CLOJURE_JAVA The command to launch a JVM instance for Clojure
+REM # default: java
+REM # example: /usr/local/bin/java6
+REM #
+REM # CLOJURE_OPTS Java options for this JVM instance
+REM # default:
+REM # example:"-Xms32M -Xmx128M -server"
+REM #
+REM # Configuration files:
+REM #
+REM # Optional:
+REM #
+REM # .clojure A file sitting in the directory where you invoke ng-server.
+REM # Each line contains a single path that should be added to the classpath.
+REM #
+
+SETLOCAL ENABLEDELAYEDEXPANSION
+
+REM # Add all jar files from CLOJURE_EXT directory to classpath
+IF DEFINED CLOJURE_EXT FOR %%E IN ("%CLOJURE_EXT%\*") DO SET CP=!CP!;%%~fE
+
+IF NOT DEFINED CLOJURE_JAVA SET CLOJURE_JAVA=java
+
+REM # If the current directory has a .clojure file in it, add each path
+REM # in the file to the classpath.
+IF EXIST .clojure FOR /F %%E IN (.clojure) DO SET CP=!CP!;%%~fE
+
+%CLOJURE_JAVA% %CLOJURE_OPTS% -cp "%CP%" clojure.main %1 %2 %3 %4 %5 %6 %7 %8 %9
View
@@ -0,0 +1,77 @@
+#! /usr/bin/env bash
+
+# Copyright (c) Stephen C. Gilardi. All rights reserved. The use and
+# distribution terms for this software are covered by the Eclipse Public
+# License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) which can be
+# found in the file epl-v10.html at the root of this distribution. By
+# using this software in any fashion, you are agreeing to be bound by the
+# terms of this license. You must not remove this notice, or any other,
+# from this software.
+#
+# clj-env-dir Launches Clojure, passing along command line arguments. This
+# launcher can be configured using environment variables and
+# makes it easy to include directories full of classpath roots
+# in CLASSPATH.
+#
+# scgilardi (gmail)
+# Created 7 January 2009
+#
+# Modified to act as launcher for the Nailgun server and to read in an
+# optional .clojure file in the current directory naming further items
+# for the CLASSPATH.
+#
+# Meikel Brandmeyer (mb ? kotka ! de)
+# Frankfurt am Main, 21.08.2009
+#
+# Environment variables (optional):
+#
+# CLOJURE_EXT Colon-delimited list of paths to directories whose top-level
+# contents are (either directly or as symbolic links) jar
+# files and/or directories whose paths will be in Clojure's
+# classpath. The value of the CLASSPATH environment variable
+# for Clojure will include these top-level paths followed by
+# the previous value of CLASSPATH (if any).
+# default:
+# example: /usr/local/share/clojure/ext:$HOME/.clojure.d/ext
+#
+# CLOJURE_JAVA The command to launch a JVM instance for Clojure
+# default: java
+# example: /usr/local/bin/java6
+#
+# CLOJURE_OPTS Java options for this JVM instance
+# default:
+# example:"-Xms32M -Xmx128M -server"
+#
+# .clojure A file in the current directory. Every line names an item
+# which will be added to the CLASSPATH.
+
+set -o errexit
+#set -o nounset
+#set -o xtrace
+
+if [ -n "${CLOJURE_EXT:-}" ]; then
+ OLD="$IFS"
+ IFS=":"
+ EXT="$(find -H ${CLOJURE_EXT} -mindepth 1 -maxdepth 1 -print0 | tr \\0 \:)"
+ IFS="$OLD"
+ if [ -n "${CLASSPATH:-}" ]; then
+ export CLASSPATH="${EXT}${CLASSPATH}"
+ else
+ export CLASSPATH="${EXT%:}"
+ fi
+fi
+
+if [ -f .clojure ]; then
+ for path in `cat .clojure`; do
+ if [ -n "${CLASSPATH:-}" ]; then
+ export CLASSPATH="${path}:${CLASSPATH}"
+ else
+ export CLASSPATH="${path%:}"
+ fi
+ done
+fi
+
+JAVA=${CLOJURE_JAVA:-java}
+OPTS=${CLOJURE_OPTS:-}
+
+exec ${JAVA} ${OPTS} vimclojure.nailgun.NGServer 127.0.0.1 "$@"
View
@@ -0,0 +1,57 @@
+@ECHO OFF
+
+REM # Copyright (c) Stephen C. Gilardi. All rights reserved. The use and
+REM # distribution terms for this software are covered by the Eclipse Public
+REM # License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) which can be
+REM # found in the file epl-v10.html at the root of this distribution. By
+REM # using this software in any fashion, you are agreeing to be bound by the
+REM # terms of this license. You must not remove this notice, or any other,
+REM # from this software.
+REM #
+REM # scgilardi (gmail)
+REM # Created 7 January 2009
+REM #
+REM # Modified by Justin Johnson <justin _ honesthacker com> to act as Windows
+REM # launcher for the Nailgun server of VimClojure, and to include a check for
+REM # a .clojure file in the current directory.
+REM #
+REM # Environment variables:
+REM #
+REM # Optional:
+REM #
+REM # CLOJURE_EXT The path to a directory containing (either directly or as
+REM # symbolic links) jar files and/or directories whose paths
+REM # should be in Clojure's classpath. The value of the
+REM # CLASSPATH environment variable for Clojure will be a list
+REM # of these paths followed by the previous value of CLASSPATH
+REM # (if any).
+REM #
+REM # CLOJURE_JAVA The command to launch a JVM instance for Clojure
+REM # default: java
+REM # example: /usr/local/bin/java6
+REM #
+REM # CLOJURE_OPTS Java options for this JVM instance
+REM # default:
+REM # example:"-Xms32M -Xmx128M -server"
+REM #
+REM # Configuration files:
+REM #
+REM # Optional:
+REM #
+REM # .clojure A file sitting in the directory where you invoke ng-server.
+REM # Each line contains a single path that should be added to the classpath.
+REM #
+
+SETLOCAL ENABLEDELAYEDEXPANSION
+
+REM # Add all jar files from CLOJURE_EXT directory to classpath
+IF DEFINED CLOJURE_EXT FOR %%E IN ("%CLOJURE_EXT%\*") DO SET CP=!CP!;%%~fE
+
+IF NOT DEFINED CLOJURE_JAVA SET CLOJURE_JAVA=java
+
+REM # If the current directory has a .clojure file in it, add each path
+REM # in the file to the classpath.
+IF EXIST .clojure FOR /F %%E IN (.clojure) DO SET CP=!CP!;%%~fE
+
+REM # Since we do not provide any security we at least bind only to the loopback.
+%CLOJURE_JAVA% %CLOJURE_OPTS% -cp "%CP%" vimclojure.nailgun.NGServer 127.0.0.1 %1 %2 %3 %4 %5 %6 %7 %8 %9
Oops, something went wrong.

0 comments on commit 10a8a21

Please sign in to comment.