From 0d23b6e515a01a5782532351821ebfa11f3d6cf2 Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Mon, 8 Oct 2012 11:44:10 -0500 Subject: Add vim again :) --- vim/plugin/.DS_Store | Bin 0 -> 6148 bytes vim/plugin/31-create-scala.vim | 55 + vim/plugin/AlignMapsPlugin.vim | 242 ++ vim/plugin/AlignPlugin.vim | 41 + vim/plugin/EasyMotion.vim | 73 + vim/plugin/NERD_commenter.vim | 2790 +++++++++++++++++++++++ vim/plugin/NERD_tree.vim | 4049 +++++++++++++++++++++++++++++++++ vim/plugin/SearchComplete.vim | 100 + vim/plugin/ZoomWinPlugin.vim | 49 + vim/plugin/ack.vim | 79 + vim/plugin/cecutil.vim | 510 +++++ vim/plugin/color_sample_pack.vim | 164 ++ vim/plugin/conque_term.vim | 93 + vim/plugin/delimitMate.vim | 434 ++++ vim/plugin/endwise.vim | 134 ++ vim/plugin/fugitive.vim | 2220 +++++++++++++++++++ vim/plugin/gist.vim | 826 +++++++ vim/plugin/indent-object.vim | 224 ++ vim/plugin/rails.vim | 339 +++ vim/plugin/searchfold_0.9.vim | 319 +++ vim/plugin/showmarks.vim | 507 +++++ vim/plugin/snipMate.vim | 271 +++ vim/plugin/supertab.vim | 737 ++++++ vim/plugin/surround.vim | 625 ++++++ vim/plugin/syntastic.vim | 614 +++++ vim/plugin/tagbar.vim | 118 + vim/plugin/taglist.vim | 4546 ++++++++++++++++++++++++++++++++++++++ vim/plugin/unimpaired.vim | 315 +++ vim/plugin/vim-rspec.rb | 32 + vim/plugin/vim-rspec.vim | 174 ++ vim/plugin/vim-rspec.xsl | 55 + 31 files changed, 20735 insertions(+) create mode 100644 vim/plugin/.DS_Store create mode 100644 vim/plugin/31-create-scala.vim create mode 100644 vim/plugin/AlignMapsPlugin.vim create mode 100644 vim/plugin/AlignPlugin.vim create mode 100755 vim/plugin/EasyMotion.vim create mode 100644 vim/plugin/NERD_commenter.vim create mode 100644 vim/plugin/NERD_tree.vim create mode 100644 vim/plugin/SearchComplete.vim create mode 100644 vim/plugin/ZoomWinPlugin.vim create mode 100644 vim/plugin/ack.vim create mode 100644 vim/plugin/cecutil.vim create mode 100644 vim/plugin/color_sample_pack.vim create mode 100644 vim/plugin/conque_term.vim create mode 100644 vim/plugin/delimitMate.vim create mode 100644 vim/plugin/endwise.vim create mode 100644 vim/plugin/fugitive.vim create mode 100644 vim/plugin/gist.vim create mode 100644 vim/plugin/indent-object.vim create mode 100644 vim/plugin/rails.vim create mode 100644 vim/plugin/searchfold_0.9.vim create mode 100644 vim/plugin/showmarks.vim create mode 100644 vim/plugin/snipMate.vim create mode 100644 vim/plugin/supertab.vim create mode 100644 vim/plugin/surround.vim create mode 100644 vim/plugin/syntastic.vim create mode 100644 vim/plugin/tagbar.vim create mode 100644 vim/plugin/taglist.vim create mode 100644 vim/plugin/unimpaired.vim create mode 100644 vim/plugin/vim-rspec.rb create mode 100644 vim/plugin/vim-rspec.vim create mode 100644 vim/plugin/vim-rspec.xsl (limited to 'vim/plugin') diff --git a/vim/plugin/.DS_Store b/vim/plugin/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/vim/plugin/.DS_Store differ diff --git a/vim/plugin/31-create-scala.vim b/vim/plugin/31-create-scala.vim new file mode 100644 index 0000000..e4ecb44 --- /dev/null +++ b/vim/plugin/31-create-scala.vim @@ -0,0 +1,55 @@ +" Vim plugin that generates new Scala source file when you type +" vim nonexistent.scala. +" Scripts tries to detect package name from the directory path, e. g. +" .../src/main/scala/com/mycompany/myapp/app.scala gets header +" package com.mycompany.myapp +" +" Author : Stepan Koltsov + +function! MakeScalaFile() + if exists("b:template_used") && b:template_used + return + endif + + let b:template_used = 1 + + let filename = expand(":p") + let x = substitute(filename, "\.scala$", "", "") + + let p = substitute(x, "/[^/]*$", "", "") + let p = substitute(p, "/", ".", "g") + let p = substitute(p, ".*\.src$", "@", "") " unnamed package + let p = substitute(p, ".*\.src\.", "!", "") + let p = substitute(p, "^!main\.scala\.", "!", "") " + let p = substitute(p, "^!.*\.ru\.", "!ru.", "") + let p = substitute(p, "^!.*\.org\.", "!org.", "") + let p = substitute(p, "^!.*\.com\.", "!com.", "") + + " ! marks that we found package name. + if match(p, "^!") == 0 + let p = substitute(p, "^!", "", "") + else + " Don't know package name. + let p = "@" + endif + + let class = substitute(x, ".*/", "", "") + + if p != "@" + call append("0", "package " . p) + endif + + "norm G + "call append(".", "class " . class . " {") + + "norm G + "call append(".", "} /// end of " . class) + + call append(".", "// vim: set ts=4 sw=4 et:") + call append(".", "") + +endfunction + +au BufNewFile *.scala call MakeScalaFile() + +" vim: set ts=4 sw=4 et: diff --git a/vim/plugin/AlignMapsPlugin.vim b/vim/plugin/AlignMapsPlugin.vim new file mode 100644 index 0000000..eed0293 --- /dev/null +++ b/vim/plugin/AlignMapsPlugin.vim @@ -0,0 +1,242 @@ +" AlignMapsPlugin: Alignment maps based upon and +" Maintainer: Dr. Charles E. Campbell, Jr. +" Date: Mar 03, 2009 +" +" NOTE: the code herein needs vim 6.0 or later +" needs v6 or later +" needs v5 or later +" Copyright: Copyright (C) 1999-2008 Charles E. Campbell, Jr. {{{1 +" Permission is hereby granted to use and distribute this code, +" with or without modifications, provided that this copyright +" notice is copied with it. Like anything else that's free, +" AlignMaps.vim is provided *as is* and comes with no warranty +" of any kind, either expressed or implied. By using this +" plugin, you agree that in no event will the copyright +" holder be liable for any damages resulting from the use +" of this software. +" +" Usage: {{{1 +" Use 'a to mark beginning of to-be-aligned region, Alternative: use V +" move cursor to end of region, and execute map. (linewise visual mode) to +" The maps also set up marks 'y and 'z, and retain mark region, execute same +" 'a at the beginning of region. map. Uses 'a, 'y, and 'z. +" +" The start/end wrappers save and restore marks 'y and 'z. +" +" Although the comments indicate the maps use a leading backslash, +" actually they use (:he mapleader), so the user can +" specify that the maps start how he or she prefers. +" +" Note: these maps all use . +" +" Romans 1:20 For the invisible things of Him since the creation of the {{{1 +" world are clearly seen, being perceived through the things that are +" made, even His everlasting power and divinity; that they may be +" without excuse. + +" --------------------------------------------------------------------- +" Load Once: {{{1 +if &cp || exists("g:loaded_AlignMapsPlugin") + finish +endif +let s:keepcpo = &cpo +let g:loaded_AlignMapsPlugin = "v41" +set cpo&vim + +" ===================================================================== +" Maps: {{{1 + +" --------------------------------------------------------------------- +" WS: wrapper start map (internal) {{{2 +" Produces a blank line above and below, marks with 'y and 'z +if !hasmapto('WrapperStart') + map WS AlignMapsWrapperStart +endif +nmap