├── .vim_from_inspiron ├── tags ├── templates │ ├── template.rb │ ├── template.php │ ├── template.c │ ├── template.cpp │ ├── template.vim │ ├── template.h │ ├── template.sh │ ├── template.py │ └── template.lisp ├── snippets │ ├── php │ │ └── fun │ ├── eruby.snippets │ ├── snippet.snippets │ ├── _.snippets │ ├── sh.snippets │ ├── vim.snippets │ ├── cpp.snippets │ ├── autoit.snippets │ ├── java.snippets │ ├── javascript.snippets │ ├── tcl.snippets │ ├── perl.snippets │ ├── python.snippets │ ├── c.snippets │ └── tex.snippets ├── ftdetect │ ├── clojure.vim │ └── rspec.vim ├── doc │ ├── project.txt │ ├── slimv.txt │ ├── bufexplorer.txt │ ├── blockle.txt │ └── tags-ja ├── slime │ ├── ChangeLog │ ├── contrib │ │ ├── swank-hyperdoc.lisp │ │ ├── swank-media.lisp │ │ ├── README │ │ ├── swank-indentation.lisp │ │ ├── swank-sbcl-exts.lisp │ │ ├── swank-clipboard.lisp │ │ └── swank-package-fu.lisp │ ├── start-swank.lisp │ ├── swank.asd │ └── README ├── ftplugin │ ├── css │ │ └── completion.vim │ ├── html │ │ ├── HTML.vim │ │ ├── XMLFolding.vim │ │ └── folding.vim │ ├── html_snip_helper.vim │ ├── html.vim │ ├── php.vim │ └── ruby │ │ └── ruby_single_test.vim ├── colors │ ├── kib_darktango.vim │ └── satori.vim ├── swank-clojure │ ├── swank │ │ ├── core │ │ │ ├── hooks.clj │ │ │ ├── threadmap.clj │ │ │ ├── protocol.clj │ │ │ └── connection.clj │ │ ├── dev.clj │ │ ├── util │ │ │ ├── hooks.clj │ │ │ ├── sys.clj │ │ │ ├── java.clj │ │ │ ├── string.clj │ │ │ ├── concurrent │ │ │ │ ├── mbox.clj │ │ │ │ └── thread.clj │ │ │ ├── clojure.clj │ │ │ ├── io.clj │ │ │ └── net │ │ │ │ └── sockets.clj │ │ ├── commands │ │ │ ├── contrib.clj │ │ │ ├── contrib │ │ │ │ └── swank_c_p_c.clj │ │ │ └── xref.clj │ │ ├── commands.clj │ │ ├── clj_contrib │ │ │ ├── macroexpand.clj │ │ │ └── pprint.clj │ │ └── util.clj │ ├── project.clj │ └── leiningen │ │ └── swank.clj ├── version.txt ├── Makefile ├── test │ ├── plugin.expected │ └── plugin.input ├── indent │ └── clojure.vim ├── .netrwhist ├── syntax │ ├── snippet.vim │ ├── vcscommit.vim │ ├── rdoc.vim │ ├── rspec.vim │ ├── hgannotate.vim │ ├── SVNAnnotate.vim │ ├── SVKAnnotate.vim │ ├── vimwiki_media.vim │ ├── CVSAnnotate.vim │ ├── gitannotate.vim │ ├── clojure │ │ └── slimv-syntax-clojure.vim │ ├── specrun.vim │ └── vimwiki_default.vim ├── install.sh ├── LICENSE ├── after │ └── plugin │ │ └── snipMate.vim ├── .VimballRecord ├── plugin │ ├── textobj │ │ └── rubyblock.vim │ └── translateit.vim └── README.txt ├── .gitignore ├── swp └── .gitignore ├── ftplugin ├── php │ └── my.vim ├── javascript │ └── my.vim ├── vimwiki │ └── my.vim ├── haml │ └── my.vim ├── ruby │ └── my.vim ├── html_snip_helper.vim └── scheme │ └── slimv-scheme.vim ├── snippets ├── ruby │ ├── d.snippet │ ├── do.snippet │ ├── l.snippet │ ├── con.snippet │ ├── dob.snippet │ ├── des.snippet │ └── it.snippet ├── javascript │ └── l.snippet ├── eruby.snippets ├── snippet.snippets ├── _.snippets ├── sh.snippets ├── vim.snippets ├── cpp.snippets ├── mako.snippets ├── zsh.snippets ├── autoit.snippets ├── java.snippets ├── javascript.snippets ├── tcl.snippets ├── perl.snippets ├── python.snippets └── tex.snippets ├── ftdetect └── clojure.vim ├── doc ├── slimv.txt └── tags-ja ├── slime ├── ChangeLog ├── contrib │ ├── swank-hyperdoc.lisp │ ├── swank-media.lisp │ ├── README │ ├── swank-indentation.lisp │ ├── swank-sbcl-exts.lisp │ ├── swank-clipboard.lisp │ └── swank-package-fu.lisp ├── start-swank.lisp ├── swank.asd └── README ├── swank-clojure ├── swank │ ├── core │ │ ├── hooks.clj │ │ ├── threadmap.clj │ │ ├── protocol.clj │ │ └── connection.clj │ ├── dev.clj │ ├── util │ │ ├── hooks.clj │ │ ├── sys.clj │ │ ├── java.clj │ │ ├── string.clj │ │ ├── concurrent │ │ │ ├── mbox.clj │ │ │ └── thread.clj │ │ ├── clojure.clj │ │ ├── io.clj │ │ └── net │ │ │ └── sockets.clj │ ├── commands │ │ ├── contrib.clj │ │ ├── contrib │ │ │ └── swank_c_p_c.clj │ │ └── xref.clj │ ├── commands.clj │ ├── clj_contrib │ │ ├── macroexpand.clj │ │ └── pprint.clj │ └── util.clj ├── project.clj └── leiningen │ └── swank.clj ├── after └── plugin │ ├── my_cdargs.vim │ └── snipMate.vim ├── plugin ├── encoding.vim ├── textobj │ └── rubyblock.vim └── SudoEdit.vim ├── indent └── clojure.vim ├── syntax ├── snippet.vim ├── vcscommit.vim ├── hgannotate.vim ├── svnannotate.vim ├── svkannotate.vim ├── cvsannotate.vim ├── gitannotate.vim ├── clojure │ └── slimv-syntax-clojure.vim └── vimwiki_media.vim └── .VimballRecord /.vim_from_inspiron/tags: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .netrwhist 2 | -------------------------------------------------------------------------------- /swp/.gitignore: -------------------------------------------------------------------------------- 1 | *.sw? 2 | -------------------------------------------------------------------------------- /ftplugin/php/my.vim: -------------------------------------------------------------------------------- 1 | set sts=2 2 | -------------------------------------------------------------------------------- /.vim_from_inspiron/templates/template.rb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /snippets/ruby/d.snippet: -------------------------------------------------------------------------------- 1 | true;debugger;true 2 | -------------------------------------------------------------------------------- /ftplugin/javascript/my.vim: -------------------------------------------------------------------------------- 1 | set sts=2 sw=2 ts=2 et 2 | -------------------------------------------------------------------------------- /snippets/ruby/do.snippet: -------------------------------------------------------------------------------- 1 | do 2 | ${1} 3 | end 4 | 5 | -------------------------------------------------------------------------------- /snippets/ruby/l.snippet: -------------------------------------------------------------------------------- 1 | console && console.log(${1}); 2 | -------------------------------------------------------------------------------- /snippets/javascript/l.snippet: -------------------------------------------------------------------------------- 1 | console && console.log(${1}); 2 | -------------------------------------------------------------------------------- /.vim_from_inspiron/snippets/php/fun: -------------------------------------------------------------------------------- 1 | function asdf() 2 | { 3 | } 4 | -------------------------------------------------------------------------------- /ftdetect/clojure.vim: -------------------------------------------------------------------------------- 1 | au BufNewFile,BufRead *.clj setf clojure 2 | 3 | -------------------------------------------------------------------------------- /ftplugin/vimwiki/my.vim: -------------------------------------------------------------------------------- 1 | set et 2 | set ts=2 sw=2 3 | set smartindent 4 | -------------------------------------------------------------------------------- /snippets/ruby/con.snippet: -------------------------------------------------------------------------------- 1 | context "${1:context}" do 2 | ${2} 3 | end 4 | -------------------------------------------------------------------------------- /snippets/ruby/dob.snippet: -------------------------------------------------------------------------------- 1 | do |${1:variable}| 2 | ${2} 3 | end 4 | 5 | -------------------------------------------------------------------------------- /doc/slimv.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/dot_vim/master/doc/slimv.txt -------------------------------------------------------------------------------- /ftplugin/haml/my.vim: -------------------------------------------------------------------------------- 1 | set foldmethod=marker 2 | set foldmarker=BEGIN,END 3 | -------------------------------------------------------------------------------- /ftplugin/ruby/my.vim: -------------------------------------------------------------------------------- 1 | set et 2 | set ts=2 sw=2 sts=2 3 | set smartindent 4 | -------------------------------------------------------------------------------- /snippets/ruby/des.snippet: -------------------------------------------------------------------------------- 1 | describe "${1:subject}" do 2 | ${2} 3 | end 4 | -------------------------------------------------------------------------------- /slime/ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/dot_vim/master/slime/ChangeLog -------------------------------------------------------------------------------- /snippets/ruby/it.snippet: -------------------------------------------------------------------------------- 1 | it "${1:should do something}" do 2 | ${2} 3 | end 4 | 5 | -------------------------------------------------------------------------------- /.vim_from_inspiron/ftdetect/clojure.vim: -------------------------------------------------------------------------------- 1 | au BufNewFile,BufRead *.clj setf clojure 2 | 3 | -------------------------------------------------------------------------------- /.vim_from_inspiron/ftdetect/rspec.vim: -------------------------------------------------------------------------------- 1 | au BufRead,BufNewFile *_spec.rb set filetype=ruby.rspec 2 | -------------------------------------------------------------------------------- /.vim_from_inspiron/templates/template.php: -------------------------------------------------------------------------------- 1 | 3 | snippet = 4 | <%= ${1} %> 5 | -------------------------------------------------------------------------------- /.vim_from_inspiron/doc/project.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/dot_vim/master/.vim_from_inspiron/doc/project.txt -------------------------------------------------------------------------------- /.vim_from_inspiron/doc/slimv.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/dot_vim/master/.vim_from_inspiron/doc/slimv.txt -------------------------------------------------------------------------------- /.vim_from_inspiron/slime/ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/dot_vim/master/.vim_from_inspiron/slime/ChangeLog -------------------------------------------------------------------------------- /swank-clojure/swank/core/hooks.clj: -------------------------------------------------------------------------------- 1 | (ns swank.core.hooks 2 | (:use (swank.util hooks))) 3 | 4 | (defhook pre-reply-hook) -------------------------------------------------------------------------------- /.vim_from_inspiron/doc/bufexplorer.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/dot_vim/master/.vim_from_inspiron/doc/bufexplorer.txt -------------------------------------------------------------------------------- /.vim_from_inspiron/ftplugin/css/completion.vim: -------------------------------------------------------------------------------- 1 | runtime autoload/csscomplete.vim 2 | set omnifunc=csscomplete#CompleteCSS 3 | -------------------------------------------------------------------------------- /after/plugin/my_cdargs.vim: -------------------------------------------------------------------------------- 1 | " Cdargs http://www.vim.org/scripts/script.php?script_id=2466>>> 2 | delcommand Cdadd 3 | "<<< 4 | -------------------------------------------------------------------------------- /.vim_from_inspiron/ftplugin/html/HTML.vim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/dot_vim/master/.vim_from_inspiron/ftplugin/html/HTML.vim -------------------------------------------------------------------------------- /.vim_from_inspiron/colors/kib_darktango.vim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/dot_vim/master/.vim_from_inspiron/colors/kib_darktango.vim -------------------------------------------------------------------------------- /.vim_from_inspiron/swank-clojure/swank/core/hooks.clj: -------------------------------------------------------------------------------- 1 | (ns swank.core.hooks 2 | (:use (swank.util hooks))) 3 | 4 | (defhook pre-reply-hook) -------------------------------------------------------------------------------- /.vim_from_inspiron/ftplugin/html/XMLFolding.vim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/dot_vim/master/.vim_from_inspiron/ftplugin/html/XMLFolding.vim -------------------------------------------------------------------------------- /snippets/eruby.snippets: -------------------------------------------------------------------------------- 1 | snippet = 2 | <%= ${1} %>${2} 3 | snippet % 4 | <% ${1} %>${2} 5 | snippet <% 6 | <% ${1} %>${2} 7 | snippet l 8 | console && console.log(${1}); 9 | -------------------------------------------------------------------------------- /snippets/snippet.snippets: -------------------------------------------------------------------------------- 1 | # snippets for making snippets :) 2 | snippet snip 3 | snippet ${1:trigger} 4 | ${2} 5 | snippet msnip 6 | snippet ${1:trigger} ${2:description} 7 | ${3} 8 | -------------------------------------------------------------------------------- /.vim_from_inspiron/snippets/snippet.snippets: -------------------------------------------------------------------------------- 1 | # snippets for making snippets :) 2 | snippet snip 3 | snippet ${1:trigger} 4 | ${2} 5 | snippet msnip 6 | snippet ${1:trigger} ${2:description} 7 | ${3} 8 | -------------------------------------------------------------------------------- /swank-clojure/swank/dev.clj: -------------------------------------------------------------------------------- 1 | (ns swank.dev 2 | (:use (swank util))) 3 | 4 | (defmacro with-swank-io [& body] 5 | `(binding [*out* @(:writer-redir (first @swank.core.server/connections))] 6 | ~@body)) 7 | -------------------------------------------------------------------------------- /.vim_from_inspiron/version.txt: -------------------------------------------------------------------------------- 1 | 2 | version.txt -- Version Information for chimp (syntax: Text) 3 | [automatically generated and maintained by GNU shtool] 4 | 5 | This is chimp, Version 1.2.0 (18-Oct-2008) 6 | 7 | -------------------------------------------------------------------------------- /.vim_from_inspiron/swank-clojure/swank/dev.clj: -------------------------------------------------------------------------------- 1 | (ns swank.dev 2 | (:use (swank util))) 3 | 4 | (defmacro with-swank-io [& body] 5 | `(binding [*out* @(:writer-redir (first @swank.core.server/connections))] 6 | ~@body)) 7 | -------------------------------------------------------------------------------- /snippets/_.snippets: -------------------------------------------------------------------------------- 1 | # Global snippets 2 | 3 | # (c) holds no legal value ;) 4 | snippet c) 5 | `&enc[:2] == "utf" ? "©" : "(c)"` Copyright `strftime("%Y")` ${1:`g:snips_author`}. All Rights Reserved.${2} 6 | snippet date 7 | `strftime("%Y-%m-%d")` 8 | -------------------------------------------------------------------------------- /ftplugin/html_snip_helper.vim: -------------------------------------------------------------------------------- 1 | " Helper function for (x)html snippets 2 | if exists('s:did_snip_helper') || &cp || !exists('loaded_snips') 3 | finish 4 | endif 5 | let s:did_snip_helper = 1 6 | 7 | " Automatically closes tag if in xhtml 8 | fun! Close() 9 | return stridx(&ft, 'xhtml') == -1 ? '' : ' /' 10 | endf 11 | -------------------------------------------------------------------------------- /.vim_from_inspiron/snippets/_.snippets: -------------------------------------------------------------------------------- 1 | # Global snippets 2 | 3 | # (c) holds no legal value ;) 4 | snippet c) 5 | `&enc[:2] == "utf" ? "©" : "(c)"` Copyright `strftime("%Y")` ${1:`g:snips_author`}. All Rights Reserved.${2} 6 | snippet date 7 | `strftime("%Y-%m-%d")` 8 | snippet ' 9 | '${1}' 10 | snippet " 11 | "${1}" 12 | -------------------------------------------------------------------------------- /.vim_from_inspiron/Makefile: -------------------------------------------------------------------------------- 1 | # Makefile for vim-textobj-user 2 | 3 | REPOS_TYPE := vim-script 4 | INSTALLATION_DIR := $(HOME)/.vim 5 | TARGETS_STATIC = $(filter %.vim %.txt,$(all_files_in_repos)) 6 | TARGETS_ARCHIVED = $(all_files_in_repos) mduem/Makefile 7 | 8 | 9 | 10 | 11 | include mduem/Makefile 12 | 13 | # __END__ 14 | -------------------------------------------------------------------------------- /plugin/encoding.vim: -------------------------------------------------------------------------------- 1 | menu E&ncoding.koi8-r :e ++enc=koi8-r 2 | menu E&ncoding.cp1251 :e ++enc=cp1251 3 | menu E&ncoding.cp866 :e ++enc=cp866 4 | menu E&ncoding.ibm-866 :e ++enc=ibm866 5 | menu E&ncoding.ucs-2le :e ++enc=ucs-2le 6 | menu E&ncoding.utf-8 :e ++enc=utf-8 7 | map e :emenu Encoding. 8 | -------------------------------------------------------------------------------- /.vim_from_inspiron/ftplugin/html_snip_helper.vim: -------------------------------------------------------------------------------- 1 | " Helper function for (x)html snippets 2 | if exists('s:did_snip_helper') || &cp || !exists('loaded_snips') 3 | finish 4 | endif 5 | let s:did_snip_helper = 1 6 | 7 | " Automatically closes tag if in xhtml 8 | fun! Close() 9 | return stridx(&ft, 'xhtml') == -1 ? '' : ' /' 10 | endf 11 | -------------------------------------------------------------------------------- /swank-clojure/swank/util/hooks.clj: -------------------------------------------------------------------------------- 1 | (ns swank.util.hooks) 2 | 3 | (defmacro defhook [name & hooks] 4 | `(defonce ~name (ref (list ~@hooks)))) 5 | 6 | ;;;; Hooks 7 | (defn add-hook [place function] 8 | (dosync (alter place conj function))) 9 | 10 | (defn run-hook [functions & arguments] 11 | (doseq [f @functions] 12 | (apply f arguments))) 13 | -------------------------------------------------------------------------------- /.vim_from_inspiron/swank-clojure/swank/util/hooks.clj: -------------------------------------------------------------------------------- 1 | (ns swank.util.hooks) 2 | 3 | (defmacro defhook [name & hooks] 4 | `(defonce ~name (ref (list ~@hooks)))) 5 | 6 | ;;;; Hooks 7 | (defn add-hook [place function] 8 | (dosync (alter place conj function))) 9 | 10 | (defn run-hook [functions & arguments] 11 | (doseq [f @functions] 12 | (apply f arguments))) 13 | -------------------------------------------------------------------------------- /swank-clojure/swank/commands/contrib.clj: -------------------------------------------------------------------------------- 1 | (ns swank.commands.contrib 2 | (:use (swank util core commands))) 3 | 4 | (defslimefn swank-require [keys] 5 | (binding [*ns* (find-ns 'swank.commands.contrib)] 6 | (doseq [k (if (seq? keys) keys (list keys))] 7 | (try 8 | (require (symbol (str "swank.commands.contrib." (name k)))) 9 | (catch java.io.FileNotFoundException fne nil))))) -------------------------------------------------------------------------------- /.vim_from_inspiron/ftplugin/html.vim: -------------------------------------------------------------------------------- 1 | if exists('did_ftplugin') | finish | endif 2 | let g:did_ftplugin = 1 3 | 4 | setlocal noet 5 | setlocal iskeyword+='-' 6 | let g:html_tag_case='l' 7 | let g:no_html_tab_mapping = 1 8 | "let g:html_map_leader=0 9 | 10 | "nmap dt lF 11 | "nm dp lF d2f" 12 | "so html/HTML.vim 13 | "so html/xml.vim 14 | "echoerr "hello world" 15 | runtime ftplugin/xml.vim 16 | -------------------------------------------------------------------------------- /.vim_from_inspiron/test/plugin.expected: -------------------------------------------------------------------------------- 1 | ==== textobj_user_plugin 2 | ---- It should define default UI key mappings. 3 | ........ 4 | ---- It should define named key mappings. 5 | ...... 6 | ---- It should define an Ex command to define default UI key mappings. 7 | 8 | ---- It should work. 9 | 10 | 11 | 12 | 13 | **** Result **** 14 | 15 | 16 | 14 examples, 0 failures 17 | -------------------------------------------------------------------------------- /swank-clojure/swank/commands.clj: -------------------------------------------------------------------------------- 1 | (ns swank.commands) 2 | 3 | (defonce slime-fn-map {}) 4 | 5 | (defmacro defslimefn 6 | ([fname & body] 7 | `(alter-var-root #'slime-fn-map 8 | assoc 9 | (symbol "swank" ~(name fname)) 10 | (defn ~fname ~@body))) 11 | {:indent 'defun}) 12 | 13 | (defn slime-fn [sym] 14 | (slime-fn-map (symbol "swank" (name sym)))) -------------------------------------------------------------------------------- /.vim_from_inspiron/swank-clojure/swank/commands/contrib.clj: -------------------------------------------------------------------------------- 1 | (ns swank.commands.contrib 2 | (:use (swank util core commands))) 3 | 4 | (defslimefn swank-require [keys] 5 | (binding [*ns* (find-ns 'swank.commands.contrib)] 6 | (doseq [k (if (seq? keys) keys (list keys))] 7 | (try 8 | (require (symbol (str "swank.commands.contrib." (name k)))) 9 | (catch java.io.FileNotFoundException fne nil))))) -------------------------------------------------------------------------------- /.vim_from_inspiron/swank-clojure/swank/commands.clj: -------------------------------------------------------------------------------- 1 | (ns swank.commands) 2 | 3 | (defonce slime-fn-map {}) 4 | 5 | (defmacro defslimefn 6 | ([fname & body] 7 | `(alter-var-root #'slime-fn-map 8 | assoc 9 | (symbol "swank" ~(name fname)) 10 | (defn ~fname ~@body))) 11 | {:indent 'defun}) 12 | 13 | (defn slime-fn [sym] 14 | (slime-fn-map (symbol "swank" (name sym)))) -------------------------------------------------------------------------------- /.vim_from_inspiron/ftplugin/php.vim: -------------------------------------------------------------------------------- 1 | 2 | if exists("b:did_ftplugin") 3 | finish 4 | endif 5 | let b:did_ftplugin = 1 6 | 7 | setlocal foldmethod=marker 8 | "setlocal foldmarker={,} 9 | setlocal foldnestmax=2 10 | setlocal et 11 | exe "set dictionary=" . $HOME . "/.vim/dict/zenddict" 12 | "imap :set paste:exe PhpDoc():set nopastei 13 | "retab! 2 14 | "set sw=2 15 | "setlocal foldtext=v:folddashes.getline(v:foldstart) 16 | "HTMLMappings disable 17 | EnableFastPHPFolds 18 | -------------------------------------------------------------------------------- /swank-clojure/swank/util/sys.clj: -------------------------------------------------------------------------------- 1 | (ns swank.util.sys) 2 | 3 | (defn get-pid 4 | "Returns the PID of the JVM. This is largely a hack and may or may 5 | not be accurate depending on the JVM in which clojure is running 6 | off of." 7 | ([] 8 | (or (first (.. java.lang.management.ManagementFactory (getRuntimeMXBean) (getName) (split "@"))) 9 | (System/getProperty "pid"))) 10 | {:tag String}) 11 | 12 | (defn user-home-path [] 13 | (System/getProperty "user.home")) 14 | -------------------------------------------------------------------------------- /.vim_from_inspiron/swank-clojure/swank/util/sys.clj: -------------------------------------------------------------------------------- 1 | (ns swank.util.sys) 2 | 3 | (defn get-pid 4 | "Returns the PID of the JVM. This is largely a hack and may or may 5 | not be accurate depending on the JVM in which clojure is running 6 | off of." 7 | ([] 8 | (or (first (.. java.lang.management.ManagementFactory (getRuntimeMXBean) (getName) (split "@"))) 9 | (System/getProperty "pid"))) 10 | {:tag String}) 11 | 12 | (defn user-home-path [] 13 | (System/getProperty "user.home")) 14 | -------------------------------------------------------------------------------- /swank-clojure/project.clj: -------------------------------------------------------------------------------- 1 | (defproject swank-clojure "1.3.0" 2 | :description "Swank server connecting Clojure to Emacs SLIME" 3 | :url "http://github.com/technomancy/swank-clojure" 4 | :dependencies [[org.clojure/clojure "1.2.0"]] 5 | :dev-dependencies [[lein-multi "1.0.0"]] 6 | :multi-deps {"1.1" [[org.clojure/clojure "1.1.0"] 7 | [org.clojure/clojure-contrib "1.1.0"]] 8 | "1.3" [[org.clojure/clojure "1.3.0-master-SNAPSHOT"]]} 9 | :shell-wrapper {:main swank.swank}) 10 | -------------------------------------------------------------------------------- /swank-clojure/swank/clj_contrib/macroexpand.clj: -------------------------------------------------------------------------------- 1 | (ns swank.clj-contrib.macroexpand) 2 | 3 | (def 4 | #^{:private true} 5 | walk-enabled? 6 | (.getResource (clojure.lang.RT/baseLoader) "clojure/contrib/macro_utils.clj")) 7 | 8 | (when walk-enabled? 9 | (require 'clojure.contrib.macro-utils)) 10 | 11 | (defmacro macroexpand-all* [form] 12 | (if walk-enabled? 13 | `(clojure.contrib.macro-utils/mexpand-all ~form) 14 | `(macroexpand ~form))) 15 | 16 | (defn macroexpand-all [form] 17 | (macroexpand-all* form)) -------------------------------------------------------------------------------- /.vim_from_inspiron/swank-clojure/project.clj: -------------------------------------------------------------------------------- 1 | (defproject swank-clojure "1.3.0" 2 | :description "Swank server connecting Clojure to Emacs SLIME" 3 | :url "http://github.com/technomancy/swank-clojure" 4 | :dependencies [[org.clojure/clojure "1.2.0"]] 5 | :dev-dependencies [[lein-multi "1.0.0"]] 6 | :multi-deps {"1.1" [[org.clojure/clojure "1.1.0"] 7 | [org.clojure/clojure-contrib "1.1.0"]] 8 | "1.3" [[org.clojure/clojure "1.3.0-master-SNAPSHOT"]]} 9 | :shell-wrapper {:main swank.swank}) 10 | -------------------------------------------------------------------------------- /.vim_from_inspiron/swank-clojure/swank/clj_contrib/macroexpand.clj: -------------------------------------------------------------------------------- 1 | (ns swank.clj-contrib.macroexpand) 2 | 3 | (def 4 | #^{:private true} 5 | walk-enabled? 6 | (.getResource (clojure.lang.RT/baseLoader) "clojure/contrib/macro_utils.clj")) 7 | 8 | (when walk-enabled? 9 | (require 'clojure.contrib.macro-utils)) 10 | 11 | (defmacro macroexpand-all* [form] 12 | (if walk-enabled? 13 | `(clojure.contrib.macro-utils/mexpand-all ~form) 14 | `(macroexpand ~form))) 15 | 16 | (defn macroexpand-all [form] 17 | (macroexpand-all* form)) -------------------------------------------------------------------------------- /swank-clojure/swank/util/java.clj: -------------------------------------------------------------------------------- 1 | (ns swank.util.java) 2 | 3 | (defn member-name [#^java.lang.reflect.Member member] 4 | (.getName member)) 5 | 6 | (defn member-static? [#^java.lang.reflect.Member member] 7 | (java.lang.reflect.Modifier/isStatic (.getModifiers member))) 8 | 9 | (defn static-methods [#^Class class] 10 | (filter member-static? (.getMethods class))) 11 | 12 | (defn static-fields [#^Class class] 13 | (filter member-static? (.getDeclaredFields class))) 14 | 15 | (defn instance-methods [#^Class class] 16 | (remove member-static? (.getMethods class))) 17 | -------------------------------------------------------------------------------- /.vim_from_inspiron/swank-clojure/swank/util/java.clj: -------------------------------------------------------------------------------- 1 | (ns swank.util.java) 2 | 3 | (defn member-name [#^java.lang.reflect.Member member] 4 | (.getName member)) 5 | 6 | (defn member-static? [#^java.lang.reflect.Member member] 7 | (java.lang.reflect.Modifier/isStatic (.getModifiers member))) 8 | 9 | (defn static-methods [#^Class class] 10 | (filter member-static? (.getMethods class))) 11 | 12 | (defn static-fields [#^Class class] 13 | (filter member-static? (.getDeclaredFields class))) 14 | 15 | (defn instance-methods [#^Class class] 16 | (remove member-static? (.getMethods class))) 17 | -------------------------------------------------------------------------------- /snippets/sh.snippets: -------------------------------------------------------------------------------- 1 | # #!/bin/bash 2 | snippet #! 3 | #!/bin/bash 4 | 5 | snippet if 6 | if [[ ${1:condition} ]]; then 7 | ${2:#statements} 8 | fi 9 | snippet elif 10 | elif [[ ${1:condition} ]]; then 11 | ${2:#statements} 12 | snippet for 13 | for (( ${2:i} = 0; $2 < ${1:count}; $2++ )); do 14 | ${3:#statements} 15 | done 16 | snippet wh 17 | while [[ ${1:condition} ]]; do 18 | ${2:#statements} 19 | done 20 | snippet until 21 | until [[ ${1:condition} ]]; do 22 | ${2:#statements} 23 | done 24 | snippet case 25 | case ${1:word} in 26 | ${2:pattern}) 27 | ${3};; 28 | esac 29 | -------------------------------------------------------------------------------- /indent/clojure.vim: -------------------------------------------------------------------------------- 1 | " clojure.vim: 2 | " Clojure indent plugin for Slimv 3 | " Version: 0.5.4 4 | " Last Change: 15 Nov 2009 5 | " Maintainer: Tamas Kovacs 6 | " License: This file is placed in the public domain. 7 | " No warranty, express or implied. 8 | " *** *** Use At-Your-Own-Risk! *** *** 9 | " 10 | " ===================================================================== 11 | " 12 | " Load Once: 13 | if exists("b:did_indent") 14 | finish 15 | endif 16 | 17 | runtime indent/**/lisp.vim 18 | 19 | set lisp 20 | 21 | -------------------------------------------------------------------------------- /.vim_from_inspiron/snippets/sh.snippets: -------------------------------------------------------------------------------- 1 | # #!/bin/bash 2 | snippet #! 3 | #!/bin/bash 4 | 5 | snippet if 6 | if [[ ${1:condition} ]]; then 7 | ${2:#statements} 8 | fi 9 | snippet elif 10 | elif [[ ${1:condition} ]]; then 11 | ${2:#statements} 12 | snippet for 13 | for (( ${2:i} = 0; $2 < ${1:count}; $2++ )); do 14 | ${3:#statements} 15 | done 16 | snippet wh 17 | while [[ ${1:condition} ]]; do 18 | ${2:#statements} 19 | done 20 | snippet until 21 | until [[ ${1:condition} ]]; do 22 | ${2:#statements} 23 | done 24 | snippet case 25 | case ${1:word} in 26 | ${2:pattern}) 27 | ${3};; 28 | esac 29 | -------------------------------------------------------------------------------- /.vim_from_inspiron/indent/clojure.vim: -------------------------------------------------------------------------------- 1 | " clojure.vim: 2 | " Clojure indent plugin for Slimv 3 | " Version: 0.5.4 4 | " Last Change: 15 Nov 2009 5 | " Maintainer: Tamas Kovacs 6 | " License: This file is placed in the public domain. 7 | " No warranty, express or implied. 8 | " *** *** Use At-Your-Own-Risk! *** *** 9 | " 10 | " ===================================================================== 11 | " 12 | " Load Once: 13 | if exists("b:did_indent") 14 | finish 15 | endif 16 | 17 | runtime indent/**/lisp.vim 18 | 19 | set lisp 20 | 21 | -------------------------------------------------------------------------------- /swank-clojure/swank/util/string.clj: -------------------------------------------------------------------------------- 1 | (ns swank.util.string) 2 | 3 | (defn largest-common-prefix 4 | "Returns the largest common prefix of two strings." 5 | ([#^String a, #^String b] 6 | (apply str (take-while (comp not nil?) (map #(when (= %1 %2) %1) a b)))) 7 | {:tag String}) 8 | 9 | (defn char-position 10 | "Finds the position of a character within a string, optionally 11 | provide a starting index. Returns nil if none is found." 12 | ([c str] (char-position c str 0)) 13 | ([#^Character c #^String str #^Integer start] 14 | (let [idx (.indexOf str (int c) start)] 15 | (when (not= -1 idx) 16 | idx)))) -------------------------------------------------------------------------------- /.vim_from_inspiron/.netrwhist: -------------------------------------------------------------------------------- 1 | let g:netrw_dirhistmax =10 2 | let g:netrw_dirhist_cnt =8 3 | let g:netrw_dirhist_1='ftp://www.nastavnik66.ru/' 4 | let g:netrw_dirhist_2='/home/html/projects/rails/sigpat/dashboard/spec/controllers' 5 | let g:netrw_dirhist_3='/usr/share/doc/bash/examples/startup-files' 6 | let g:netrw_dirhist_4='ftp://www.nastavnik66.ru/' 7 | let g:netrw_dirhist_5='/home/html/projects/rails/sigpat/dashboard/spec/controllers' 8 | let g:netrw_dirhist_6='ftp://www.nastavnik66.ru/' 9 | let g:netrw_dirhist_7='/etc/cron.weekly' 10 | let g:netrw_dirhist_8='/home/html/projects/rails/yas_injoit/mobservadmin/branches/sigpat-admin/app/models' 11 | -------------------------------------------------------------------------------- /.vim_from_inspiron/swank-clojure/swank/util/string.clj: -------------------------------------------------------------------------------- 1 | (ns swank.util.string) 2 | 3 | (defn largest-common-prefix 4 | "Returns the largest common prefix of two strings." 5 | ([#^String a, #^String b] 6 | (apply str (take-while (comp not nil?) (map #(when (= %1 %2) %1) a b)))) 7 | {:tag String}) 8 | 9 | (defn char-position 10 | "Finds the position of a character within a string, optionally 11 | provide a starting index. Returns nil if none is found." 12 | ([c str] (char-position c str 0)) 13 | ([#^Character c #^String str #^Integer start] 14 | (let [idx (.indexOf str (int c) start)] 15 | (when (not= -1 idx) 16 | idx)))) -------------------------------------------------------------------------------- /snippets/vim.snippets: -------------------------------------------------------------------------------- 1 | snippet header 2 | " File: ${1:`expand('%:t')`} 3 | " Author: ${2:`g:snips_author`} 4 | " Description: ${3} 5 | ${4:" Last Modified: `strftime("%B %d, %Y")`} 6 | snippet guard 7 | if exists('${1:did_`Filename()`}') || &cp${2: || version < 700} 8 | finish 9 | endif 10 | let $1 = 1${3} 11 | snippet f 12 | fun ${1:function_name}(${2}) 13 | ${3:" code} 14 | endf 15 | snippet for 16 | for ${1:needle} in ${2:haystack} 17 | ${3:" code} 18 | endfor 19 | snippet wh 20 | while ${1:condition} 21 | ${2:" code} 22 | endw 23 | snippet if 24 | if ${1:condition} 25 | ${2:" code} 26 | endif 27 | snippet ife 28 | if ${1:condition} 29 | ${2} 30 | else 31 | ${3} 32 | endif 33 | -------------------------------------------------------------------------------- /.vim_from_inspiron/snippets/vim.snippets: -------------------------------------------------------------------------------- 1 | snippet header 2 | " File: ${1:`expand('%:t')`} 3 | " Author: ${2:`g:snips_author`} 4 | " Description: ${3} 5 | ${4:" Last Modified: `strftime("%B %d, %Y")`} 6 | snippet guard 7 | if exists('${1:did_`Filename()`}') || &cp${2: || version < 700} 8 | finish 9 | endif 10 | let $1 = 1${3} 11 | snippet f 12 | fun ${1:function_name}(${2}) 13 | ${3:" code} 14 | endf 15 | snippet for 16 | for ${1:needle} in ${2:haystack} 17 | ${3:" code} 18 | endfor 19 | snippet wh 20 | while ${1:condition} 21 | ${2:" code} 22 | endw 23 | snippet if 24 | if ${1:condition} 25 | ${2:" code} 26 | endif 27 | snippet ife 28 | if ${1:condition} 29 | ${2} 30 | else 31 | ${3} 32 | endif 33 | -------------------------------------------------------------------------------- /snippets/cpp.snippets: -------------------------------------------------------------------------------- 1 | # Read File Into Vector 2 | snippet readfile 3 | std::vector v; 4 | if (FILE *${2:fp} = fopen(${1:"filename"}, "r")) { 5 | char buf[1024]; 6 | while (size_t len = fread(buf, 1, sizeof(buf), $2)) 7 | v.insert(v.end(), buf, buf + len); 8 | fclose($2); 9 | }${3} 10 | # std::map 11 | snippet map 12 | std::map<${1:key}, ${2:value}> map${3}; 13 | # std::vector 14 | snippet vector 15 | std::vector<${1:char}> v${2}; 16 | # Namespace 17 | snippet ns 18 | namespace ${1:`Filename('', 'my')`} { 19 | ${2} 20 | } /* $1 */ 21 | # Class 22 | snippet cl 23 | class ${1:`Filename('$1_t', 'name')`} { 24 | public: 25 | $1 (${2:arguments}); 26 | virtual ~$1 (); 27 | 28 | private: 29 | ${3:/* data */} 30 | }; 31 | -------------------------------------------------------------------------------- /.vim_from_inspiron/snippets/cpp.snippets: -------------------------------------------------------------------------------- 1 | # Read File Into Vector 2 | snippet readfile 3 | std::vector v; 4 | if (FILE *${2:fp} = fopen(${1:"filename"}, "r")) { 5 | char buf[1024]; 6 | while (size_t len = fread(buf, 1, sizeof(buf), $2)) 7 | v.insert(v.end(), buf, buf + len); 8 | fclose($2); 9 | }${3} 10 | # std::map 11 | snippet map 12 | std::map<${1:key}, ${2:value}> map${3}; 13 | # std::vector 14 | snippet vector 15 | std::vector<${1:char}> v${2}; 16 | # Namespace 17 | snippet ns 18 | namespace ${1:`Filename('', 'my')`} { 19 | ${2} 20 | } /* $1 */ 21 | # Class 22 | snippet cl 23 | class ${1:`Filename('$1_t', 'name')`} { 24 | public: 25 | $1 (${2:arguments}); 26 | virtual ~$1 (); 27 | 28 | private: 29 | ${3:/* data */} 30 | }; 31 | -------------------------------------------------------------------------------- /syntax/snippet.vim: -------------------------------------------------------------------------------- 1 | " Syntax highlighting for snippet files (used for snipMate.vim) 2 | " Hopefully this should make snippets a bit nicer to write! 3 | syn match snipComment '^#.*' 4 | syn match placeHolder '\${\d\+\(:.\{-}\)\=}' contains=snipCommand 5 | syn match tabStop '\$\d\+' 6 | syn match snipCommand '`.\{-}`' 7 | syn match snippet '^snippet.*' transparent contains=multiSnipText,snipKeyword 8 | syn match multiSnipText '\S\+ \zs.*' contained 9 | syn match snipKeyword '^snippet'me=s+8 contained 10 | syn match snipError "^[^#s\t].*$" 11 | 12 | hi link snipComment Comment 13 | hi link multiSnipText String 14 | hi link snipKeyword Keyword 15 | hi link snipComment Comment 16 | hi link placeHolder Special 17 | hi link tabStop Special 18 | hi link snipCommand String 19 | hi link snipError Error 20 | -------------------------------------------------------------------------------- /slime/contrib/swank-hyperdoc.lisp: -------------------------------------------------------------------------------- 1 | (in-package :swank) 2 | 3 | (defslimefun hyperdoc (string) 4 | (let ((hyperdoc-package (find-package :hyperdoc))) 5 | (when hyperdoc-package 6 | (multiple-value-bind (symbol foundp symbol-name package) 7 | (parse-symbol string *buffer-package*) 8 | (declare (ignore symbol)) 9 | (when foundp 10 | (funcall (find-symbol (string :lookup) hyperdoc-package) 11 | (package-name (if (member package (cons *buffer-package* 12 | (package-use-list 13 | *buffer-package*))) 14 | *buffer-package* 15 | package)) 16 | symbol-name)))))) 17 | -------------------------------------------------------------------------------- /.vim_from_inspiron/syntax/snippet.vim: -------------------------------------------------------------------------------- 1 | " Syntax highlighting for snippet files (used for snipMate.vim) 2 | " Hopefully this should make snippets a bit nicer to write! 3 | syn match snipComment '^#.*' 4 | syn match placeHolder '\${\d\+\(:.\{-}\)\=}' contains=snipCommand 5 | syn match tabStop '\$\d\+' 6 | syn match snipCommand '`.\{-}`' 7 | syn match snippet '^snippet.*' transparent contains=multiSnipText,snipKeyword 8 | syn match multiSnipText '\S\+ \zs.*' contained 9 | syn match snipKeyword '^snippet'me=s+8 contained 10 | syn match snipError "^[^#s\t].*$" 11 | 12 | hi link snipComment Comment 13 | hi link multiSnipText String 14 | hi link snipKeyword Keyword 15 | hi link snipComment Comment 16 | hi link placeHolder Special 17 | hi link tabStop Special 18 | hi link snipCommand String 19 | hi link snipError Error 20 | -------------------------------------------------------------------------------- /.vim_from_inspiron/slime/contrib/swank-hyperdoc.lisp: -------------------------------------------------------------------------------- 1 | (in-package :swank) 2 | 3 | (defslimefun hyperdoc (string) 4 | (let ((hyperdoc-package (find-package :hyperdoc))) 5 | (when hyperdoc-package 6 | (multiple-value-bind (symbol foundp symbol-name package) 7 | (parse-symbol string *buffer-package*) 8 | (declare (ignore symbol)) 9 | (when foundp 10 | (funcall (find-symbol (string :lookup) hyperdoc-package) 11 | (package-name (if (member package (cons *buffer-package* 12 | (package-use-list 13 | *buffer-package*))) 14 | *buffer-package* 15 | package)) 16 | symbol-name)))))) 17 | -------------------------------------------------------------------------------- /swank-clojure/swank/core/threadmap.clj: -------------------------------------------------------------------------------- 1 | (ns swank.core.threadmap 2 | (:use (swank util) 3 | (swank.util.concurrent thread))) 4 | 5 | (defonce thread-map-next-id (ref 1)) 6 | (defonce thread-map (ref {})) 7 | 8 | (defn- thread-map-clean [] 9 | (doseq [[id t] @thread-map] 10 | (when (or (nil? t) 11 | (not (thread-alive? t))) 12 | (dosync 13 | (alter thread-map dissoc id))))) 14 | 15 | (defn- get-thread-id [thread] 16 | (if-let [entry (find-first #(= (val %) thread) @thread-map)] 17 | (key entry) 18 | (let [next-id @thread-map-next-id] 19 | (alter thread-map assoc next-id thread) 20 | (alter thread-map-next-id inc) 21 | next-id))) 22 | 23 | (defn thread-map-id [thread] 24 | (returning [id (dosync (get-thread-id thread))] 25 | (thread-map-clean))) 26 | 27 | (defn find-thread [id] 28 | (@thread-map id)) 29 | 30 | -------------------------------------------------------------------------------- /.vim_from_inspiron/swank-clojure/swank/core/threadmap.clj: -------------------------------------------------------------------------------- 1 | (ns swank.core.threadmap 2 | (:use (swank util) 3 | (swank.util.concurrent thread))) 4 | 5 | (defonce thread-map-next-id (ref 1)) 6 | (defonce thread-map (ref {})) 7 | 8 | (defn- thread-map-clean [] 9 | (doseq [[id t] @thread-map] 10 | (when (or (nil? t) 11 | (not (thread-alive? t))) 12 | (dosync 13 | (alter thread-map dissoc id))))) 14 | 15 | (defn- get-thread-id [thread] 16 | (if-let [entry (find-first #(= (val %) thread) @thread-map)] 17 | (key entry) 18 | (let [next-id @thread-map-next-id] 19 | (alter thread-map assoc next-id thread) 20 | (alter thread-map-next-id inc) 21 | next-id))) 22 | 23 | (defn thread-map-id [thread] 24 | (returning [id (dosync (get-thread-id thread))] 25 | (thread-map-clean))) 26 | 27 | (defn find-thread [id] 28 | (@thread-map id)) 29 | 30 | -------------------------------------------------------------------------------- /swank-clojure/swank/util/concurrent/mbox.clj: -------------------------------------------------------------------------------- 1 | (ns swank.util.concurrent.mbox 2 | (:refer-clojure :exclude [send get])) 3 | 4 | ;; Holds references to the mailboxes (message queues) 5 | (defonce mailboxes (ref {})) 6 | 7 | (defn get 8 | "Returns the mailbox for a given id. Creates one if one does not 9 | already exist." 10 | ([id] 11 | (dosync 12 | (when-not (@mailboxes id) 13 | (alter mailboxes assoc 14 | id (java.util.concurrent.LinkedBlockingQueue.)))) 15 | (@mailboxes id)) 16 | {:tag java.util.concurrent.LinkedBlockingQueue}) 17 | 18 | (defn send 19 | "Sends a message to a given id." 20 | ([id message] 21 | (let [mbox (get id)] 22 | (.put mbox message)))) 23 | 24 | (defn receive 25 | "Blocking recieve for messages for the given id." 26 | ([id] 27 | (let [mb (get id)] 28 | (.take mb)))) 29 | 30 | (defn clean [] 31 | ) 32 | -------------------------------------------------------------------------------- /.vim_from_inspiron/swank-clojure/swank/util/concurrent/mbox.clj: -------------------------------------------------------------------------------- 1 | (ns swank.util.concurrent.mbox 2 | (:refer-clojure :exclude [send get])) 3 | 4 | ;; Holds references to the mailboxes (message queues) 5 | (defonce mailboxes (ref {})) 6 | 7 | (defn get 8 | "Returns the mailbox for a given id. Creates one if one does not 9 | already exist." 10 | ([id] 11 | (dosync 12 | (when-not (@mailboxes id) 13 | (alter mailboxes assoc 14 | id (java.util.concurrent.LinkedBlockingQueue.)))) 15 | (@mailboxes id)) 16 | {:tag java.util.concurrent.LinkedBlockingQueue}) 17 | 18 | (defn send 19 | "Sends a message to a given id." 20 | ([id message] 21 | (let [mbox (get id)] 22 | (.put mbox message)))) 23 | 24 | (defn receive 25 | "Blocking recieve for messages for the given id." 26 | ([id] 27 | (let [mb (get id)] 28 | (.take mb)))) 29 | 30 | (defn clean [] 31 | ) 32 | -------------------------------------------------------------------------------- /swank-clojure/swank/commands/contrib/swank_c_p_c.clj: -------------------------------------------------------------------------------- 1 | (ns swank.commands.contrib.swank-c-p-c 2 | (:use (swank util core commands) 3 | (swank.commands completion) 4 | (swank.util string clojure) 5 | (swank.commands.contrib.swank-c-p-c internal))) 6 | 7 | (defslimefn completions [symbol-string package] 8 | (try 9 | (let [[sym-ns sym-name] (symbol-name-parts symbol-string) 10 | potential (concat 11 | (potential-completions 12 | (when sym-ns (symbol sym-ns)) 13 | (ns-name (maybe-ns package))) 14 | (potential-classes-on-path symbol-string)) 15 | matches (seq (sort (filter #(split-compound-prefix-match? symbol-string %) potential)))] 16 | (list matches 17 | (if matches 18 | (reduce largest-common-prefix matches) 19 | symbol-string))) 20 | (catch java.lang.Throwable t 21 | (list nil symbol-string)))) 22 | -------------------------------------------------------------------------------- /.VimballRecord: -------------------------------------------------------------------------------- 1 | vimwiki-1-1-1.vba: call delete('/home/olexiy/.vim/autoload/vimwiki.vim')|call delete('/home/olexiy/.vim/autoload/vimwiki_diary.vim')|call delete('/home/olexiy/.vim/autoload/vimwiki_html.vim')|call delete('/home/olexiy/.vim/autoload/vimwiki_lst.vim')|call delete('/home/olexiy/.vim/autoload/vimwiki_tbl.vim')|call delete('/home/olexiy/.vim/doc/vimwiki.txt')|call delete('/home/olexiy/.vim/ftplugin/vimwiki.vim')|call delete('/home/olexiy/.vim/plugin/vimwiki.vim')|call delete('/home/olexiy/.vim/syntax/vimwiki.vim')|call delete('/home/olexiy/.vim/syntax/vimwiki_default.vim')|call delete('/home/olexiy/.vim/syntax/vimwiki_media.vim') 2 | SudoEdit.vba: call delete('/home/olexiy/.vim/autoload/SudoEdit.vim')|call delete('/home/olexiy/.vim/doc/SudoEdit.txt')|call delete('/home/olexiy/.vim/plugin/SudoEdit.vim') 3 | textobj-rubyblock.vba: call delete('/home/olexiy/.vim/plugin/textobj/rubyblock.vim')|call delete('/home/olexiy/.vim/doc/textobj-rubyblock.txt') 4 | -------------------------------------------------------------------------------- /.vim_from_inspiron/swank-clojure/swank/commands/contrib/swank_c_p_c.clj: -------------------------------------------------------------------------------- 1 | (ns swank.commands.contrib.swank-c-p-c 2 | (:use (swank util core commands) 3 | (swank.commands completion) 4 | (swank.util string clojure) 5 | (swank.commands.contrib.swank-c-p-c internal))) 6 | 7 | (defslimefn completions [symbol-string package] 8 | (try 9 | (let [[sym-ns sym-name] (symbol-name-parts symbol-string) 10 | potential (concat 11 | (potential-completions 12 | (when sym-ns (symbol sym-ns)) 13 | (ns-name (maybe-ns package))) 14 | (potential-classes-on-path symbol-string)) 15 | matches (seq (sort (filter #(split-compound-prefix-match? symbol-string %) potential)))] 16 | (list matches 17 | (if matches 18 | (reduce largest-common-prefix matches) 19 | symbol-string))) 20 | (catch java.lang.Throwable t 21 | (list nil symbol-string)))) 22 | -------------------------------------------------------------------------------- /.vim_from_inspiron/templates/template.c: -------------------------------------------------------------------------------- 1 | /* 2 | * <+ DESCRIPTION +> 3 | * 4 | * Copyright (C) , <> {{{ 5 | * 6 | * This program is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU General Public License 8 | * as published by the Free Software Foundation; either 9 | * version 2 of the License, or any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 | * }}} 20 | */ 21 | 22 | <+ CODE +> 23 | 24 | /* vim:: */ 25 | -------------------------------------------------------------------------------- /.vim_from_inspiron/templates/template.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * <+ DESCRIPTION +> 3 | * 4 | * Copyright (C) , <> {{{ 5 | * 6 | * This program is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU General Public License 8 | * as published by the Free Software Foundation; either 9 | * version 2 of the License, or any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 | * }}} 20 | */ 21 | 22 | <+ CODE +> 23 | 24 | /* vim:: */ 25 | -------------------------------------------------------------------------------- /.vim_from_inspiron/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | VERSION=0.3.4 3 | BASE=/usr/local/limp 4 | LISP_FTP=$HOME/.vim/ftplugin/lisp 5 | 6 | 7 | if [[ ! -d "$BASE" ]]; then 8 | mkdir -p $BASE 9 | if [[ $? -gt 0 ]]; then 10 | echo 11 | echo "ERROR: Failed creating installation directory. Forgot 'sudo'?" 12 | exit 1 13 | fi 14 | else 15 | rm -rf $BASE/$VERSION 16 | rm $BASE/latest 17 | fi 18 | 19 | echo "Installing Limp $VERSION to $BASE/$VERSION..." 20 | 21 | cp -fr $VERSION $BASE 22 | 23 | echo "* symlink $BASE/$VERSION -> $BASE/latest" 24 | 25 | ln -sf $VERSION $BASE/latest 26 | 27 | if [[ ! -d "$LISP_FTP" ]]; then 28 | mkdir -p $LISP_FTP 29 | fi 30 | 31 | echo "* symlink $LISP_FTP -> $BASE/latest" 32 | 33 | rm $LISP_FTP/limp 34 | ln -sf $BASE/latest/vim $LISP_FTP/limp 35 | ln -sf limp/limp.vim $LISP_FTP/limp.vim 36 | 37 | echo "* generating Lisp thesaurus..." 38 | 39 | cd $BASE/$VERSION/bin 40 | ./make-thesaurus.sh 41 | 42 | echo "Done." 43 | 44 | -------------------------------------------------------------------------------- /snippets/mako.snippets: -------------------------------------------------------------------------------- 1 | snippet def 2 | <%def name="${1:name}"> 3 | ${2:} 4 | 5 | snippet call 6 | <%call expr="${1:name}"> 7 | ${2:} 8 | 9 | snippet doc 10 | <%doc> 11 | ${1:} 12 | 13 | snippet text 14 | <%text> 15 | ${1:} 16 | 17 | snippet for 18 | % for ${1:i} in ${2:iter}: 19 | ${3:} 20 | % endfor 21 | snippet if if 22 | % if ${1:condition}: 23 | ${2:} 24 | % endif 25 | snippet if if/else 26 | % if ${1:condition}: 27 | ${2:} 28 | % else: 29 | ${3:} 30 | % endif 31 | snippet try 32 | % try: 33 | ${1:} 34 | % except${2:}: 35 | ${3:pass} 36 | % endtry 37 | snippet wh 38 | % while ${1:}: 39 | ${2:} 40 | % endwhile 41 | snippet $ 42 | ${ ${1:} } 43 | snippet <% 44 | <% ${1:} %> 45 | snippet 47 | snippet inherit 48 | <%inherit file="${1:filename}" /> 49 | snippet include 50 | <%include file="${1:filename}" /> 51 | snippet namespace 52 | <%namespace file="${1:name}" /> 53 | snippet page 54 | <%page args="${1:}" /> 55 | -------------------------------------------------------------------------------- /.vim_from_inspiron/ftplugin/html/folding.vim: -------------------------------------------------------------------------------- 1 | set foldmethod=marker 2 | set foldnestmax=1 3 | set foldmarker=BEGIN,END 4 | 5 | set foldtext=HtmlFoldLabel() 6 | "if not set 7 | "set commentstring= 8 | 9 | "let g:HtmlFoldTagsShow = 10 | "let g:HtmlAttribsShow = 11 | 12 | 13 | function! HtmlFoldLabel() 14 | let [lbrace,rbrace] = split(&foldmarker,',') 15 | let start = v:foldstart 16 | " let end = min([v:foldend,v:foldstart+5]); 17 | " return join(',',getline(start,end)) 18 | let getcontent = matchstr(getline(v:foldstart),printf(&commentstring,'\s*'.lbrace.'\s*\zs\(.*\)\ze')) 19 | if(strlen(getcontent) == 0) | let getcontent = getline(v:foldstart) | endif"; 20 | let linestart = substitute(v:folddashes, ".", '»', 'g') 21 | return linestart . " " . getcontent 22 | endfunction 23 | 24 | finish 25 | function! GetElemsWithAttrs(text,allowed_elements,allowed_attribs) 26 | return matchlist(text,'<\([a-zA-Z]\)[^/]>') 27 | endfunction 28 | echo GetElemsWithAttrs('
',['div'],['style','class']) 29 | -------------------------------------------------------------------------------- /slime/start-swank.lisp: -------------------------------------------------------------------------------- 1 | ;;; This file is intended to be loaded by an implementation to 2 | ;;; get a running swank server 3 | ;;; e.g. sbcl --load start-swank.lisp 4 | ;;; 5 | ;;; Default port is 4005 6 | ;;; Default encoding is "iso-latin-1-unix" 7 | ;;; see Emacs variable `slime-net-valid-coding-systems' for possible values. 8 | 9 | ;;; For additional swank-side configurations see 10 | ;;; 6.2 section of the Slime user manual. 11 | ;;; 12 | ;;; Modified for Slimv: 13 | ;;; - load contribs 14 | ;;; - don't close connection 15 | 16 | (load (merge-pathnames "swank-loader.lisp" *load-truename*)) 17 | 18 | (swank-loader:init 19 | :delete nil ; delete any existing SWANK packages 20 | :reload nil ; reload SWANK, even if the SWANK package already exists 21 | :load-contribs t) ; load all contribs 22 | 23 | (swank:create-server :port 4005 24 | :coding-system "iso-latin-1-unix" 25 | 26 | ;; if non-nil the connection won't be closed 27 | ;; after connecting 28 | :dont-close t) 29 | 30 | -------------------------------------------------------------------------------- /.vim_from_inspiron/slime/start-swank.lisp: -------------------------------------------------------------------------------- 1 | ;;; This file is intended to be loaded by an implementation to 2 | ;;; get a running swank server 3 | ;;; e.g. sbcl --load start-swank.lisp 4 | ;;; 5 | ;;; Default port is 4005 6 | ;;; Default encoding is "iso-latin-1-unix" 7 | ;;; see Emacs variable `slime-net-valid-coding-systems' for possible values. 8 | 9 | ;;; For additional swank-side configurations see 10 | ;;; 6.2 section of the Slime user manual. 11 | ;;; 12 | ;;; Modified for Slimv: 13 | ;;; - load contribs 14 | ;;; - don't close connection 15 | 16 | (load (merge-pathnames "swank-loader.lisp" *load-truename*)) 17 | 18 | (swank-loader:init 19 | :delete nil ; delete any existing SWANK packages 20 | :reload nil ; reload SWANK, even if the SWANK package already exists 21 | :load-contribs t) ; load all contribs 22 | 23 | (swank:create-server :port 4005 24 | :coding-system "iso-latin-1-unix" 25 | 26 | ;; if non-nil the connection won't be closed 27 | ;; after connecting 28 | :dont-close t) 29 | 30 | -------------------------------------------------------------------------------- /.vim_from_inspiron/templates/template.vim: -------------------------------------------------------------------------------- 1 | "============================================================================= 2 | " File: 3 | " Maintainer: <> 4 | " License: <+ LICENSE +> 5 | " Created: 6 | " GetLatestVimScripts: <+ ID +> 1 :AutoInstall: 7 | "----------------------------------------------------------------------------- 8 | " Description: 9 | " <+ DESCRIPTION +> 10 | " 11 | " Usage: 12 | " <+ USAGE +> 13 | " 14 | " Notes: 15 | " <+ NOTES +> 16 | "----------------------------------------------------------------------------- 17 | " Installation: 18 | " <+ INSTALLATION +> 19 | " 20 | " History: 21 | " <+ HISTORY +> 22 | " 23 | " TODO: 24 | " <+ TODO +> 25 | "============================================================================= 26 | 27 | " Avoid reinclusion 28 | if exists("g:loaded_") 29 | finish 30 | endif 31 | let g:loaded_ = 1 32 | 33 | <+ CODE +> 34 | 35 | " vim:: 36 | -------------------------------------------------------------------------------- /.vim_from_inspiron/templates/template.h: -------------------------------------------------------------------------------- 1 | /* 2 | * <+ DESCRIPTION +> 3 | * 4 | * Copyright (C) , <> {{{ 5 | * 6 | * This program is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU General Public License 8 | * as published by the Free Software Foundation; either 9 | * version 2 of the License, or any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 | * }}} 20 | */ 21 | 22 | #ifndef 23 | #define 24 | 25 | <+ CODE +> 26 | 27 | #endif /* */ 28 | 29 | /* vim:: */ 30 | -------------------------------------------------------------------------------- /.vim_from_inspiron/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2008 (c) Meikel Brandmeyer. 2 | All rights reserved. 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy 5 | of this software and associated documentation files (the "Software"), to deal 6 | in the Software without restriction, including without limitation the rights 7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the Software is 9 | furnished to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /slime/contrib/swank-media.lisp: -------------------------------------------------------------------------------- 1 | ;;; swank-media.lisp --- insert other media (images) 2 | ;; 3 | ;; Authors: Christophe Rhodes 4 | ;; 5 | ;; Licence: GPLv2 or later 6 | ;; 7 | 8 | (in-package :swank) 9 | 10 | ;; this file is empty of functionality. The slime-media contrib 11 | ;; allows swank to return messages other than :write-string as repl 12 | ;; results; this is used in the R implementation of swank to display R 13 | ;; objects with graphical representations (such as trellis objects) as 14 | ;; image presentations in the swank repl. In R, this is done by 15 | ;; having a hook function for the preparation of the repl results, in 16 | ;; addition to the already-existing hook for sending the repl results 17 | ;; (*send-repl-results-function*, used by swank-presentations.lisp). 18 | ;; The swank-media.R contrib implementation defines a generic function 19 | ;; for use as this hook, along with methods for commonly-encountered 20 | ;; graphical R objects. (This strategy is harder in CL, where methods 21 | ;; can only be defined if their specializers already exist; in R's S3 22 | ;; object system, methods are ordinary functions with a special naming 23 | ;; convention) 24 | -------------------------------------------------------------------------------- /.vim_from_inspiron/templates/template.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # -------------------------------------------- 3 | # <+ PROGRAM_NAME +> - <+ SHORT_DESC +> 4 | # -------------------------------------------- 5 | # File: 6 | # Author: <> 7 | # 8 | # Copyright (C) , <> {{{ 9 | # 10 | # This program is free software; you can redistribute it and/or 11 | # modify it under the terms of the GNU General Public License 12 | # as published by the Free Software Foundation; either 13 | # version 2 of the License, or any later version. 14 | # 15 | # This program is distributed in the hope that it will be useful, 16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | # GNU General Public License for more details. 19 | # 20 | # You should have received a copy of the GNU General Public License 21 | # along with this program; if not, write to the Free Software 22 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 23 | # }}} 24 | # 25 | # <+ DESCRIPTION +> 26 | 27 | <+ CODE +> 28 | 29 | # vim:: 30 | -------------------------------------------------------------------------------- /.vim_from_inspiron/slime/contrib/swank-media.lisp: -------------------------------------------------------------------------------- 1 | ;;; swank-media.lisp --- insert other media (images) 2 | ;; 3 | ;; Authors: Christophe Rhodes 4 | ;; 5 | ;; Licence: GPLv2 or later 6 | ;; 7 | 8 | (in-package :swank) 9 | 10 | ;; this file is empty of functionality. The slime-media contrib 11 | ;; allows swank to return messages other than :write-string as repl 12 | ;; results; this is used in the R implementation of swank to display R 13 | ;; objects with graphical representations (such as trellis objects) as 14 | ;; image presentations in the swank repl. In R, this is done by 15 | ;; having a hook function for the preparation of the repl results, in 16 | ;; addition to the already-existing hook for sending the repl results 17 | ;; (*send-repl-results-function*, used by swank-presentations.lisp). 18 | ;; The swank-media.R contrib implementation defines a generic function 19 | ;; for use as this hook, along with methods for commonly-encountered 20 | ;; graphical R objects. (This strategy is harder in CL, where methods 21 | ;; can only be defined if their specializers already exist; in R's S3 22 | ;; object system, methods are ordinary functions with a special naming 23 | ;; convention) 24 | -------------------------------------------------------------------------------- /snippets/zsh.snippets: -------------------------------------------------------------------------------- 1 | # #!/bin/zsh 2 | snippet #! 3 | #!/bin/zsh 4 | 5 | snippet if 6 | if ${1:condition}; then 7 | ${2:# statements} 8 | fi 9 | snippet ife 10 | if ${1:condition}; then 11 | ${2:# statements} 12 | else 13 | ${3:# statements} 14 | fi 15 | snippet elif 16 | elif ${1:condition} ; then 17 | ${2:# statements} 18 | snippet for 19 | for (( ${2:i} = 0; $2 < ${1:count}; $2++ )); do 20 | ${3:# statements} 21 | done 22 | snippet fore 23 | for ${1:item} in ${2:list}; do 24 | ${3:# statements} 25 | done 26 | snippet wh 27 | while ${1:condition}; do 28 | ${2:# statements} 29 | done 30 | snippet until 31 | until ${1:condition}; do 32 | ${2:# statements} 33 | done 34 | snippet repeat 35 | repeat ${1:integer}; do 36 | ${2:# statements} 37 | done 38 | snippet case 39 | case ${1:word} in 40 | ${2:pattern}) 41 | ${3};; 42 | esac 43 | snippet select 44 | select ${1:answer} in ${2:choices}; do 45 | ${3:# statements} 46 | done 47 | snippet ( 48 | ( ${1:#statements} ) 49 | snippet { 50 | { ${1:#statements} } 51 | snippet [ 52 | [[ ${1:test} ]] 53 | snippet always 54 | { ${1:try} } always { ${2:always} } 55 | snippet fun 56 | function ${1:name} (${2:args}) { 57 | ${3:# body} 58 | } 59 | -------------------------------------------------------------------------------- /swank-clojure/swank/util/clojure.clj: -------------------------------------------------------------------------------- 1 | (ns swank.util.clojure) 2 | 3 | (defn unmunge 4 | "Converts a javafied name to a clojure symbol name" 5 | ([#^String name] 6 | (reduce (fn [#^String s [to from]] 7 | (.replaceAll s from (str to))) 8 | name 9 | clojure.lang.Compiler/CHAR_MAP))) 10 | 11 | (defn ns-path 12 | "Returns the path form of a given namespace" 13 | ([#^clojure.lang.Namespace ns] 14 | (let [#^String ns-str (name (ns-name ns))] 15 | (-> ns-str 16 | (.substring 0 (.lastIndexOf ns-str ".")) 17 | (.replace \- \_) 18 | (.replace \. \/))))) 19 | 20 | (defn symbol-name-parts 21 | "Parses a symbol name into a namespace and a name. If name doesn't 22 | contain a namespace, the default-ns is used (nil if none provided)." 23 | ([symbol] 24 | (symbol-name-parts symbol nil)) 25 | ([#^String symbol default-ns] 26 | (let [ns-pos (.indexOf symbol (int \/))] 27 | (if (= ns-pos -1) ;; namespace found? 28 | [default-ns symbol] 29 | [(.substring symbol 0 ns-pos) (.substring symbol (inc ns-pos))])))) 30 | 31 | (defn resolve-ns [sym ns] 32 | (or (find-ns sym) 33 | (get (ns-aliases ns) sym))) -------------------------------------------------------------------------------- /after/plugin/snipMate.vim: -------------------------------------------------------------------------------- 1 | " These are the mappings for snipMate.vim. Putting it here ensures that it 2 | " will be mapped after other plugins such as supertab.vim. 3 | if !exists('loaded_snips') || exists('s:did_snips_mappings') 4 | finish 5 | endif 6 | let s:did_snips_mappings = 1 7 | 8 | ino =TriggerSnippet() 9 | snor i=TriggerSnippet() 10 | ino =BackwardsSnippet() 11 | snor i=BackwardsSnippet() 12 | ino =ShowAvailableSnips() 13 | 14 | " The default mappings for these are annoying & sometimes break snipMate. 15 | " You can change them back if you want, I've put them here for convenience. 16 | snor b 17 | snor a 18 | snor bi 19 | snor ' b' 20 | snor ` b` 21 | snor % b% 22 | snor U bU 23 | snor ^ b^ 24 | snor \ b\ 25 | snor b 26 | 27 | " By default load snippets in snippets_dir 28 | if empty(snippets_dir) 29 | finish 30 | endif 31 | 32 | call GetSnippets(snippets_dir, '_') " Get global snippets 33 | 34 | au FileType * if &ft != 'help' | call GetSnippets(snippets_dir, &ft) | endif 35 | " vim:noet:sw=4:ts=4:ft=vim 36 | -------------------------------------------------------------------------------- /.vim_from_inspiron/swank-clojure/swank/util/clojure.clj: -------------------------------------------------------------------------------- 1 | (ns swank.util.clojure) 2 | 3 | (defn unmunge 4 | "Converts a javafied name to a clojure symbol name" 5 | ([#^String name] 6 | (reduce (fn [#^String s [to from]] 7 | (.replaceAll s from (str to))) 8 | name 9 | clojure.lang.Compiler/CHAR_MAP))) 10 | 11 | (defn ns-path 12 | "Returns the path form of a given namespace" 13 | ([#^clojure.lang.Namespace ns] 14 | (let [#^String ns-str (name (ns-name ns))] 15 | (-> ns-str 16 | (.substring 0 (.lastIndexOf ns-str ".")) 17 | (.replace \- \_) 18 | (.replace \. \/))))) 19 | 20 | (defn symbol-name-parts 21 | "Parses a symbol name into a namespace and a name. If name doesn't 22 | contain a namespace, the default-ns is used (nil if none provided)." 23 | ([symbol] 24 | (symbol-name-parts symbol nil)) 25 | ([#^String symbol default-ns] 26 | (let [ns-pos (.indexOf symbol (int \/))] 27 | (if (= ns-pos -1) ;; namespace found? 28 | [default-ns symbol] 29 | [(.substring symbol 0 ns-pos) (.substring symbol (inc ns-pos))])))) 30 | 31 | (defn resolve-ns [sym ns] 32 | (or (find-ns sym) 33 | (get (ns-aliases ns) sym))) -------------------------------------------------------------------------------- /.vim_from_inspiron/templates/template.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -------------------------------------------- 3 | # <+ PROGRAM_NAME +> - <+ SHORT_DESC +> 4 | # -------------------------------------------- 5 | # Module: 6 | # File: 7 | # Author: <> 8 | # 9 | # Copyright (C) , <> {{{ 10 | # 11 | # This program is free software; you can redistribute it and/or 12 | # modify it under the terms of the GNU General Public License 13 | # as published by the Free Software Foundation; either 14 | # version 2 of the License, or any later version. 15 | # 16 | # This program is distributed in the hope that it will be useful, 17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | # GNU General Public License for more details. 20 | # 21 | # You should have received a copy of the GNU General Public License 22 | # along with this program; if not, write to the Free Software 23 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 24 | # }}} 25 | # 26 | # <+ DESCRIPTION +> 27 | 28 | <+ CODE +> 29 | 30 | # vim:: 31 | -------------------------------------------------------------------------------- /.vim_from_inspiron/after/plugin/snipMate.vim: -------------------------------------------------------------------------------- 1 | " These are the mappings for snipMate.vim. Putting it here ensures that it 2 | " will be mapped after other plugins such as supertab.vim. 3 | if !exists('loaded_snips') || exists('s:did_snips_mappings') 4 | finish 5 | endif 6 | let s:did_snips_mappings = 1 7 | 8 | ino =TriggerSnippet() 9 | snor i=TriggerSnippet() 10 | ino =BackwardsSnippet() 11 | snor i=BackwardsSnippet() 12 | ino =ShowAvailableSnips() 13 | 14 | " The default mappings for these are annoying & sometimes break snipMate. 15 | " You can change them back if you want, I've put them here for convenience. 16 | snor b 17 | snor a 18 | snor bi 19 | snor ' b' 20 | snor ` b` 21 | snor % b% 22 | snor U bU 23 | snor ^ b^ 24 | snor \ b\ 25 | snor b 26 | 27 | " By default load snippets in snippets_dir 28 | if empty(snippets_dir) 29 | finish 30 | endif 31 | 32 | call GetSnippets(snippets_dir, '_') " Get global snippets 33 | 34 | au FileType * if &ft != 'help' | call GetSnippets(snippets_dir, &ft) | endif 35 | " vim:noet:sw=4:ts=4:ft=vim 36 | -------------------------------------------------------------------------------- /.vim_from_inspiron/.VimballRecord: -------------------------------------------------------------------------------- 1 | vimwiki-0-9-801.vba: call delete('/home/html/.vim/autoload/vimwiki.vim')|call delete('/home/html/.vim/autoload/vimwiki_html.vim')|call delete('/home/html/.vim/autoload/vimwiki_lst.vim')|call delete('/home/html/.vim/doc/vimwiki.txt')|call delete('/home/html/.vim/ftplugin/vimwiki.vim')|call delete('/home/html/.vim/plugin/vimwiki.vim')|call delete('/home/html/.vim/syntax/vimwiki.vim')|call delete('/home/html/.vim/syntax/vimwiki_default.vim')|call delete('/home/html/.vim/syntax/vimwiki_media.vim') 2 | loremipsum.vba: call delete('/home/html/.vim/autoload/loremipsum.vim')|call delete('/home/html/.vim/autoload/loremipsum.txt')|call delete('/home/html/.vim/plugin/loremipsum.vim')|call delete('/home/html/.vim/doc/loremipsum.txt') 3 | specky.vba: call delete('/home/html/.vim/syntax/rdoc.vim')|call delete('/home/html/.vim/syntax/specrun.vim')|call delete('/home/html/.vim/syntax/rspec.vim')|call delete('/home/html/.vim/ftdetect/rspec.vim')|call delete('/home/html/.vim/ftplugin/rspec.vim')|call delete('/home/html/.vim/doc/specky.txt')|call delete('/home/html/.vim/plugin/specky.vim')|call delete('/home/html/.vim/snippets/rspec.snippets') 4 | textobj-rubyblock.vba: call delete('/home/html/.vim/plugin/textobj/rubyblock.vim')|call delete('/home/html/.vim/doc/textobj-rubyblock.txt') 5 | -------------------------------------------------------------------------------- /.vim_from_inspiron/templates/template.lisp: -------------------------------------------------------------------------------- 1 | ;;;; Copyright (c) 2010 Olexiy Zamkoviy 2 | ;;;; 3 | ;;;; Permission is hereby granted, free of charge, to any person obtaining 4 | ;;;; a copy of this software and associated documentation files (the 5 | ;;;; "Software"), to deal in the Software without restriction, including 6 | ;;;; without limitation the rights to use, copy, modify, merge, publish, 7 | ;;;; distribute, sublicense, and/or sell copies of the Software, and to 8 | ;;;; permit persons to whom the Software is furnished to do so, subject to 9 | ;;;; the following conditions: 10 | ;;;; 11 | ;;;; The above copyright notice and this permission notice shall be included 12 | ;;;; in all copies or substantial portions of the Software. 13 | ;;;; 14 | ;;;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | ;;;; EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | ;;;; MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 17 | ;;;; IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 18 | ;;;; CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 19 | ;;;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 20 | ;;;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | -------------------------------------------------------------------------------- /slime/swank.asd: -------------------------------------------------------------------------------- 1 | ;;; -*- lisp -*- 2 | 3 | ;; ASDF system definition for loading the Swank server independently 4 | ;; of Emacs. 5 | ;; 6 | ;; This is only useful if you want to start a Swank server in a Lisp 7 | ;; processes that doesn't run under Emacs. Lisp processes created by 8 | ;; `M-x slime' automatically start the server. 9 | 10 | ;; Usage: 11 | ;; 12 | ;; (require :swank) 13 | ;; (swank:create-swank-server PORT) => ACTUAL-PORT 14 | ;; 15 | ;; (PORT can be zero to mean "any available port".) 16 | ;; Then the Swank server is running on localhost:ACTUAL-PORT. You can 17 | ;; use `M-x slime-connect' to connect Emacs to it. 18 | ;; 19 | ;; This code has been placed in the Public Domain. All warranties 20 | ;; are disclaimed. 21 | 22 | (defpackage :swank-loader 23 | (:use :cl)) 24 | 25 | (in-package :swank-loader) 26 | 27 | (defclass swank-loader-file (asdf:cl-source-file) ()) 28 | 29 | ;;;; after loading run init 30 | 31 | (defmethod asdf:perform ((o asdf:load-op) (f swank-loader-file)) 32 | (load (asdf::component-pathname f)) 33 | (funcall (read-from-string "swank-loader::init") 34 | :reload (asdf::operation-forced o) 35 | :delete (asdf::operation-forced o))) 36 | 37 | (asdf:defsystem :swank 38 | :default-component-class swank-loader-file 39 | :components ((:file "swank-loader"))) 40 | -------------------------------------------------------------------------------- /.vim_from_inspiron/slime/swank.asd: -------------------------------------------------------------------------------- 1 | ;;; -*- lisp -*- 2 | 3 | ;; ASDF system definition for loading the Swank server independently 4 | ;; of Emacs. 5 | ;; 6 | ;; This is only useful if you want to start a Swank server in a Lisp 7 | ;; processes that doesn't run under Emacs. Lisp processes created by 8 | ;; `M-x slime' automatically start the server. 9 | 10 | ;; Usage: 11 | ;; 12 | ;; (require :swank) 13 | ;; (swank:create-swank-server PORT) => ACTUAL-PORT 14 | ;; 15 | ;; (PORT can be zero to mean "any available port".) 16 | ;; Then the Swank server is running on localhost:ACTUAL-PORT. You can 17 | ;; use `M-x slime-connect' to connect Emacs to it. 18 | ;; 19 | ;; This code has been placed in the Public Domain. All warranties 20 | ;; are disclaimed. 21 | 22 | (defpackage :swank-loader 23 | (:use :cl)) 24 | 25 | (in-package :swank-loader) 26 | 27 | (defclass swank-loader-file (asdf:cl-source-file) ()) 28 | 29 | ;;;; after loading run init 30 | 31 | (defmethod asdf:perform ((o asdf:load-op) (f swank-loader-file)) 32 | (load (asdf::component-pathname f)) 33 | (funcall (read-from-string "swank-loader::init") 34 | :reload (asdf::operation-forced o) 35 | :delete (asdf::operation-forced o))) 36 | 37 | (asdf:defsystem :swank 38 | :default-component-class swank-loader-file 39 | :components ((:file "swank-loader"))) 40 | -------------------------------------------------------------------------------- /swank-clojure/leiningen/swank.clj: -------------------------------------------------------------------------------- 1 | (ns leiningen.swank 2 | "Launch swank server for Emacs to connect." 3 | (:use [leiningen.compile :only [eval-in-project]]) 4 | (:import [java.io File])) 5 | 6 | (defn swank-form [project port host opts] 7 | ;; bootclasspath workaround: http://dev.clojure.org/jira/browse/CLJ-673 8 | (when (:eval-in-leiningen project) 9 | (require '[clojure walk template stacktrace])) 10 | `(do 11 | (let [is# ~(:repl-init-script project)] 12 | (when (.exists (File. (str is#))) 13 | (load-file is#))) 14 | (require '~'swank.swank) 15 | (require '~'swank.commands.basic) 16 | (@(ns-resolve '~'swank.swank '~'start-repl) 17 | (Integer. ~port) ~@(concat (map read-string opts) 18 | [:host host])) 19 | ;; This exits immediately when using :eval-in-leiningen; must block 20 | (when ~(:eval-in-leiningen project) 21 | (doseq [t# ((ns-resolve '~'swank.commands.basic 22 | '~'get-thread-list))] 23 | (.join t#))))) 24 | 25 | (defn swank 26 | "Launch swank server for Emacs to connect. Optionally takes PORT and HOST." 27 | ([project port host & opts] 28 | (eval-in-project project (swank-form project port host opts))) 29 | ([project port] (swank project port "localhost")) 30 | ([project] (swank project 4005))) 31 | -------------------------------------------------------------------------------- /.vim_from_inspiron/swank-clojure/leiningen/swank.clj: -------------------------------------------------------------------------------- 1 | (ns leiningen.swank 2 | "Launch swank server for Emacs to connect." 3 | (:use [leiningen.compile :only [eval-in-project]]) 4 | (:import [java.io File])) 5 | 6 | (defn swank-form [project port host opts] 7 | ;; bootclasspath workaround: http://dev.clojure.org/jira/browse/CLJ-673 8 | (when (:eval-in-leiningen project) 9 | (require '[clojure walk template stacktrace])) 10 | `(do 11 | (let [is# ~(:repl-init-script project)] 12 | (when (.exists (File. (str is#))) 13 | (load-file is#))) 14 | (require '~'swank.swank) 15 | (require '~'swank.commands.basic) 16 | (@(ns-resolve '~'swank.swank '~'start-repl) 17 | (Integer. ~port) ~@(concat (map read-string opts) 18 | [:host host])) 19 | ;; This exits immediately when using :eval-in-leiningen; must block 20 | (when ~(:eval-in-leiningen project) 21 | (doseq [t# ((ns-resolve '~'swank.commands.basic 22 | '~'get-thread-list))] 23 | (.join t#))))) 24 | 25 | (defn swank 26 | "Launch swank server for Emacs to connect. Optionally takes PORT and HOST." 27 | ([project port host & opts] 28 | (eval-in-project project (swank-form project port host opts))) 29 | ([project port] (swank project port "localhost")) 30 | ([project] (swank project 4005))) 31 | -------------------------------------------------------------------------------- /slime/contrib/README: -------------------------------------------------------------------------------- 1 | This directory contains source code which may be useful to some Slime 2 | users. *.el files are Emacs Lisp source and *.lisp files contain 3 | Common Lisp source code. If not otherwise stated in the file itself, 4 | the files are placed in the Public Domain. 5 | 6 | The components in this directory are more or less detached from the 7 | rest of Slime. They are essentially "add-ons". But Slime can also be 8 | used without them. The code is maintained by the respective authors. 9 | 10 | To use the packages here, you should add this directory to your Emacs 11 | load-path, require the contrib, and call the contrib's init function to 12 | enable the functionality that's provided by the respective contrib. 13 | 14 | E.g. for fuzzy completion add this to your .emacs: 15 | 16 | (add-to-list 'load-path "") 17 | (add-hook 'slime-load-hook (lambda () (require 'slime-fuzzy) 18 | (slime-fuzzy-init))) 19 | 20 | Alternatively, you can use the `slime-setup' function which takes a 21 | list of contrib names, and which loads and enables them automatically 22 | for you: 23 | 24 | (slime-setup '(slime-fancy slime-asdf slime-tramp ...)) 25 | 26 | 27 | Finally, the contrib `slime-fancy' is specially noteworthy, as it 28 | represents a meta-contrib that'll load a bunch of commonly used 29 | contribs. Look into `slime-fancy.el' to find out which. 30 | -------------------------------------------------------------------------------- /swank-clojure/swank/clj_contrib/pprint.clj: -------------------------------------------------------------------------------- 1 | (ns swank.clj-contrib.pprint) 2 | 3 | (def #^{:private true} pprint-enabled? 4 | (try ;; 1.2+ 5 | (.getResource (clojure.lang.RT/baseLoader) "clojure/pprint") 6 | (require '[clojure.pprint :as pp]) 7 | (defmacro #^{:private true} pretty-pr-code* 8 | ([code] 9 | (if pprint-enabled? 10 | `(binding [pp/*print-suppress-namespaces* true] 11 | (pp/with-pprint-dispatch pp/code-dispatch 12 | (pp/write ~code :pretty true :stream nil))) 13 | `(pr-str ~code)))) 14 | true 15 | (catch Exception e 16 | (try ;; 1.0, 1.1 17 | (.loadClass (clojure.lang.RT/baseLoader) 18 | "clojure.contrib.pprint.PrettyWriter") 19 | (require '[clojure.contrib.pprint :as pp]) 20 | (defmacro #^{:private true} pretty-pr-code* 21 | ([code] 22 | (if pprint-enabled? 23 | `(binding [pp/*print-suppress-namespaces* true] 24 | (pp/with-pprint-dispatch pp/*code-dispatch* 25 | (pp/write ~code :pretty true :stream nil))) 26 | `(pr-str ~code)))) 27 | true 28 | ;; if you just don't have contrib, be silent. 29 | (catch ClassNotFoundException _) 30 | (catch Exception e 31 | (println e)))))) 32 | 33 | (defn pretty-pr-code [code] 34 | (pretty-pr-code* code)) 35 | -------------------------------------------------------------------------------- /.vim_from_inspiron/slime/contrib/README: -------------------------------------------------------------------------------- 1 | This directory contains source code which may be useful to some Slime 2 | users. *.el files are Emacs Lisp source and *.lisp files contain 3 | Common Lisp source code. If not otherwise stated in the file itself, 4 | the files are placed in the Public Domain. 5 | 6 | The components in this directory are more or less detached from the 7 | rest of Slime. They are essentially "add-ons". But Slime can also be 8 | used without them. The code is maintained by the respective authors. 9 | 10 | To use the packages here, you should add this directory to your Emacs 11 | load-path, require the contrib, and call the contrib's init function to 12 | enable the functionality that's provided by the respective contrib. 13 | 14 | E.g. for fuzzy completion add this to your .emacs: 15 | 16 | (add-to-list 'load-path "") 17 | (add-hook 'slime-load-hook (lambda () (require 'slime-fuzzy) 18 | (slime-fuzzy-init))) 19 | 20 | Alternatively, you can use the `slime-setup' function which takes a 21 | list of contrib names, and which loads and enables them automatically 22 | for you: 23 | 24 | (slime-setup '(slime-fancy slime-asdf slime-tramp ...)) 25 | 26 | 27 | Finally, the contrib `slime-fancy' is specially noteworthy, as it 28 | represents a meta-contrib that'll load a bunch of commonly used 29 | contribs. Look into `slime-fancy.el' to find out which. 30 | -------------------------------------------------------------------------------- /.vim_from_inspiron/swank-clojure/swank/clj_contrib/pprint.clj: -------------------------------------------------------------------------------- 1 | (ns swank.clj-contrib.pprint) 2 | 3 | (def #^{:private true} pprint-enabled? 4 | (try ;; 1.2+ 5 | (.getResource (clojure.lang.RT/baseLoader) "clojure/pprint") 6 | (require '[clojure.pprint :as pp]) 7 | (defmacro #^{:private true} pretty-pr-code* 8 | ([code] 9 | (if pprint-enabled? 10 | `(binding [pp/*print-suppress-namespaces* true] 11 | (pp/with-pprint-dispatch pp/code-dispatch 12 | (pp/write ~code :pretty true :stream nil))) 13 | `(pr-str ~code)))) 14 | true 15 | (catch Exception e 16 | (try ;; 1.0, 1.1 17 | (.loadClass (clojure.lang.RT/baseLoader) 18 | "clojure.contrib.pprint.PrettyWriter") 19 | (require '[clojure.contrib.pprint :as pp]) 20 | (defmacro #^{:private true} pretty-pr-code* 21 | ([code] 22 | (if pprint-enabled? 23 | `(binding [pp/*print-suppress-namespaces* true] 24 | (pp/with-pprint-dispatch pp/*code-dispatch* 25 | (pp/write ~code :pretty true :stream nil))) 26 | `(pr-str ~code)))) 27 | true 28 | ;; if you just don't have contrib, be silent. 29 | (catch ClassNotFoundException _) 30 | (catch Exception e 31 | (println e)))))) 32 | 33 | (defn pretty-pr-code [code] 34 | (pretty-pr-code* code)) 35 | -------------------------------------------------------------------------------- /snippets/autoit.snippets: -------------------------------------------------------------------------------- 1 | snippet if 2 | If ${1:condition} Then 3 | ${2:; True code} 4 | EndIf 5 | snippet el 6 | Else 7 | ${1} 8 | snippet elif 9 | ElseIf ${1:condition} Then 10 | ${2:; True code} 11 | # If/Else block 12 | snippet ifel 13 | If ${1:condition} Then 14 | ${2:; True code} 15 | Else 16 | ${3:; Else code} 17 | EndIf 18 | # If/ElseIf/Else block 19 | snippet ifelif 20 | If ${1:condition 1} Then 21 | ${2:; True code} 22 | ElseIf ${3:condition 2} Then 23 | ${4:; True code} 24 | Else 25 | ${5:; Else code} 26 | EndIf 27 | # Switch block 28 | snippet switch 29 | Switch (${1:condition}) 30 | Case {$2:case1}: 31 | {$3:; Case 1 code} 32 | Case Else: 33 | {$4:; Else code} 34 | EndSwitch 35 | # Select block 36 | snippet select 37 | Select (${1:condition}) 38 | Case {$2:case1}: 39 | {$3:; Case 1 code} 40 | Case Else: 41 | {$4:; Else code} 42 | EndSelect 43 | # While loop 44 | snippet while 45 | While (${1:condition}) 46 | ${2:; code...} 47 | WEnd 48 | # For loop 49 | snippet for 50 | For ${1:n} = ${3:1} to ${2:count} 51 | ${4:; code...} 52 | Next 53 | # New Function 54 | snippet func 55 | Func ${1:fname}(${2:`indent('.') ? 'self' : ''`}): 56 | ${4:Return} 57 | EndFunc 58 | # Message box 59 | snippet msg 60 | MsgBox(${3:MsgType}, ${1:"Title"}, ${2:"Message Text"}) 61 | # Debug Message 62 | snippet debug 63 | MsgBox(0, "Debug", ${1:"Debug Message"}) 64 | # Show Variable Debug Message 65 | snippet showvar 66 | MsgBox(0, "${1:VarName}", $1) 67 | -------------------------------------------------------------------------------- /swank-clojure/swank/util/io.clj: -------------------------------------------------------------------------------- 1 | (ns swank.util.io 2 | (:use [swank util] 3 | [swank.util.concurrent thread]) 4 | (:import [java.io StringWriter Reader PrintWriter])) 5 | 6 | (defn read-chars 7 | ([rdr n] (read-chars rdr n false)) 8 | ([#^Reader rdr n throw-exception] 9 | (let [cbuf (make-array Character/TYPE n)] 10 | (loop [i 0] 11 | (let [size (.read rdr cbuf i (- n i))] 12 | (cond 13 | (neg? size) (if throw-exception 14 | (throw throw-exception) 15 | (String. cbuf 0 i)) 16 | (= (+ i size) n) (String. cbuf) 17 | :else (recur (+ i size)))))))) 18 | 19 | (defn call-on-flush-stream 20 | "Creates a stream that will call a given function when flushed." 21 | ([flushf] 22 | (let [closed? (atom false) 23 | #^PrintWriter stream 24 | (PrintWriter. 25 | (proxy [StringWriter] [] 26 | (close [] (reset! closed? true)) 27 | (flush [] 28 | (let [#^StringWriter me this 29 | len (.. me getBuffer length)] 30 | (when (> len 0) 31 | (flushf (.. me getBuffer (substring 0 len))) 32 | (.. me getBuffer (delete 0 len)))))))] 33 | (dothread 34 | (thread-set-name "Call-on-write Stream") 35 | (continuously 36 | (Thread/sleep 200) 37 | (when-not @closed? 38 | (.flush stream)))) 39 | stream)) 40 | {:tag PrintWriter}) 41 | -------------------------------------------------------------------------------- /syntax/vcscommit.vim: -------------------------------------------------------------------------------- 1 | " Vim syntax file 2 | " Language: VCS commit file 3 | " Maintainer: Bob Hiestand (bob.hiestand@gmail.com) 4 | " License: 5 | " Copyright (c) Bob Hiestand 6 | " 7 | " Permission is hereby granted, free of charge, to any person obtaining a copy 8 | " of this software and associated documentation files (the "Software"), to 9 | " deal in the Software without restriction, including without limitation the 10 | " rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 11 | " sell copies of the Software, and to permit persons to whom the Software is 12 | " furnished to do so, subject to the following conditions: 13 | " 14 | " The above copyright notice and this permission notice shall be included in 15 | " all copies or substantial portions of the Software. 16 | " 17 | " THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | " IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | " FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | " AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | " LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 22 | " FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 23 | " IN THE SOFTWARE. 24 | 25 | if exists("b:current_syntax") 26 | finish 27 | endif 28 | 29 | syntax region vcsComment start="^VCS: " end="$" 30 | highlight link vcsComment Comment 31 | let b:current_syntax = "vcscommit" 32 | -------------------------------------------------------------------------------- /.vim_from_inspiron/snippets/autoit.snippets: -------------------------------------------------------------------------------- 1 | snippet if 2 | If ${1:condition} Then 3 | ${2:; True code} 4 | EndIf 5 | snippet el 6 | Else 7 | ${1} 8 | snippet elif 9 | ElseIf ${1:condition} Then 10 | ${2:; True code} 11 | # If/Else block 12 | snippet ifel 13 | If ${1:condition} Then 14 | ${2:; True code} 15 | Else 16 | ${3:; Else code} 17 | EndIf 18 | # If/ElseIf/Else block 19 | snippet ifelif 20 | If ${1:condition 1} Then 21 | ${2:; True code} 22 | ElseIf ${3:condition 2} Then 23 | ${4:; True code} 24 | Else 25 | ${5:; Else code} 26 | EndIf 27 | # Switch block 28 | snippet switch 29 | Switch (${1:condition}) 30 | Case {$2:case1}: 31 | {$3:; Case 1 code} 32 | Case Else: 33 | {$4:; Else code} 34 | EndSwitch 35 | # Select block 36 | snippet select 37 | Select (${1:condition}) 38 | Case {$2:case1}: 39 | {$3:; Case 1 code} 40 | Case Else: 41 | {$4:; Else code} 42 | EndSelect 43 | # While loop 44 | snippet while 45 | While (${1:condition}) 46 | ${2:; code...} 47 | WEnd 48 | # For loop 49 | snippet for 50 | For ${1:n} = ${3:1} to ${2:count} 51 | ${4:; code...} 52 | Next 53 | # New Function 54 | snippet func 55 | Func ${1:fname}(${2:`indent('.') ? 'self' : ''`}): 56 | ${4:Return} 57 | EndFunc 58 | # Message box 59 | snippet msg 60 | MsgBox(${3:MsgType}, ${1:"Title"}, ${2:"Message Text"}) 61 | # Debug Message 62 | snippet debug 63 | MsgBox(0, "Debug", ${1:"Debug Message"}) 64 | # Show Variable Debug Message 65 | snippet showvar 66 | MsgBox(0, "${1:VarName}", $1) 67 | -------------------------------------------------------------------------------- /.vim_from_inspiron/swank-clojure/swank/util/io.clj: -------------------------------------------------------------------------------- 1 | (ns swank.util.io 2 | (:use [swank util] 3 | [swank.util.concurrent thread]) 4 | (:import [java.io StringWriter Reader PrintWriter])) 5 | 6 | (defn read-chars 7 | ([rdr n] (read-chars rdr n false)) 8 | ([#^Reader rdr n throw-exception] 9 | (let [cbuf (make-array Character/TYPE n)] 10 | (loop [i 0] 11 | (let [size (.read rdr cbuf i (- n i))] 12 | (cond 13 | (neg? size) (if throw-exception 14 | (throw throw-exception) 15 | (String. cbuf 0 i)) 16 | (= (+ i size) n) (String. cbuf) 17 | :else (recur (+ i size)))))))) 18 | 19 | (defn call-on-flush-stream 20 | "Creates a stream that will call a given function when flushed." 21 | ([flushf] 22 | (let [closed? (atom false) 23 | #^PrintWriter stream 24 | (PrintWriter. 25 | (proxy [StringWriter] [] 26 | (close [] (reset! closed? true)) 27 | (flush [] 28 | (let [#^StringWriter me this 29 | len (.. me getBuffer length)] 30 | (when (> len 0) 31 | (flushf (.. me getBuffer (substring 0 len))) 32 | (.. me getBuffer (delete 0 len)))))))] 33 | (dothread 34 | (thread-set-name "Call-on-write Stream") 35 | (continuously 36 | (Thread/sleep 200) 37 | (when-not @closed? 38 | (.flush stream)))) 39 | stream)) 40 | {:tag PrintWriter}) 41 | -------------------------------------------------------------------------------- /.vim_from_inspiron/syntax/vcscommit.vim: -------------------------------------------------------------------------------- 1 | " Vim syntax file 2 | " Language: VCS commit file 3 | " Maintainer: Bob Hiestand (bob.hiestand@gmail.com) 4 | " License: 5 | " Copyright (c) 2007 Bob Hiestand 6 | " 7 | " Permission is hereby granted, free of charge, to any person obtaining a copy 8 | " of this software and associated documentation files (the "Software"), to 9 | " deal in the Software without restriction, including without limitation the 10 | " rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 11 | " sell copies of the Software, and to permit persons to whom the Software is 12 | " furnished to do so, subject to the following conditions: 13 | " 14 | " The above copyright notice and this permission notice shall be included in 15 | " all copies or substantial portions of the Software. 16 | " 17 | " THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | " IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | " FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | " AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | " LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 22 | " FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 23 | " IN THE SOFTWARE. 24 | 25 | if exists("b:current_syntax") 26 | finish 27 | endif 28 | 29 | syntax region vcsComment start="^VCS: " end="$" 30 | highlight link vcsComment Comment 31 | let b:current_syntax = "vcscommit" 32 | -------------------------------------------------------------------------------- /.vim_from_inspiron/colors/satori.vim: -------------------------------------------------------------------------------- 1 | " Vim color file 2 | " Maintainer: Ruda Moura 3 | " Last Change: Sun Feb 24 18:50:47 BRT 2008 4 | 5 | highlight clear Normal 6 | set background& 7 | 8 | highlight clear 9 | 10 | if exists("syntax_on") 11 | syntax reset 12 | endif 13 | 14 | let colors_name = "satori" 15 | 16 | " Vim colors 17 | highlight Normal ctermfg=NONE cterm=NONE 18 | highlight Comment ctermfg=Cyan cterm=NONE 19 | highlight Constant ctermfg=Red cterm=NONE 20 | highlight Number ctermfg=Red cterm=NONE 21 | highlight Identifier ctermfg=NONE cterm=NONE 22 | highlight Statement ctermfg=NONE cterm=Bold 23 | highlight PreProc ctermfg=Blue cterm=NONE 24 | highlight Type ctermfg=Magenta cterm=NONE 25 | highlight Special ctermfg=Magenta cterm=NONE 26 | 27 | " Vim monochrome 28 | highlight Normal term=NONE 29 | highlight Comment term=NONE 30 | highlight Constant term=Underline 31 | highlight Number term=Underline 32 | highlight Identifier term=NONE 33 | highlight Statement term=Bold 34 | highlight PreProc term=NONE 35 | highlight Type term=Bold 36 | highlight Special term=NONE 37 | 38 | " GVim colors 39 | highlight Normal guifg=NONE gui=NONE 40 | highlight Comment guifg=DarkCyan gui=NONE 41 | highlight Constant guifg=Red gui=NONE 42 | highlight Number guifg=Red gui=Bold 43 | highlight Identifier guifg=NONE gui=NONE 44 | highlight Statement guifg=NONE gui=Bold 45 | highlight PreProc guifg=Blue gui=NONE 46 | highlight Type guifg=Magenta gui=NONE 47 | highlight Special guifg=Red gui=Bold 48 | -------------------------------------------------------------------------------- /plugin/textobj/rubyblock.vim: -------------------------------------------------------------------------------- 1 | if exists('g:loaded_textobj_rubyblock') "{{{1 2 | finish 3 | endif 4 | 5 | " Interface "{{{1 6 | call textobj#user#plugin('rubyblock', { 7 | \ '-': { 8 | \ '*sfile*': expand(':p'), 9 | \ 'select-a': 'ar', '*select-a-function*': 's:select_a', 10 | \ 'select-i': 'ir', '*select-i-function*': 's:select_i' 11 | \ } 12 | \ }) 13 | 14 | " Misc. "{{{1 15 | let s:comment_escape = '\v^[^#]*' 16 | let s:block_openers = '\zs(||||)' 17 | let s:start_pattern = s:comment_escape . s:block_openers 18 | let s:end_pattern = s:comment_escape . '\zs' 19 | let s:skip_pattern = 'getline(".") =~ "\\w\\s\\+if"' 20 | 21 | function! s:select_a() 22 | let s:flags = 'W' 23 | 24 | call searchpair(s:start_pattern,'',s:end_pattern, s:flags, s:skip_pattern) 25 | let end_pos = getpos('.') 26 | 27 | " Jump to match 28 | normal % 29 | let start_pos = getpos('.') 30 | 31 | return ['V', start_pos, end_pos] 32 | endfunction 33 | 34 | function! s:select_i() 35 | let s:flags = 'W' 36 | if expand('') == 'end' 37 | let s:flags = 'cW' 38 | endif 39 | 40 | call searchpair(s:start_pattern,'',s:end_pattern, s:flags, s:skip_pattern) 41 | 42 | " Move up one line, and save position 43 | normal k^ 44 | let end_pos = getpos('.') 45 | 46 | " Move down again, jump to match, then down one line and save position 47 | normal j^%j 48 | let start_pos = getpos('.') 49 | 50 | return ['V', start_pos, end_pos] 51 | endfunction 52 | 53 | " Fin. "{{{1 54 | 55 | let g:loaded_textobj_rubyblock = 1 56 | 57 | " __END__ 58 | " vim: foldmethod=marker 59 | -------------------------------------------------------------------------------- /plugin/SudoEdit.vim: -------------------------------------------------------------------------------- 1 | " SudoEdit.vim - Use sudo/su for writing/reading files with Vim 2 | " --------------------------------------------------------------- 3 | " Version: 0.8 4 | " Authors: Christian Brabandt 5 | " Last Change: Tue, 20 Apr 2010 00:04:14 +0200 6 | 7 | 8 | " Script: http://www.vim.org/scripts/script.php?script_id=2709 9 | " License: VIM License 10 | " GetLatestVimScripts: 2709 7 :AutoInstall: SudoEdit.vim 11 | " Documentation: see :h SudoEdit.txt 12 | 13 | " --------------------------------------------------------------------- 14 | " Load Once: {{{1 15 | if exists("g:loaded_sudoedit") || &cp 16 | finish 17 | endif 18 | let g:loaded_sudoedit = 1 19 | let s:keepcpo = &cpo 20 | set cpo&vim 21 | 22 | if v:version < 700 || ( v:version == 700 && !has("patch111")) 23 | echomsg 'SudoEdit: You need at least Vim 7.0 with patch111' 24 | finish 25 | endif 26 | 27 | " --------------------------------------------------------------------- 28 | " Public Interface {{{1 29 | " Define User-Commands and Autocommand "{{{ 30 | com! -complete=file -range=% -nargs=? SudoWrite :,call SudoEdit#SudoDo(0, ) 31 | com! -complete=file -nargs=? SudoRead :call SudoEdit#SudoDo(1, ) 32 | 33 | augroup Sudo 34 | autocmd! 35 | au BufReadCmd,FileReadCmd sudo:/*,sudo:* SudoRead 36 | au BufWriteCmd,FileWriteCmd sudo:/*,sudo:* SudoWrite 37 | augroup END 38 | "}}} 39 | 40 | " ===================================================================== 41 | " Restoration And Modelines: {{{1 42 | let &cpo= s:keepcpo 43 | unlet s:keepcpo 44 | 45 | " Modeline {{{1 46 | " vim: fdm=marker sw=2 sts=2 ts=8 fdl=0 47 | -------------------------------------------------------------------------------- /.vim_from_inspiron/plugin/textobj/rubyblock.vim: -------------------------------------------------------------------------------- 1 | if exists('g:loaded_textobj_rubyblock') "{{{1 2 | finish 3 | endif 4 | 5 | " Interface "{{{1 6 | call textobj#user#plugin('rubyblock', { 7 | \ '-': { 8 | \ '*sfile*': expand(':p'), 9 | \ 'select-a': 'ar', '*select-a-function*': 's:select_a', 10 | \ 'select-i': 'ir', '*select-i-function*': 's:select_i' 11 | \ } 12 | \ }) 13 | 14 | " Misc. "{{{1 15 | let s:comment_escape = '\v^[^#]*' 16 | let s:block_openers = '\zs(||||)' 17 | let s:start_pattern = s:comment_escape . s:block_openers 18 | let s:end_pattern = s:comment_escape . '\zs' 19 | let s:skip_pattern = 'getline(".") =~ "\\w\\s\\+if"' 20 | 21 | function! s:select_a() 22 | let s:flags = 'W' 23 | 24 | call searchpair(s:start_pattern,'',s:end_pattern, s:flags, s:skip_pattern) 25 | let end_pos = getpos('.') 26 | 27 | " Jump to match 28 | normal % 29 | let start_pos = getpos('.') 30 | 31 | return ['V', start_pos, end_pos] 32 | endfunction 33 | 34 | function! s:select_i() 35 | let s:flags = 'W' 36 | if expand('') == 'end' 37 | let s:flags = 'cW' 38 | endif 39 | 40 | call searchpair(s:start_pattern,'',s:end_pattern, s:flags, s:skip_pattern) 41 | 42 | " Move up one line, and save position 43 | normal k^ 44 | let end_pos = getpos('.') 45 | 46 | " Move down again, jump to match, then down one line and save position 47 | normal j^%j 48 | let start_pos = getpos('.') 49 | 50 | return ['V', start_pos, end_pos] 51 | endfunction 52 | 53 | " Fin. "{{{1 54 | 55 | let g:loaded_textobj_rubyblock = 1 56 | 57 | " __END__ 58 | " vim: foldmethod=marker 59 | -------------------------------------------------------------------------------- /.vim_from_inspiron/plugin/translateit.vim: -------------------------------------------------------------------------------- 1 | " File: translateit.vim 2 | " Author: Taras Ivashchenko 3 | " Version: 1.0 4 | " License: GPL 5 | " 6 | " Description: 7 | " This script looks up a word under cursor in a dictionary using custom utility 8 | " such as sdcv (console version of StarDict program) 9 | " 10 | " User-provided mappings can be used instead by mapping to CommandName, for instance: 11 | " 12 | " nmap ,d TranslateIt 13 | " 14 | " The default mappings are as follow: 15 | " 16 | " d TranslateIt 17 | " 18 | " Several variables are checked by the script to determine behavior as follow: 19 | " 20 | " TranslateIt_Bin 21 | " Path to the dictionary binary utility 22 | " 23 | " Installation: 24 | " Put this file into your $HOME/.vim/plugin directory. 25 | 26 | if !exists('TranslateIt_Bin') 27 | let g:TranslateIt_Bin = "sdcv" 28 | endif 29 | 30 | " Section: Utility functions 31 | function! s:TranslateIt() 32 | let s:phrase = expand("") 33 | let s:tmpfile = tempname() 34 | 35 | silent execute "!" . g:TranslateIt_Bin . " " . shellescape(s:phrase) . " > " . s:tmpfile 36 | let s:lines = system("wc -l " . s:tmpfile . "| awk '{print $1}'") 37 | 38 | if s:lines == 0 39 | echo s:phrase . ": Not found." 40 | else 41 | execute "botright sp " . s:tmpfile 42 | end 43 | endfun 44 | 45 | " Section: Command definitions 46 | command! TranslateIt call s:TranslateIt() 47 | 48 | " Section: Plugin command mappings 49 | nnoremap TranslateIt :TranslateIt 50 | 51 | " Section: Default mappings 52 | if !hasmapto('TranslateIt') 53 | nmap d TranslateIt 54 | endif 55 | 56 | -------------------------------------------------------------------------------- /snippets/java.snippets: -------------------------------------------------------------------------------- 1 | snippet main 2 | public static void main (String [] args) 3 | { 4 | ${1:/* code */} 5 | } 6 | snippet pu 7 | public 8 | snippet po 9 | protected 10 | snippet pr 11 | private 12 | snippet st 13 | static 14 | snippet fi 15 | final 16 | snippet ab 17 | abstract 18 | snippet re 19 | return 20 | snippet br 21 | break; 22 | snippet de 23 | default: 24 | ${1} 25 | snippet ca 26 | catch(${1:Exception} ${2:e}) ${3} 27 | snippet th 28 | throw 29 | snippet sy 30 | synchronized 31 | snippet im 32 | import 33 | snippet j.u 34 | java.util 35 | snippet j.i 36 | java.io. 37 | snippet j.b 38 | java.beans. 39 | snippet j.n 40 | java.net. 41 | snippet j.m 42 | java.math. 43 | snippet if 44 | if (${1}) ${2} 45 | snippet el 46 | else 47 | snippet elif 48 | else if (${1}) ${2} 49 | snippet wh 50 | while (${1}) ${2} 51 | snippet for 52 | for (${1}; ${2}; ${3}) ${4} 53 | snippet fore 54 | for (${1} : ${2}) ${3} 55 | snippet sw 56 | switch (${1}) ${2} 57 | snippet cs 58 | case ${1}: 59 | ${2} 60 | ${3} 61 | snippet tc 62 | public class ${1:`Filename()`} extends ${2:TestCase} 63 | snippet t 64 | public void test${1:Name}() throws Exception ${2} 65 | snippet cl 66 | class ${1:`Filename("", "untitled")`} ${2} 67 | snippet in 68 | interface ${1:`Filename("", "untitled")`} ${2:extends Parent}${3} 69 | snippet m 70 | ${1:void} ${2:method}(${3}) ${4:throws }${5} 71 | snippet v 72 | ${1:String} ${2:var}${3: = null}${4};${5} 73 | snippet co 74 | static public final ${1:String} ${2:var} = ${3};${4} 75 | snippet cos 76 | static public final String ${1:var} = "${2}";${3} 77 | snippet as 78 | assert ${1:test} : "${2:Failure message}";${3} 79 | -------------------------------------------------------------------------------- /.vim_from_inspiron/snippets/java.snippets: -------------------------------------------------------------------------------- 1 | snippet main 2 | public static void main (String [] args) 3 | { 4 | ${1:/* code */} 5 | } 6 | snippet pu 7 | public 8 | snippet po 9 | protected 10 | snippet pr 11 | private 12 | snippet st 13 | static 14 | snippet fi 15 | final 16 | snippet ab 17 | abstract 18 | snippet re 19 | return 20 | snippet br 21 | break; 22 | snippet de 23 | default: 24 | ${1} 25 | snippet ca 26 | catch(${1:Exception} ${2:e}) ${3} 27 | snippet th 28 | throw 29 | snippet sy 30 | synchronized 31 | snippet im 32 | import 33 | snippet j.u 34 | java.util 35 | snippet j.i 36 | java.io. 37 | snippet j.b 38 | java.beans. 39 | snippet j.n 40 | java.net. 41 | snippet j.m 42 | java.math. 43 | snippet if 44 | if (${1}) ${2} 45 | snippet el 46 | else 47 | snippet elif 48 | else if (${1}) ${2} 49 | snippet wh 50 | while (${1}) ${2} 51 | snippet for 52 | for (${1}; ${2}; ${3}) ${4} 53 | snippet fore 54 | for (${1} : ${2}) ${3} 55 | snippet sw 56 | switch (${1}) ${2} 57 | snippet cs 58 | case ${1}: 59 | ${2} 60 | ${3} 61 | snippet tc 62 | public class ${1:`Filename()`} extends ${2:TestCase} 63 | snippet t 64 | public void test${1:Name}() throws Exception ${2} 65 | snippet cl 66 | class ${1:`Filename("", "untitled")`} ${2} 67 | snippet in 68 | interface ${1:`Filename("", "untitled")`} ${2:extends Parent}${3} 69 | snippet m 70 | ${1:void} ${2:method}(${3}) ${4:throws }${5} 71 | snippet v 72 | ${1:String} ${2:var}${3: = null}${4};${5} 73 | snippet co 74 | static public final ${1:String} ${2:var} = ${3};${4} 75 | snippet cos 76 | static public final String ${1:var} = "${2}";${3} 77 | snippet as 78 | assert ${1:test} : "${2:Failure message}";${3} 79 | -------------------------------------------------------------------------------- /.vim_from_inspiron/syntax/rdoc.vim: -------------------------------------------------------------------------------- 1 | " 2 | " specky: syntax highlighting for 'rdoc' output 3 | " $Id: rdoc.vim 46 2008-08-12 16:24:10Z mahlon $ 4 | 5 | 6 | " Separator lines 7 | " 8 | syntax match rdocSpeckyLines /^------\+\s\?/ contains=rdocSpeckyTarget,rdocSpeckyMultiples 9 | highlight link rdocSpeckyLines Comment 10 | 11 | " The class/method that we're reading 12 | " 13 | syntax match rdocSpeckyTarget / .\+/hs=s+1 contained 14 | highlight link rdocSpeckyTarget Underlined 15 | 16 | " When there are multiple matches to choose from. 17 | " This is only output by fri. 18 | " 19 | syntax match rdocSpeckyMultiples / Multiple choices/hs=s+1 contained 20 | highlight link rdocSpeckyMultiples WarningMsg 21 | 22 | " Secondary headers 23 | " 24 | syntax region rdocSpeckyHeader start="^\S\+.\+:$\n-\+" end="-$" keepend contains=rdocSpeckyHeaderLine 25 | highlight link rdocSpeckyHeader Question 26 | 27 | " Secondary header lines 28 | " 29 | syntax match rdocSpeckyHeaderLine /^-\+$/ contained 30 | highlight link rdocSpeckyHeaderLine NonText 31 | 32 | " Remove the formatting characters from the display 33 | " 34 | highlight link rdocSpeckySpecials NonText 35 | 36 | " _word_ --> italic 37 | " 38 | syntax region rdocSpeckyItalic matchgroup=rdocSpeckySpecials start=" _" end="_" 39 | highlight link rdocSpeckyItalic Special 40 | 41 | " *word* --> bold 42 | " 43 | syntax region rdocSpeckBold matchgroup=rdocSpeckySpecials start=" \*" end="\*" 44 | highlight link rdocSpeckyBold Constant 45 | 46 | " +word+ --> typewriter 47 | " 48 | syntax region rdocSpeckyType matchgroup=rdocSpeckySpecials start=" +" end="+" 49 | highlight link rdocSpeckyType Identifier 50 | 51 | let b:current_syntax = "rdoc" 52 | 53 | -------------------------------------------------------------------------------- /.vim_from_inspiron/syntax/rspec.vim: -------------------------------------------------------------------------------- 1 | " 2 | " specky: syntax highlighting for rspec files. 3 | " $Id: rspec.vim 70 2009-06-01 14:33:54Z mahlon $ 4 | " 5 | 6 | runtime! syntax/ruby.vim 7 | unlet b:current_syntax 8 | 9 | syntax keyword rspecGroupMethods describe it 10 | highlight link rspecGroupMethods Type 11 | 12 | syntax keyword rspecBeforeAndAfter after after_suite_parts append_after append_before before before_suite_parts prepend_after prepend_before 13 | highlight link rspecBeforeAndAfter Statement 14 | 15 | syntax keyword rspecMocks mock stub 16 | highlight link rspecMocks Constant 17 | 18 | syntax keyword rspecMockMethods and_raise and_return and_throw and_yield build_child called_max_times expected_args invoke matches 19 | highlight link rspecMockMethods Function 20 | 21 | syntax keyword rspecKeywords should should_not should_not_receive should_receive 22 | highlight link rspecKeywords Constant 23 | 24 | syntax keyword rspecMatchers be_a be_a_kind_of be_an be_an_instance_of be_close be_false be_instance_of be_kind_of be_nil be_true change eql equal exist expect have have_at_least have_at_most have_exactly include match matcher raise_error respond_to satisfy throw_symbol to to_not wrap_expectation 25 | highlight link rspecMatchers Function 26 | 27 | syntax keyword rspecMessageExpectation advise any_number_of_times at_least at_most exactly expected_messages_received generate_error ignoring_args matches_at_least_count matches_at_most_count matches_exact_count matches_name_but_not_args negative_expectation_for never once ordered similar_messages times twice verify_messages_received with 28 | highlight link rspecMessageExpectation Function 29 | 30 | let b:current_syntax = "rspec" 31 | -------------------------------------------------------------------------------- /ftplugin/scheme/slimv-scheme.vim: -------------------------------------------------------------------------------- 1 | " slimv-scheme.vim: 2 | " Scheme filetype plugin for Slimv 3 | " Version: 0.8.2 4 | " Last Change: 27 Apr 2011 5 | " Maintainer: Tamas Kovacs 6 | " License: This file is placed in the public domain. 7 | " No warranty, express or implied. 8 | " *** *** Use At-Your-Own-Risk! *** *** 9 | " 10 | " ===================================================================== 11 | " 12 | " Load Once: 13 | if &cp || exists( 'g:slimv_scheme_loaded' ) 14 | finish 15 | endif 16 | 17 | let g:slimv_scheme_loaded = 1 18 | 19 | " Try to autodetect Scheme executable 20 | " Returns list [Scheme executable, Scheme implementation] 21 | function! b:SlimvAutodetect() 22 | " Currently only MIT Scheme on Linux 23 | if executable( 'scheme' ) 24 | " MIT Scheme 25 | return ['scheme', 'mit'] 26 | endif 27 | 28 | return ['', ''] 29 | endfunction 30 | 31 | " Try to find out the Scheme implementation 32 | function! b:SlimvImplementation() 33 | if exists( 'g:slimv_impl' ) && g:slimv_impl != '' 34 | " Return Lisp implementation if defined 35 | return tolower( g:slimv_impl ) 36 | endif 37 | 38 | return 'mit' 39 | endfunction 40 | 41 | " Filename for the REPL buffer file 42 | function! b:SlimvREPLFile() 43 | return 'Slimv.REPL.scm' 44 | endfunction 45 | 46 | " Lookup symbol in the Hyperspec 47 | function! b:SlimvHyperspecLookup( word, exact, all ) 48 | " No Hyperspec support for Scheme at the moment 49 | let symbol = [] 50 | return symbol 51 | endfunction 52 | 53 | " Source Slimv general part 54 | runtime ftplugin/**/slimv.vim 55 | 56 | -------------------------------------------------------------------------------- /snippets/javascript.snippets: -------------------------------------------------------------------------------- 1 | # Prototype 2 | snippet proto 3 | ${1:class_name}.prototype.${2:method_name} = 4 | function(${3:first_argument}) { 5 | ${4:// body...} 6 | }; 7 | # Function 8 | snippet fun 9 | function ${1:function_name} (${2:argument}) { 10 | ${3:// body...} 11 | } 12 | # Anonymous Function 13 | snippet f 14 | function(${1}) {${2}}; 15 | # if 16 | snippet if 17 | if (${1:true}) {${2}}; 18 | # if ... else 19 | snippet ife 20 | if (${1:true}) {${2}} 21 | else{${3}}; 22 | # tertiary conditional 23 | snippet t 24 | ${1:/* condition */} ? ${2:a} : ${3:b} 25 | # switch 26 | snippet switch 27 | switch(${1:expression}) { 28 | case '${3:case}': 29 | ${4:// code} 30 | break; 31 | ${5} 32 | default: 33 | ${2:// code} 34 | } 35 | # case 36 | snippet case 37 | case '${1:case}': 38 | ${2:// code} 39 | break; 40 | ${3} 41 | # for (...) {...} 42 | snippet for 43 | for (var ${2:i} = 0; $2 < ${1:Things}.length; $2${3:++}) { 44 | ${4:$1[$2]} 45 | }; 46 | # for (...) {...} (Improved Native For-Loop) 47 | snippet forr 48 | for (var ${2:i} = ${1:Things}.length - 1; $2 >= 0; $2${3:--}) { 49 | ${4:$1[$2]} 50 | }; 51 | # while (...) {...} 52 | snippet wh 53 | while (${1:/* condition */}) { 54 | ${2:/* code */} 55 | } 56 | # do...while 57 | snippet do 58 | do { 59 | ${2:/* code */} 60 | } while (${1:/* condition */}); 61 | # Object Method 62 | snippet :f 63 | ${1:method_name}: function(${2:attribute}) { 64 | ${4} 65 | }${3:,} 66 | # setTimeout function 67 | snippet timeout 68 | setTimeout(function() {${3}}${2}, ${1:10}; 69 | # Get Elements 70 | snippet get 71 | getElementsBy${1:TagName}('${2}')${3} 72 | # Get Element 73 | snippet gett 74 | getElementBy${1:Id}('${2}')${3} 75 | -------------------------------------------------------------------------------- /swank-clojure/swank/util/concurrent/thread.clj: -------------------------------------------------------------------------------- 1 | (ns swank.util.concurrent.thread 2 | (:use (swank util))) 3 | 4 | (defn- gen-name [] 5 | (name (gensym "Thread-"))) 6 | 7 | (defn start-thread 8 | "Starts a thread that run the given function f" 9 | ([#^Runnable f] 10 | (doto (Thread. f) 11 | (.start)))) 12 | 13 | (defmacro dothread [& body] 14 | `(start-thread (fn [] ~@body))) 15 | 16 | (defmacro dothread-keeping [bindings & body] 17 | `(start-thread (keep-bindings ~bindings (fn [] ~@body)))) 18 | 19 | (defmacro dothread-keeping-clj [more-bindings & body] 20 | (let [clj-star-syms (filter #(or (= (name %) "*e") 21 | (= (name %) "*1") 22 | (= (name %) "*2") 23 | (= (name %) "*3") 24 | (and (.startsWith #^String (name %) "*") 25 | (.endsWith #^String (name %) "*") 26 | (> (count (name %)) 1))) 27 | (keys (ns-publics (find-ns 'clojure.core))))] 28 | `(dothread-keeping [~@clj-star-syms ~@more-bindings] 29 | ~@body))) 30 | 31 | (defn current-thread [] 32 | (Thread/currentThread)) 33 | 34 | (defn thread-set-name 35 | ([name] (thread-set-name (current-thread) name)) 36 | ([#^Thread thread name] 37 | (.setName thread name))) 38 | 39 | (defn thread-name 40 | ([] (thread-name (current-thread))) 41 | ([#^Thread thread] 42 | (.getName thread))) 43 | 44 | (defn thread-id 45 | ([] (thread-id (current-thread))) 46 | ([#^Thread thread] 47 | (.getId thread))) 48 | 49 | (defn thread-alive? [#^Thread t] 50 | (.isAlive t)) 51 | -------------------------------------------------------------------------------- /.vim_from_inspiron/swank-clojure/swank/util/concurrent/thread.clj: -------------------------------------------------------------------------------- 1 | (ns swank.util.concurrent.thread 2 | (:use (swank util))) 3 | 4 | (defn- gen-name [] 5 | (name (gensym "Thread-"))) 6 | 7 | (defn start-thread 8 | "Starts a thread that run the given function f" 9 | ([#^Runnable f] 10 | (doto (Thread. f) 11 | (.start)))) 12 | 13 | (defmacro dothread [& body] 14 | `(start-thread (fn [] ~@body))) 15 | 16 | (defmacro dothread-keeping [bindings & body] 17 | `(start-thread (keep-bindings ~bindings (fn [] ~@body)))) 18 | 19 | (defmacro dothread-keeping-clj [more-bindings & body] 20 | (let [clj-star-syms (filter #(or (= (name %) "*e") 21 | (= (name %) "*1") 22 | (= (name %) "*2") 23 | (= (name %) "*3") 24 | (and (.startsWith #^String (name %) "*") 25 | (.endsWith #^String (name %) "*") 26 | (> (count (name %)) 1))) 27 | (keys (ns-publics (find-ns 'clojure.core))))] 28 | `(dothread-keeping [~@clj-star-syms ~@more-bindings] 29 | ~@body))) 30 | 31 | (defn current-thread [] 32 | (Thread/currentThread)) 33 | 34 | (defn thread-set-name 35 | ([name] (thread-set-name (current-thread) name)) 36 | ([#^Thread thread name] 37 | (.setName thread name))) 38 | 39 | (defn thread-name 40 | ([] (thread-name (current-thread))) 41 | ([#^Thread thread] 42 | (.getName thread))) 43 | 44 | (defn thread-id 45 | ([] (thread-id (current-thread))) 46 | ([#^Thread thread] 47 | (.getId thread))) 48 | 49 | (defn thread-alive? [#^Thread t] 50 | (.isAlive t)) 51 | -------------------------------------------------------------------------------- /.vim_from_inspiron/doc/blockle.txt: -------------------------------------------------------------------------------- 1 | *blockle.txt* Plugin for toggling ruby block styles 2 | 3 | Author: Joshua Davey *blockle-author* 4 | License: Same terms as Vim itself (see |license|) 5 | 6 | This plugin is only available if 'compatible' is not set, and will only work 7 | correctly if matchit.vim is available. 8 | 9 | INTRODUCTION *blockle* 10 | 11 | This plugin allows rapid toggling between the two different styles of ruby 12 | blocks, namely do/end and brackets {}. To use, simply move the cursor to the 13 | beginning or end of a block, and type b. As a mnemonic, remember 'b' 14 | for 'block'. 15 | 16 | Note: You must have your cursor on the do, end, {, or } for the plugin to work 17 | correctly. 18 | 19 | When moving from a do/end to a bracket-style block, the plugin with attempt to 20 | move to a one-liner if appropriate: 21 | 22 | For example, if have the following ruby code (* indicates cursor position): 23 | > 24 | ['one', 'two'].each d*o |number| 25 | puts number + "!" 26 | end 27 | > 28 | After invoking b, the resulting code would be: 29 | > 30 | ['one', 'two'].each *{ |number| puts number + "!" } 31 | > 32 | 33 | MAPPINGS *blockle-mappings* 34 | 35 | b or BlockToggle 36 | Toggle ruby block style 37 | 38 | To add your own mapping, add something like the following to your vim configuration: 39 | > 40 | map BlockToggle 41 | < 42 | which would map Super-J (Cmd-J on Mac OS) to the toggling function. 43 | 44 | 45 | *blockle-settings* 46 | This plugin has no settings. 47 | 48 | vim:tw=78:et:ft=help:norl: 49 | -------------------------------------------------------------------------------- /syntax/hgannotate.vim: -------------------------------------------------------------------------------- 1 | " Vim syntax file 2 | " Language: HG annotate output 3 | " Maintainer: Bob Hiestand 4 | " Remark: Used by the vcscommand plugin. 5 | " License: 6 | " Copyright (c) Bob Hiestand 7 | " 8 | " Permission is hereby granted, free of charge, to any person obtaining a copy 9 | " of this software and associated documentation files (the "Software"), to 10 | " deal in the Software without restriction, including without limitation the 11 | " rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 12 | " sell copies of the Software, and to permit persons to whom the Software is 13 | " furnished to do so, subject to the following conditions: 14 | " 15 | " The above copyright notice and this permission notice shall be included in 16 | " all copies or substantial portions of the Software. 17 | " 18 | " THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | " IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | " FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | " AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | " LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 23 | " FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 24 | " IN THE SOFTWARE. 25 | 26 | if exists("b:current_syntax") 27 | finish 28 | endif 29 | 30 | syn match hgVer /\d\+/ contained 31 | syn match hgName /^\s*\S\+/ contained 32 | syn match hgHead /^\s*\S\+\s\+\d\+:/ contains=hgVer,hgName 33 | 34 | if !exists("did_hgannotate_syntax_inits") 35 | let did_hgannotate_syntax_inits = 1 36 | hi link hgName Type 37 | hi link hgVer Statement 38 | endif 39 | 40 | let b:current_syntax="hgAnnotate" 41 | -------------------------------------------------------------------------------- /.vim_from_inspiron/syntax/hgannotate.vim: -------------------------------------------------------------------------------- 1 | " Vim syntax file 2 | " Language: HG annotate output 3 | " Maintainer: Bob Hiestand 4 | " Remark: Used by the vcscommand plugin. 5 | " License: 6 | " Copyright (c) 2010 Bob Hiestand 7 | " 8 | " Permission is hereby granted, free of charge, to any person obtaining a copy 9 | " of this software and associated documentation files (the "Software"), to 10 | " deal in the Software without restriction, including without limitation the 11 | " rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 12 | " sell copies of the Software, and to permit persons to whom the Software is 13 | " furnished to do so, subject to the following conditions: 14 | " 15 | " The above copyright notice and this permission notice shall be included in 16 | " all copies or substantial portions of the Software. 17 | " 18 | " THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | " IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | " FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | " AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | " LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 23 | " FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 24 | " IN THE SOFTWARE. 25 | 26 | if exists("b:current_syntax") 27 | finish 28 | endif 29 | 30 | syn match hgVer /\d\+/ contained 31 | syn match hgName /^\s*\S\+/ contained 32 | syn match hgHead /^\s*\S\+\s\+\d\+:/ contains=hgVer,hgName 33 | 34 | if !exists("did_hgannotate_syntax_inits") 35 | let did_hgannotate_syntax_inits = 1 36 | hi link hgName Type 37 | hi link hgVer Statement 38 | endif 39 | 40 | let b:current_syntax="hgAnnotate" 41 | -------------------------------------------------------------------------------- /syntax/svnannotate.vim: -------------------------------------------------------------------------------- 1 | " Vim syntax file 2 | " Language: SVN annotate output 3 | " Maintainer: Bob Hiestand 4 | " Remark: Used by the vcscommand plugin. 5 | " License: 6 | " Copyright (c) Bob Hiestand 7 | " 8 | " Permission is hereby granted, free of charge, to any person obtaining a copy 9 | " of this software and associated documentation files (the "Software"), to 10 | " deal in the Software without restriction, including without limitation the 11 | " rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 12 | " sell copies of the Software, and to permit persons to whom the Software is 13 | " furnished to do so, subject to the following conditions: 14 | " 15 | " The above copyright notice and this permission notice shall be included in 16 | " all copies or substantial portions of the Software. 17 | " 18 | " THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | " IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | " FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | " AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | " LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 23 | " FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 24 | " IN THE SOFTWARE. 25 | 26 | if exists("b:current_syntax") 27 | finish 28 | endif 29 | 30 | syn match svnName /\S\+/ contained 31 | syn match svnVer /^\s*\zs\d\+/ contained nextgroup=svnName skipwhite 32 | syn match svnHead /^\s*\d\+\s\+\S\+/ contains=svnVer,svnName 33 | 34 | if !exists("did_svnannotate_syntax_inits") 35 | let did_svnannotate_syntax_inits = 1 36 | hi link svnName Type 37 | hi link svnVer Statement 38 | endif 39 | 40 | let b:current_syntax="svnAnnotate" 41 | -------------------------------------------------------------------------------- /.vim_from_inspiron/syntax/SVNAnnotate.vim: -------------------------------------------------------------------------------- 1 | " Vim syntax file 2 | " Language: SVN annotate output 3 | " Maintainer: Bob Hiestand 4 | " Remark: Used by the vcscommand plugin. 5 | " License: 6 | " Copyright (c) 2007 Bob Hiestand 7 | " 8 | " Permission is hereby granted, free of charge, to any person obtaining a copy 9 | " of this software and associated documentation files (the "Software"), to 10 | " deal in the Software without restriction, including without limitation the 11 | " rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 12 | " sell copies of the Software, and to permit persons to whom the Software is 13 | " furnished to do so, subject to the following conditions: 14 | " 15 | " The above copyright notice and this permission notice shall be included in 16 | " all copies or substantial portions of the Software. 17 | " 18 | " THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | " IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | " FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | " AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | " LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 23 | " FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 24 | " IN THE SOFTWARE. 25 | 26 | if exists("b:current_syntax") 27 | finish 28 | endif 29 | 30 | syn match svnName /\S\+/ contained 31 | syn match svnVer /^\s\+\zs\d\+/ contained nextgroup=svnName skipwhite 32 | syn match svnHead /^\s\+\d\+\s\+\S\+/ contains=svnVer,svnName 33 | 34 | if !exists("did_svnannotate_syntax_inits") 35 | let did_svnannotate_syntax_inits = 1 36 | hi link svnName Type 37 | hi link svnVer Statement 38 | endif 39 | 40 | let b:current_syntax="svnAnnotate" 41 | -------------------------------------------------------------------------------- /slime/README: -------------------------------------------------------------------------------- 1 | Overview. 2 | ---------------------------------------- 3 | 4 | SLIME is the Superior Lisp Interaction Mode for Emacs. It is 5 | implemented in two main parts: the Emacs Lisp side (slime.el), and 6 | the support library for the Common Lisp (swank.lisp and swank-*.lisp) 7 | 8 | For a real description, see the manual in doc/ 9 | 10 | Quick setup instructions 11 | ------------------------ 12 | 13 | Add this to your ~/.emacs file and fill in the appropriate filenames: 14 | 15 | (add-to-list 'load-path "~/hacking/lisp/slime/") ; your SLIME directory 16 | (setq inferior-lisp-program "/opt/sbcl/bin/sbcl") ; your Lisp system 17 | (require 'slime) 18 | (slime-setup) 19 | 20 | Make sure your `inferior-lisp-program' is set to a compatible 21 | version of Lisp. 22 | 23 | The function `slime-setup' can also load additional, contributed 24 | packages ("contribs"). The most-often used package is 25 | slime-fancy.el, which primarily installs a popular set of other 26 | contributed packages. It includes a better REPL, and many more nice 27 | features. To load it, change the bare (slime-setup) form above to 28 | (slime-setup '(slime-fancy)). 29 | 30 | Use `M-x' slime to fire up and connect to an inferior Lisp. 31 | SLIME will now automatically be available in your Lisp source 32 | buffers. 33 | 34 | Licence. 35 | ---------------------------------------- 36 | 37 | SLIME is free software. All files, unless explicitly stated 38 | otherwise, are public domain. 39 | 40 | Contact. 41 | ---------------------------------------- 42 | 43 | Questions and comments are best directed to the mailing list: 44 | http://common-lisp.net/mailman/listinfo/slime-devel 45 | 46 | The mailing list archive is also available on Gmane: 47 | http://news.gmane.org/gmane.lisp.slime.devel 48 | 49 | -------------------------------------------------------------------------------- /.vim_from_inspiron/slime/README: -------------------------------------------------------------------------------- 1 | Overview. 2 | ---------------------------------------- 3 | 4 | SLIME is the Superior Lisp Interaction Mode for Emacs. It is 5 | implemented in two main parts: the Emacs Lisp side (slime.el), and 6 | the support library for the Common Lisp (swank.lisp and swank-*.lisp) 7 | 8 | For a real description, see the manual in doc/ 9 | 10 | Quick setup instructions 11 | ------------------------ 12 | 13 | Add this to your ~/.emacs file and fill in the appropriate filenames: 14 | 15 | (add-to-list 'load-path "~/hacking/lisp/slime/") ; your SLIME directory 16 | (setq inferior-lisp-program "/opt/sbcl/bin/sbcl") ; your Lisp system 17 | (require 'slime) 18 | (slime-setup) 19 | 20 | Make sure your `inferior-lisp-program' is set to a compatible 21 | version of Lisp. 22 | 23 | The function `slime-setup' can also load additional, contributed 24 | packages ("contribs"). The most-often used package is 25 | slime-fancy.el, which primarily installs a popular set of other 26 | contributed packages. It includes a better REPL, and many more nice 27 | features. To load it, change the bare (slime-setup) form above to 28 | (slime-setup '(slime-fancy)). 29 | 30 | Use `M-x' slime to fire up and connect to an inferior Lisp. 31 | SLIME will now automatically be available in your Lisp source 32 | buffers. 33 | 34 | Licence. 35 | ---------------------------------------- 36 | 37 | SLIME is free software. All files, unless explicitly stated 38 | otherwise, are public domain. 39 | 40 | Contact. 41 | ---------------------------------------- 42 | 43 | Questions and comments are best directed to the mailing list: 44 | http://common-lisp.net/mailman/listinfo/slime-devel 45 | 46 | The mailing list archive is also available on Gmane: 47 | http://news.gmane.org/gmane.lisp.slime.devel 48 | 49 | -------------------------------------------------------------------------------- /.vim_from_inspiron/snippets/javascript.snippets: -------------------------------------------------------------------------------- 1 | # Prototype 2 | snippet proto 3 | ${1:class_name}.prototype.${2:method_name} = 4 | function(${3:first_argument}) { 5 | ${4:// body...} 6 | }; 7 | # Function 8 | snippet fun 9 | function ${1:function_name}(${2:argument}){ 10 | ${3:// body...} 11 | } 12 | # Anonymous Function 13 | snippet f 14 | function(${1}){${2}}; 15 | # if 16 | snippet if 17 | if (${1:true}) {${2}}; 18 | # if ... else 19 | snippet ife 20 | if (${1:true}) {${2}} 21 | else{${3}}; 22 | # tertiary conditional 23 | snippet t 24 | ${1:/* condition */} ? ${2:a} : ${3:b} 25 | # switch 26 | snippet switch 27 | switch(${1:expression}) { 28 | case '${3:case}': 29 | ${4:// code} 30 | break; 31 | ${5} 32 | default: 33 | ${2:// code} 34 | } 35 | # case 36 | snippet case 37 | case '${1:case}': 38 | ${2:// code} 39 | break; 40 | ${3} 41 | # for (...) {...} 42 | snippet for 43 | for (var ${2:i} = 0; $2 < ${1:Things}.length; $2${3:++}) { 44 | ${4:$1[$2]} 45 | }; 46 | # for (...) {...} (Improved Native For-Loop) 47 | snippet forr 48 | for (var ${2:i} = ${1:Things}.length - 1; $2 >= 0; $2${3:--}) { 49 | ${4:$1[$2]} 50 | }; 51 | # while (...) {...} 52 | snippet wh 53 | while (${1:/* condition */}) { 54 | ${2:/* code */} 55 | } 56 | # do...while 57 | snippet do 58 | do { 59 | ${2:/* code */} 60 | } while (${1:/* condition */}); 61 | # Object Method 62 | snippet :f 63 | ${1:method_name}: function(${2:attribute}) { 64 | ${4} 65 | }${3:,} 66 | # setTimeout function 67 | snippet timeout 68 | setTimeout(function() {${3}}${2}, ${1:10}; 69 | # Get Elements 70 | snippet get 71 | getElementsBy${1:TagName}('${2}')${3} 72 | # Get Element 73 | snippet gett 74 | getElementBy${1:Id}('${2}')${3} 75 | #XXX my 76 | snippet $( 77 | $(function(){ 78 | ${1} 79 | }); 80 | snippet l 81 | console && console.log(${1}); 82 | -------------------------------------------------------------------------------- /snippets/tcl.snippets: -------------------------------------------------------------------------------- 1 | # #!/usr/bin/tclsh 2 | snippet #! 3 | #!/usr/bin/tclsh 4 | 5 | # Process 6 | snippet pro 7 | proc ${1:function_name} {${2:args}} { 8 | ${3:#body ...} 9 | } 10 | #xif 11 | snippet xif 12 | ${1:expr}? ${2:true} : ${3:false} 13 | # Conditional 14 | snippet if 15 | if {${1}} { 16 | ${2:# body...} 17 | } 18 | # Conditional if..else 19 | snippet ife 20 | if {${1}} { 21 | ${2:# body...} 22 | } else { 23 | ${3:# else...} 24 | } 25 | # Conditional if..elsif..else 26 | snippet ifee 27 | if {${1}} { 28 | ${2:# body...} 29 | } elseif {${3}} { 30 | ${4:# elsif...} 31 | } else { 32 | ${5:# else...} 33 | } 34 | # If catch then 35 | snippet ifc 36 | if { [catch {${1:#do something...}} ${2:err}] } { 37 | ${3:# handle failure...} 38 | } 39 | # Catch 40 | snippet catch 41 | catch {${1}} ${2:err} ${3:options} 42 | # While Loop 43 | snippet wh 44 | while {${1}} { 45 | ${2:# body...} 46 | } 47 | # For Loop 48 | snippet for 49 | for {set ${2:var} 0} {$$2 < ${1:count}} {${3:incr} $2} { 50 | ${4:# body...} 51 | } 52 | # Foreach Loop 53 | snippet fore 54 | foreach ${1:x} {${2:#list}} { 55 | ${3:# body...} 56 | } 57 | # after ms script... 58 | snippet af 59 | after ${1:ms} ${2:#do something} 60 | # after cancel id 61 | snippet afc 62 | after cancel ${1:id or script} 63 | # after idle 64 | snippet afi 65 | after idle ${1:script} 66 | # after info id 67 | snippet afin 68 | after info ${1:id} 69 | # Expr 70 | snippet exp 71 | expr {${1:#expression here}} 72 | # Switch 73 | snippet sw 74 | switch ${1:var} { 75 | ${3:pattern 1} { 76 | ${4:#do something} 77 | } 78 | default { 79 | ${2:#do something} 80 | } 81 | } 82 | # Case 83 | snippet ca 84 | ${1:pattern} { 85 | ${2:#do something} 86 | }${3} 87 | # Namespace eval 88 | snippet ns 89 | namespace eval ${1:path} {${2:#script...}} 90 | # Namespace current 91 | snippet nsc 92 | namespace current 93 | -------------------------------------------------------------------------------- /slime/contrib/swank-indentation.lisp: -------------------------------------------------------------------------------- 1 | (in-package :swank) 2 | 3 | (defvar *application-hints-tables* '() 4 | "A list of hash tables mapping symbols to indentation hints (lists 5 | of symbols and numbers as per cl-indent.el). Applications can add hash 6 | tables to the list to change the auto indentation slime sends to 7 | emacs.") 8 | 9 | (defun has-application-indentation-hint-p (symbol) 10 | (let ((default (load-time-value (gensym)))) 11 | (dolist (table *application-hints-tables*) 12 | (let ((indentation (gethash symbol table default))) 13 | (unless (eq default indentation) 14 | (return-from has-application-indentation-hint-p 15 | (values indentation t)))))) 16 | (values nil nil)) 17 | 18 | (defun application-indentation-hint (symbol) 19 | (let ((indentation (has-application-indentation-hint-p symbol))) 20 | (labels ((walk (indentation-spec) 21 | (etypecase indentation-spec 22 | (null nil) 23 | (number indentation-spec) 24 | (symbol (symbol-name indentation-spec)) 25 | (cons (cons (walk (car indentation-spec)) 26 | (walk (cdr indentation-spec))))))) 27 | (walk indentation)))) 28 | 29 | ;;; override swank version of this function 30 | (defun symbol-indentation (symbol) 31 | "Return a form describing the indentation of SYMBOL. 32 | 33 | The form is to be used as the `common-lisp-indent-function' property 34 | in Emacs." 35 | (cond 36 | ((has-application-indentation-hint-p symbol) 37 | (application-indentation-hint symbol)) 38 | ((and (macro-function symbol) 39 | (not (known-to-emacs-p symbol))) 40 | (let ((arglist (arglist symbol))) 41 | (etypecase arglist 42 | ((member :not-available) 43 | nil) 44 | (list 45 | (macro-indentation arglist))))) 46 | (t nil))) 47 | -------------------------------------------------------------------------------- /.vim_from_inspiron/snippets/tcl.snippets: -------------------------------------------------------------------------------- 1 | # #!/usr/bin/tclsh 2 | snippet #! 3 | #!/usr/bin/tclsh 4 | 5 | # Process 6 | snippet pro 7 | proc ${1:function_name} {${2:args}} { 8 | ${3:#body ...} 9 | } 10 | #xif 11 | snippet xif 12 | ${1:expr}? ${2:true} : ${3:false} 13 | # Conditional 14 | snippet if 15 | if {${1}} { 16 | ${2:# body...} 17 | } 18 | # Conditional if..else 19 | snippet ife 20 | if {${1}} { 21 | ${2:# body...} 22 | } else { 23 | ${3:# else...} 24 | } 25 | # Conditional if..elsif..else 26 | snippet ifee 27 | if {${1}} { 28 | ${2:# body...} 29 | } elseif {${3}} { 30 | ${4:# elsif...} 31 | } else { 32 | ${5:# else...} 33 | } 34 | # If catch then 35 | snippet ifc 36 | if { [catch {${1:#do something...}} ${2:err}] } { 37 | ${3:# handle failure...} 38 | } 39 | # Catch 40 | snippet catch 41 | catch {${1}} ${2:err} ${3:options} 42 | # While Loop 43 | snippet wh 44 | while {${1}} { 45 | ${2:# body...} 46 | } 47 | # For Loop 48 | snippet for 49 | for {set ${2:var} 0} {$$2 < ${1:count}} {${3:incr} $2} { 50 | ${4:# body...} 51 | } 52 | # Foreach Loop 53 | snippet fore 54 | foreach ${1:x} {${2:#list}} { 55 | ${3:# body...} 56 | } 57 | # after ms script... 58 | snippet af 59 | after ${1:ms} ${2:#do something} 60 | # after cancel id 61 | snippet afc 62 | after cancel ${1:id or script} 63 | # after idle 64 | snippet afi 65 | after idle ${1:script} 66 | # after info id 67 | snippet afin 68 | after info ${1:id} 69 | # Expr 70 | snippet exp 71 | expr {${1:#expression here}} 72 | # Switch 73 | snippet sw 74 | switch ${1:var} { 75 | ${3:pattern 1} { 76 | ${4:#do something} 77 | } 78 | default { 79 | ${2:#do something} 80 | } 81 | } 82 | # Case 83 | snippet ca 84 | ${1:pattern} { 85 | ${2:#do something} 86 | }${3} 87 | # Namespace eval 88 | snippet ns 89 | namespace eval ${1:path} {${2:#script...}} 90 | # Namespace current 91 | snippet nsc 92 | namespace current 93 | -------------------------------------------------------------------------------- /.vim_from_inspiron/slime/contrib/swank-indentation.lisp: -------------------------------------------------------------------------------- 1 | (in-package :swank) 2 | 3 | (defvar *application-hints-tables* '() 4 | "A list of hash tables mapping symbols to indentation hints (lists 5 | of symbols and numbers as per cl-indent.el). Applications can add hash 6 | tables to the list to change the auto indentation slime sends to 7 | emacs.") 8 | 9 | (defun has-application-indentation-hint-p (symbol) 10 | (let ((default (load-time-value (gensym)))) 11 | (dolist (table *application-hints-tables*) 12 | (let ((indentation (gethash symbol table default))) 13 | (unless (eq default indentation) 14 | (return-from has-application-indentation-hint-p 15 | (values indentation t)))))) 16 | (values nil nil)) 17 | 18 | (defun application-indentation-hint (symbol) 19 | (let ((indentation (has-application-indentation-hint-p symbol))) 20 | (labels ((walk (indentation-spec) 21 | (etypecase indentation-spec 22 | (null nil) 23 | (number indentation-spec) 24 | (symbol (symbol-name indentation-spec)) 25 | (cons (cons (walk (car indentation-spec)) 26 | (walk (cdr indentation-spec))))))) 27 | (walk indentation)))) 28 | 29 | ;;; override swank version of this function 30 | (defun symbol-indentation (symbol) 31 | "Return a form describing the indentation of SYMBOL. 32 | 33 | The form is to be used as the `common-lisp-indent-function' property 34 | in Emacs." 35 | (cond 36 | ((has-application-indentation-hint-p symbol) 37 | (application-indentation-hint symbol)) 38 | ((and (macro-function symbol) 39 | (not (known-to-emacs-p symbol))) 40 | (let ((arglist (arglist symbol))) 41 | (etypecase arglist 42 | ((member :not-available) 43 | nil) 44 | (list 45 | (macro-indentation arglist))))) 46 | (t nil))) 47 | -------------------------------------------------------------------------------- /.vim_from_inspiron/README.txt: -------------------------------------------------------------------------------- 1 | ______________ _____ 2 | __ ____/__ /____(_)______ ___________ 3 | _ / __ __ \_ /__ __ `__ \__ __ \ 4 | / /___ _ / / / / _ / / / / /_ /_/ / 5 | \____/ /_/ /_//_/ /_/ /_/ /_/_ .___/ 6 | /_/ 7 | 8 | Chimp uses screen to talk to external interpreters. The basic screen driver 9 | is language agnostic and is intended to be used as backend for filetype 10 | plugins, which comprise the intelligence of the system. 11 | 12 | An example filetype plugin for Clojure is included. There are several ways 13 | to extract code and send it to a running Clojure in a screen. 14 | 15 | The coupling is very loose on purpose! Eg. one can send from several Vims 16 | to the same screen. However this leads to a certain fragileness. The Clojure 17 | plugin takes care of automatically switching namespaces for the different 18 | files being edited. However, nothing prevents the user from interacting 19 | with the REPL directly messing up the namespace sync between Chimp in Vim 20 | and Clojure. 21 | 22 | Chimp should also work on Windows with Cygwin. 23 | 24 | For installation put the extracted subdirectory in your .vim directory. 25 | Start your interpreter with the chimp.sh wrapper from the bin/ subdir. 26 | It tells you a "Chimp Id" in the bottom line of the screen. Supply this 27 | to the glue functions. The Clojure plugin will ask you the first time 28 | you send data and will further cache the Id. 29 | 30 | This Clojure part of the script needs the VimClojure filetype plugin for 31 | Clojure. It may be found here: 32 | 33 | http://kotka.de/projects/clojure/vimclojure.html 34 | 35 | Similar scripts: 36 | - VILisp 37 | - Limp 38 | - http://technotales.wordpress.com/2007/10/03/like-slime-for-vim/ 39 | 40 | Meikel Brandmeyer 41 | Frankfurt am Main, September 2nd 2008 42 | -------------------------------------------------------------------------------- /syntax/svkannotate.vim: -------------------------------------------------------------------------------- 1 | " Vim syntax file 2 | " Language: SVK annotate output 3 | " Maintainer: Bob Hiestand 4 | " Remark: Used by the vcscommand plugin. 5 | " License: 6 | " Copyright (c) Bob Hiestand 7 | " 8 | " Permission is hereby granted, free of charge, to any person obtaining a copy 9 | " of this software and associated documentation files (the "Software"), to 10 | " deal in the Software without restriction, including without limitation the 11 | " rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 12 | " sell copies of the Software, and to permit persons to whom the Software is 13 | " furnished to do so, subject to the following conditions: 14 | " 15 | " The above copyright notice and this permission notice shall be included in 16 | " all copies or substantial portions of the Software. 17 | " 18 | " THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | " IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | " FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | " AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | " LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 23 | " FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 24 | " IN THE SOFTWARE. 25 | 26 | if exists("b:current_syntax") 27 | finish 28 | endif 29 | 30 | syn match svkDate /\d\{4}-\d\{1,2}-\d\{1,2}/ skipwhite contained 31 | syn match svkName /(\s*\zs\S\+/ contained nextgroup=svkDate skipwhite 32 | syn match svkVer /^\s*\d\+/ contained nextgroup=svkName skipwhite 33 | syn region svkHead start=/^/ end="):" contains=svkVer,svkName,svkDate oneline 34 | 35 | if !exists("did_svkannotate_syntax_inits") 36 | let did_svkannotate_syntax_inits = 1 37 | hi link svkName Type 38 | hi link svkDate Comment 39 | hi link svkVer Statement 40 | endif 41 | 42 | let b:current_syntax="svkAnnotate" 43 | -------------------------------------------------------------------------------- /snippets/perl.snippets: -------------------------------------------------------------------------------- 1 | # #!/usr/bin/perl 2 | snippet #! 3 | #!/usr/bin/perl 4 | 5 | # Hash Pointer 6 | snippet . 7 | => 8 | # Function 9 | snippet sub 10 | sub ${1:function_name} { 11 | ${2:#body ...} 12 | } 13 | # Conditional 14 | snippet if 15 | if (${1}) { 16 | ${2:# body...} 17 | } 18 | # Conditional if..else 19 | snippet ife 20 | if (${1}) { 21 | ${2:# body...} 22 | } else { 23 | ${3:# else...} 24 | } 25 | # Conditional if..elsif..else 26 | snippet ifee 27 | if (${1}) { 28 | ${2:# body...} 29 | } elsif (${3}) { 30 | ${4:# elsif...} 31 | } else { 32 | ${5:# else...} 33 | } 34 | # Conditional One-line 35 | snippet xif 36 | ${1:expression} if ${2:condition};${3} 37 | # Unless conditional 38 | snippet unless 39 | unless (${1}) { 40 | ${2:# body...} 41 | } 42 | # Unless conditional One-line 43 | snippet xunless 44 | ${1:expression} unless ${2:condition};${3} 45 | # Try/Except 46 | snippet eval 47 | eval { 48 | ${1:# do something risky...} 49 | }; 50 | if ($@) { 51 | ${2:# handle failure...} 52 | } 53 | # While Loop 54 | snippet wh 55 | while (${1}) { 56 | ${2:# body...} 57 | } 58 | # While Loop One-line 59 | snippet xwh 60 | ${1:expression} while ${2:condition};${3} 61 | # For Loop 62 | snippet for 63 | for (my $${2:var} = 0; $$2 < ${1:count}; $$2${3:++}) { 64 | ${4:# body...} 65 | } 66 | # Foreach Loop 67 | snippet fore 68 | foreach my $${1:x} (@${2:array}) { 69 | ${3:# body...} 70 | } 71 | # Foreach Loop One-line 72 | snippet xfore 73 | ${1:expression} foreach @${2:array};${3} 74 | # Package 75 | snippet cl 76 | package ${1:ClassName}; 77 | 78 | use base qw(${2:ParentClass}); 79 | 80 | sub new { 81 | my $class = shift; 82 | $class = ref $class if ref $class; 83 | my $self = bless {}, $class; 84 | $self; 85 | } 86 | 87 | 1;${3} 88 | # Read File 89 | snippet slurp 90 | my $${1:var}; 91 | { local $/ = undef; local *FILE; open FILE, "<${2:file}"; $$1 = ; close FILE }${3} 92 | -------------------------------------------------------------------------------- /.vim_from_inspiron/snippets/perl.snippets: -------------------------------------------------------------------------------- 1 | # #!/usr/bin/perl 2 | snippet #! 3 | #!/usr/bin/perl 4 | 5 | # Hash Pointer 6 | snippet . 7 | => 8 | # Function 9 | snippet sub 10 | sub ${1:function_name} { 11 | ${2:#body ...} 12 | } 13 | # Conditional 14 | snippet if 15 | if (${1}) { 16 | ${2:# body...} 17 | } 18 | # Conditional if..else 19 | snippet ife 20 | if (${1}) { 21 | ${2:# body...} 22 | } else { 23 | ${3:# else...} 24 | } 25 | # Conditional if..elsif..else 26 | snippet ifee 27 | if (${1}) { 28 | ${2:# body...} 29 | } elsif (${3}) { 30 | ${4:# elsif...} 31 | } else { 32 | ${5:# else...} 33 | } 34 | # Conditional One-line 35 | snippet xif 36 | ${1:expression} if ${2:condition};${3} 37 | # Unless conditional 38 | snippet unless 39 | unless (${1}) { 40 | ${2:# body...} 41 | } 42 | # Unless conditional One-line 43 | snippet xunless 44 | ${1:expression} unless ${2:condition};${3} 45 | # Try/Except 46 | snippet eval 47 | eval { 48 | ${1:# do something risky...} 49 | }; 50 | if ($@) { 51 | ${2:# handle failure...} 52 | } 53 | # While Loop 54 | snippet wh 55 | while (${1}) { 56 | ${2:# body...} 57 | } 58 | # While Loop One-line 59 | snippet xwh 60 | ${1:expression} while ${2:condition};${3} 61 | # For Loop 62 | snippet for 63 | for (my $${2:var} = 0; $$2 < ${1:count}; $$2${3:++}) { 64 | ${4:# body...} 65 | } 66 | # Foreach Loop 67 | snippet fore 68 | foreach my $${1:x} (@${2:array}) { 69 | ${3:# body...} 70 | } 71 | # Foreach Loop One-line 72 | snippet xfore 73 | ${1:expression} foreach @${2:array};${3} 74 | # Package 75 | snippet cl 76 | package ${1:ClassName}; 77 | 78 | use base qw(${2:ParentClass}); 79 | 80 | sub new { 81 | my $class = shift; 82 | $class = ref $class if ref $class; 83 | my $self = bless {}, $class; 84 | $self; 85 | } 86 | 87 | 1;${3} 88 | # Read File 89 | snippet slurp 90 | my $${1:var}; 91 | { local $/ = undef; local *FILE; open FILE, "<${2:file}"; $$1 = ; close FILE }${3} 92 | -------------------------------------------------------------------------------- /.vim_from_inspiron/syntax/SVKAnnotate.vim: -------------------------------------------------------------------------------- 1 | " Vim syntax file 2 | " Language: SVK annotate output 3 | " Maintainer: Bob Hiestand 4 | " Remark: Used by the vcscommand plugin. 5 | " License: 6 | " Copyright (c) 2007 Bob Hiestand 7 | " 8 | " Permission is hereby granted, free of charge, to any person obtaining a copy 9 | " of this software and associated documentation files (the "Software"), to 10 | " deal in the Software without restriction, including without limitation the 11 | " rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 12 | " sell copies of the Software, and to permit persons to whom the Software is 13 | " furnished to do so, subject to the following conditions: 14 | " 15 | " The above copyright notice and this permission notice shall be included in 16 | " all copies or substantial portions of the Software. 17 | " 18 | " THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | " IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | " FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | " AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | " LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 23 | " FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 24 | " IN THE SOFTWARE. 25 | 26 | if exists("b:current_syntax") 27 | finish 28 | endif 29 | 30 | syn match svkDate /\d\{4}-\d\{1,2}-\d\{1,2}/ skipwhite contained 31 | syn match svkName /(\s*\zs\S\+/ contained nextgroup=svkDate skipwhite 32 | syn match svkVer /^\s*\d\+/ contained nextgroup=svkName skipwhite 33 | syn region svkHead start=/^/ end="):" contains=svkVer,svkName,svkDate oneline 34 | 35 | if !exists("did_svkannotate_syntax_inits") 36 | let did_svkannotate_syntax_inits = 1 37 | hi link svkName Type 38 | hi link svkDate Comment 39 | hi link svkVer Statement 40 | endif 41 | 42 | let b:current_syntax="svkAnnotate" 43 | -------------------------------------------------------------------------------- /snippets/python.snippets: -------------------------------------------------------------------------------- 1 | snippet #! 2 | #!/usr/bin/python 3 | 4 | snippet imp 5 | import ${1:module} 6 | # Module Docstring 7 | snippet docs 8 | ''' 9 | File: ${1:`Filename('$1.py', 'foo.py')`} 10 | Author: ${2:`g:snips_author`} 11 | Description: ${3} 12 | ''' 13 | snippet wh 14 | while ${1:condition}: 15 | ${2:# code...} 16 | snippet for 17 | for ${1:needle} in ${2:haystack}: 18 | ${3:# code...} 19 | # New Class 20 | snippet cl 21 | class ${1:ClassName}(${2:object}): 22 | """${3:docstring for $1}""" 23 | def __init__(self, ${4:arg}): 24 | ${5:super($1, self).__init__()} 25 | self.$4 = $4 26 | ${6} 27 | # New Function 28 | snippet def 29 | def ${1:fname}(${2:`indent('.') ? 'self' : ''`}): 30 | """${3:docstring for $1}""" 31 | ${4:pass} 32 | snippet deff 33 | def ${1:fname}(${2:`indent('.') ? 'self' : ''`}): 34 | ${3} 35 | # New Method 36 | snippet defs 37 | def ${1:mname}(self, ${2:arg}): 38 | ${3:pass} 39 | # New Property 40 | snippet property 41 | def ${1:foo}(): 42 | doc = "${2:The $1 property.}" 43 | def fget(self): 44 | ${3:return self._$1} 45 | def fset(self, value): 46 | ${4:self._$1 = value} 47 | # Lambda 48 | snippet ld 49 | ${1:var} = lambda ${2:vars} : ${3:action} 50 | snippet . 51 | self. 52 | snippet try Try/Except 53 | try: 54 | ${1:pass} 55 | except ${2:Exception}, ${3:e}: 56 | ${4:raise $3} 57 | snippet try Try/Except/Else 58 | try: 59 | ${1:pass} 60 | except ${2:Exception}, ${3:e}: 61 | ${4:raise $3} 62 | else: 63 | ${5:pass} 64 | snippet try Try/Except/Finally 65 | try: 66 | ${1:pass} 67 | except ${2:Exception}, ${3:e}: 68 | ${4:raise $3} 69 | finally: 70 | ${5:pass} 71 | snippet try Try/Except/Else/Finally 72 | try: 73 | ${1:pass} 74 | except ${2:Exception}, ${3:e}: 75 | ${4:raise $3} 76 | else: 77 | ${5:pass} 78 | finally: 79 | ${6:pass} 80 | # if __name__ == '__main__': 81 | snippet ifmain 82 | if __name__ == '__main__': 83 | ${1:main()} 84 | # __magic__ 85 | snippet _ 86 | __${1:init}__${2} 87 | -------------------------------------------------------------------------------- /.vim_from_inspiron/syntax/vimwiki_media.vim: -------------------------------------------------------------------------------- 1 | " Vimwiki syntax file 2 | " MediaWiki syntax 3 | " Author: Maxim Kim 4 | " Home: http://code.google.com/p/vimwiki/ 5 | " vim:tw=78: 6 | 7 | " text: '''strong''' 8 | let g:vimwiki_rxBold = "'''[^']\\+'''" 9 | 10 | " text: ''emphasis'' 11 | let g:vimwiki_rxItalic = "''[^']\\+''" 12 | 13 | " text: '''''strong italic''''' 14 | let g:vimwiki_rxBoldItalic = "'''''[^']\\+'''''" 15 | let g:vimwiki_rxItalicBold = g:vimwiki_rxBoldItalic 16 | 17 | " text: `code` 18 | let g:vimwiki_rxCode = '`[^`]\+`' 19 | 20 | " text: ~~deleted text~~ 21 | let g:vimwiki_rxDelText = '\~\~[^~]\+\~\~' 22 | 23 | " text: ^superscript^ 24 | let g:vimwiki_rxSuperScript = '\^[^^]\+\^' 25 | 26 | " text: ,,subscript,, 27 | let g:vimwiki_rxSubScript = ',,[^,]\+,,' 28 | 29 | " Header levels, 1-6 30 | let g:vimwiki_rxH1 = '^\s*=\{1}[^=]\+.*[^=]\+=\{1}\s*$' 31 | let g:vimwiki_rxH2 = '^\s*=\{2}[^=]\+.*[^=]\+=\{2}\s*$' 32 | let g:vimwiki_rxH3 = '^\s*=\{3}[^=]\+.*[^=]\+=\{3}\s*$' 33 | let g:vimwiki_rxH4 = '^\s*=\{4}[^=]\+.*[^=]\+=\{4}\s*$' 34 | let g:vimwiki_rxH5 = '^\s*=\{5}[^=]\+.*[^=]\+=\{5}\s*$' 35 | let g:vimwiki_rxH6 = '^\s*=\{6}[^=]\+.*[^=]\+=\{6}\s*$' 36 | let g:vimwiki_rxHeader = '\%('.g:vimwiki_rxH1.'\)\|'. 37 | \ '\%('.g:vimwiki_rxH2.'\)\|'. 38 | \ '\%('.g:vimwiki_rxH3.'\)\|'. 39 | \ '\%('.g:vimwiki_rxH4.'\)\|'. 40 | \ '\%('.g:vimwiki_rxH5.'\)\|'. 41 | \ '\%('.g:vimwiki_rxH6.'\)' 42 | 43 | "
, horizontal rule 44 | let g:vimwiki_rxHR = '^----.*$' 45 | 46 | " Tables. Each line starts and ends with '||'; each cell is separated by '||' 47 | let g:vimwiki_rxTable = '||' 48 | 49 | " Bulleted list items start with whitespace(s), then '*' 50 | " highlight only bullets and digits. 51 | let g:vimwiki_rxListBullet = '^\s*\*\+\([^*]*$\)\@=' 52 | let g:vimwiki_rxListNumber = '^\s*#\+' 53 | 54 | let g:vimwiki_rxListDefine = '^\%(;\|:\)\s' 55 | 56 | " Preformatted text 57 | let g:vimwiki_rxPreStart = '
'
58 | let g:vimwiki_rxPreEnd = '<\/pre>'
59 | 


--------------------------------------------------------------------------------
/.vim_from_inspiron/snippets/python.snippets:
--------------------------------------------------------------------------------
 1 | snippet #!
 2 | 	#!/usr/bin/python
 3 | 
 4 | snippet imp
 5 | 	import ${1:module}
 6 | # Module Docstring
 7 | snippet docs
 8 | 	'''
 9 | 	File: ${1:`Filename('$1.py', 'foo.py')`}
10 | 	Author: ${2:`g:snips_author`}
11 | 	Description: ${3}
12 | 	'''
13 | snippet wh
14 | 	while ${1:condition}:
15 | 		${2:# code...}
16 | snippet for
17 | 	for ${1:needle} in ${2:haystack}:
18 | 		${3:# code...}
19 | # New Class
20 | snippet cl
21 | 	class ${1:ClassName}(${2:object}):
22 | 		"""${3:docstring for $1}"""
23 | 		def __init__(self, ${4:arg}):
24 | 			${5:super($1, self).__init__()}
25 | 			self.$4 = $4
26 | 			${6}
27 | # New Function
28 | snippet def
29 | 	def ${1:fname}(${2:`indent('.') ? 'self' : ''`}):
30 | 		"""${3:docstring for $1}"""
31 | 		${4:pass}
32 | snippet deff
33 | 	def ${1:fname}(${2:`indent('.') ? 'self' : ''`}):
34 | 		${3}
35 | # New Method
36 | snippet defs
37 | 	def ${1:mname}(self, ${2:arg}):
38 | 		${3:pass}
39 | # New Property
40 | snippet property
41 | 	def ${1:foo}():
42 | 		doc = "${2:The $1 property.}"
43 | 		def fget(self):
44 | 			${3:return self._$1}
45 | 		def fset(self, value):
46 | 			${4:self._$1 = value}
47 | # Lambda
48 | snippet ld
49 | 	${1:var} = lambda ${2:vars} : ${3:action}
50 | snippet .
51 | 	self.
52 | snippet try Try/Except
53 | 	try:
54 | 		${1:pass}
55 | 	except ${2:Exception}, ${3:e}:
56 | 		${4:raise $3}
57 | snippet try Try/Except/Else
58 | 	try:
59 | 		${1:pass}
60 | 	except ${2:Exception}, ${3:e}:
61 | 		${4:raise $3}
62 | 	else:
63 | 		${5:pass}
64 | snippet try Try/Except/Finally
65 | 	try:
66 | 		${1:pass}
67 | 	except ${2:Exception}, ${3:e}:
68 | 		${4:raise $3}
69 | 	finally:
70 | 		${5:pass}
71 | snippet try Try/Except/Else/Finally
72 | 	try:
73 | 		${1:pass}
74 | 	except ${2:Exception}, ${3:e}:
75 | 		${4:raise $3}
76 | 	else:
77 | 		${5:pass}
78 | 	finally:
79 | 		${6:pass}
80 | # if __name__ == '__main__':
81 | snippet ifmain
82 | 	if __name__ == '__main__':
83 | 		${1:main()}
84 | # __magic__
85 | snippet _
86 | 	__${1:init}__${2}
87 | 


--------------------------------------------------------------------------------
/syntax/cvsannotate.vim:
--------------------------------------------------------------------------------
 1 | " Vim syntax file
 2 | " Language:	CVS annotate output
 3 | " Maintainer:	Bob Hiestand 
 4 | " Remark:	Used by the cvscommand plugin.  Originally written by Mathieu
 5 | " Clabaut
 6 | " License:
 7 | " Copyright (c) Bob Hiestand
 8 | "
 9 | " Permission is hereby granted, free of charge, to any person obtaining a copy
10 | " of this software and associated documentation files (the "Software"), to
11 | " deal in the Software without restriction, including without limitation the
12 | " rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
13 | " sell copies of the Software, and to permit persons to whom the Software is
14 | " furnished to do so, subject to the following conditions:
15 | "
16 | " The above copyright notice and this permission notice shall be included in
17 | " all copies or substantial portions of the Software.
18 | "
19 | " THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 | " IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 | " FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 | " AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 | " LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
24 | " FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
25 | " IN THE SOFTWARE.
26 | 
27 | if version < 600
28 | 	syntax clear
29 | elseif exists("b:current_syntax")
30 | 	finish
31 | endif
32 | 
33 | syn match cvsDate 	/\d\d-...-\d\d/ 		contained
34 | syn match cvsName  	/(\S* /hs=s+1,he=e-1 		contained nextgroup=cvsDate
35 | syn match cvsVer 	/^\d\+\(\.\d\+\)\+/ 		contained nextgroup=cvsName
36 | syn region cvsHead 	start="^\d\+\.\d\+" end="):" 	contains=cvsVer,cvsName,cvsDate
37 | 
38 | if !exists("did_cvsannotate_syntax_inits")
39 | 	let did_cvsannotate_syntax_inits = 1
40 | 	hi link cvsDate 	Comment
41 | 	hi link cvsName	Type
42 | 	hi link cvsVer	Statement
43 | endif
44 | 
45 | let b:current_syntax="CVSAnnotate"
46 | 


--------------------------------------------------------------------------------
/syntax/gitannotate.vim:
--------------------------------------------------------------------------------
 1 | " Vim syntax file
 2 | " Language:	git annotate output
 3 | " Maintainer:	Bob Hiestand 
 4 | " Remark:	Used by the vcscommand plugin.
 5 | " License:
 6 | " Copyright (c) Bob Hiestand
 7 | "
 8 | " Permission is hereby granted, free of charge, to any person obtaining a copy
 9 | " of this software and associated documentation files (the "Software"), to
10 | " deal in the Software without restriction, including without limitation the
11 | " rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
12 | " sell copies of the Software, and to permit persons to whom the Software is
13 | " furnished to do so, subject to the following conditions:
14 | "
15 | " The above copyright notice and this permission notice shall be included in
16 | " all copies or substantial portions of the Software.
17 | "
18 | " THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | " IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | " FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 | " AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | " LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23 | " FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24 | " IN THE SOFTWARE.
25 | 
26 | if exists("b:current_syntax")
27 | 	finish
28 | endif
29 | 
30 | syn region gitName start="(\@<=" end="\( \d\d\d\d-\)\@=" contained
31 | syn match gitCommit /^\^\?\x\+/ contained
32 | syn match gitDate /\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d [+-]\d\d\d\d/ contained
33 | syn match gitLineNumber /\d\+)\@=/ contained
34 | syn region gitAnnotation start="^" end=") " oneline keepend contains=gitCommit,gitLineNumber,gitDate,gitName
35 | 
36 | if !exists("did_gitannotate_syntax_inits")
37 | 	let did_gitannotate_syntax_inits = 1
38 | 	hi link gitName Type
39 | 	hi link gitCommit Statement
40 | 	hi link gitDate Comment
41 | 	hi link gitLineNumber Label
42 | endif
43 | 
44 | let b:current_syntax="gitAnnotate"
45 | 


--------------------------------------------------------------------------------
/.vim_from_inspiron/syntax/CVSAnnotate.vim:
--------------------------------------------------------------------------------
 1 | " Vim syntax file
 2 | " Language:	CVS annotate output
 3 | " Maintainer:	Bob Hiestand 
 4 | " Remark:	Used by the cvscommand plugin.  Originally written by Mathieu
 5 | " Clabaut
 6 | " License:
 7 | " Copyright (c) 2007 Bob Hiestand
 8 | "
 9 | " Permission is hereby granted, free of charge, to any person obtaining a copy
10 | " of this software and associated documentation files (the "Software"), to
11 | " deal in the Software without restriction, including without limitation the
12 | " rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
13 | " sell copies of the Software, and to permit persons to whom the Software is
14 | " furnished to do so, subject to the following conditions:
15 | "
16 | " The above copyright notice and this permission notice shall be included in
17 | " all copies or substantial portions of the Software.
18 | "
19 | " THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 | " IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 | " FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 | " AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 | " LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
24 | " FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
25 | " IN THE SOFTWARE.
26 | 
27 | if version < 600
28 | 	syntax clear
29 | elseif exists("b:current_syntax")
30 | 	finish
31 | endif
32 | 
33 | syn match cvsDate 	/\d\d-...-\d\d/ 		contained
34 | syn match cvsName  	/(\S* /hs=s+1,he=e-1 		contained nextgroup=cvsDate
35 | syn match cvsVer 	/^\d\+\(\.\d\+\)\+/ 		contained nextgroup=cvsName
36 | syn region cvsHead 	start="^\d\+\.\d\+" end="):" 	contains=cvsVer,cvsName,cvsDate
37 | 
38 | if !exists("did_cvsannotate_syntax_inits")
39 | 	let did_cvsannotate_syntax_inits = 1
40 | 	hi link cvsDate 	Comment
41 | 	hi link cvsName	Type
42 | 	hi link cvsVer	Statement
43 | endif
44 | 
45 | let b:current_syntax="CVSAnnotate"
46 | 


--------------------------------------------------------------------------------
/.vim_from_inspiron/syntax/gitannotate.vim:
--------------------------------------------------------------------------------
 1 | " Vim syntax file
 2 | " Language:	git annotate output
 3 | " Maintainer:	Bob Hiestand 
 4 | " Remark:	Used by the vcscommand plugin.
 5 | " License:
 6 | " Copyright (c) 2009 Bob Hiestand
 7 | "
 8 | " Permission is hereby granted, free of charge, to any person obtaining a copy
 9 | " of this software and associated documentation files (the "Software"), to
10 | " deal in the Software without restriction, including without limitation the
11 | " rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
12 | " sell copies of the Software, and to permit persons to whom the Software is
13 | " furnished to do so, subject to the following conditions:
14 | "
15 | " The above copyright notice and this permission notice shall be included in
16 | " all copies or substantial portions of the Software.
17 | "
18 | " THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | " IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | " FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 | " AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | " LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23 | " FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24 | " IN THE SOFTWARE.
25 | 
26 | if exists("b:current_syntax")
27 | 	finish
28 | endif
29 | 
30 | syn region gitName start="(\@<=" end="\( \d\d\d\d-\)\@=" contained
31 | syn match gitCommit /^\^\?\x\+/ contained
32 | syn match gitDate /\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d [+-]\d\d\d\d/ contained
33 | syn match gitLineNumber /\d\+)\@=/ contained
34 | syn region gitAnnotation start="^" end=") " oneline keepend contains=gitCommit,gitLineNumber,gitDate,gitName
35 | 
36 | if !exists("did_gitannotate_syntax_inits")
37 | 	let did_gitannotate_syntax_inits = 1
38 | 	hi link gitName Type
39 | 	hi link gitCommit Statement
40 | 	hi link gitDate Comment
41 | 	hi link gitLineNumber Label
42 | endif
43 | 
44 | let b:current_syntax="gitAnnotate"
45 | 


--------------------------------------------------------------------------------
/.vim_from_inspiron/ftplugin/ruby/ruby_single_test.vim:
--------------------------------------------------------------------------------
 1 | " Ruby Single Test
 2 | "
 3 | " Description: Plugin for running a single Ruby test under the cursor
 4 | "              Supports TestUnit and Rspec
 5 | " Last Change:	Nov 19, 2009
 6 | " Version: 1.0.1
 7 | " Author:	Doug McInnes 
 8 | " URL: http://github.com/dmcinnes/ruby_single_test/tree
 9 | "
10 | " When a ruby test file with your cursor within a test block, hit
11 | " .
12 | " and that test, and only that test, will run in quickfix.
13 | " That's it!
14 | "
15 | " To remap the command, to t for instance, add something
16 | " like this to your .vimrc:
17 | " nmap  t ExecuteRubyTest
18 | "
19 | " Ruby Single Test default to using make! with a bang.  To disable
20 | " this behavior drop this in your .vimrc:
21 | " let g:ruby_single_test_no_bang = 1
22 | "
23 | "
24 | " TODO: add Shoulda support
25 | 
26 | if exists("loaded_ruby_single_test")
27 |   finish
28 | endif
29 | let loaded_ruby_single_test = 1
30 | 
31 | function! s:Run()
32 |   let s:make_cmd = "make" . (exists("g:ruby_single_test_no_bang") ? "" : "!")
33 |   if &filetype == "rspec"
34 |     call s:ExecuteRubySpec()
35 |   elseif &makeprg =~ "ruby" " Test::Unit
36 |     call s:ExecuteRubyUnitTest()
37 |   else
38 |     echo "Not a test file"
39 |   endif
40 | endfunction
41 | 
42 | function! s:ExecuteRubyUnitTest()
43 |   let s:line_no = search('^\s*def\s*test_', 'bcnW')
44 |   if s:line_no
45 |     let s:old_make = &makeprg
46 |     exec s:make_cmd . " \"%\" -n \"" . split(getline(s:line_no))[1] . "\""
47 |   else
48 |     echo "Can't find a test!"
49 |   endif
50 | endfunction
51 | 
52 | function! s:ExecuteRubySpec()
53 |   exec s:make_cmd . " \"%\" -l " . line(".")
54 | endfunction
55 | 
56 | augroup RUBY_SINGLE_TEST
57 |   au!
58 |   au BufNewFile,BufRead *_test.rb let &l:makeprg = "ruby"
59 | augroup END
60 | 
61 | nmap