utils 0.0.67 → 0.0.68

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. data/VERSION +1 -1
  2. data/bin/edit +3 -1
  3. data/lib/utils/editor.rb +14 -0
  4. data/lib/utils/version.rb +1 -1
  5. data/utils.gemspec +3 -3
  6. metadata +3 -74
  7. data/lib/utils/config/vim/after/syntax/haml.vim +0 -9
  8. data/lib/utils/config/vim/after/syntax/html.vim +0 -11
  9. data/lib/utils/config/vim/autoload/Align.vim +0 -1029
  10. data/lib/utils/config/vim/autoload/AlignMaps.vim +0 -330
  11. data/lib/utils/config/vim/autoload/ctrlp/bookmarkdir.vim +0 -139
  12. data/lib/utils/config/vim/autoload/ctrlp/buffertag.vim +0 -238
  13. data/lib/utils/config/vim/autoload/ctrlp/changes.vim +0 -96
  14. data/lib/utils/config/vim/autoload/ctrlp/dir.vim +0 -90
  15. data/lib/utils/config/vim/autoload/ctrlp/line.vim +0 -63
  16. data/lib/utils/config/vim/autoload/ctrlp/mixed.vim +0 -83
  17. data/lib/utils/config/vim/autoload/ctrlp/mrufiles.vim +0 -119
  18. data/lib/utils/config/vim/autoload/ctrlp/quickfix.vim +0 -62
  19. data/lib/utils/config/vim/autoload/ctrlp/rtscript.vim +0 -49
  20. data/lib/utils/config/vim/autoload/ctrlp/tag.vim +0 -112
  21. data/lib/utils/config/vim/autoload/ctrlp/undo.vim +0 -154
  22. data/lib/utils/config/vim/autoload/ctrlp/utils.vim +0 -72
  23. data/lib/utils/config/vim/autoload/ctrlp.vim +0 -1772
  24. data/lib/utils/config/vim/autoload/rails.vim +0 -4570
  25. data/lib/utils/config/vim/autoload/rubycomplete.vim +0 -801
  26. data/lib/utils/config/vim/autoload/sqlcomplete.vim +0 -741
  27. data/lib/utils/config/vim/autoload/vimball.vim +0 -750
  28. data/lib/utils/config/vim/colors/flori.vim +0 -116
  29. data/lib/utils/config/vim/compiler/coffee.vim +0 -68
  30. data/lib/utils/config/vim/compiler/eruby.vim +0 -40
  31. data/lib/utils/config/vim/compiler/ruby.vim +0 -67
  32. data/lib/utils/config/vim/compiler/rubyunit.vim +0 -34
  33. data/lib/utils/config/vim/doc/Decho.txt +0 -372
  34. data/lib/utils/config/vim/doc/coffee-script.txt +0 -116
  35. data/lib/utils/config/vim/doc/ctrlp.txt +0 -1113
  36. data/lib/utils/config/vim/doc/fugitive.txt +0 -257
  37. data/lib/utils/config/vim/doc/rails.txt +0 -1022
  38. data/lib/utils/config/vim/doc/xml-plugin.txt +0 -226
  39. data/lib/utils/config/vim/ftdetect/coffee.vim +0 -8
  40. data/lib/utils/config/vim/ftdetect/eco.vim +0 -1
  41. data/lib/utils/config/vim/ftdetect/ragel.vim +0 -2
  42. data/lib/utils/config/vim/ftdetect/ruby.vim +0 -17
  43. data/lib/utils/config/vim/ftdetect/slim.vim +0 -2
  44. data/lib/utils/config/vim/ftplugin/coffee.vim +0 -221
  45. data/lib/utils/config/vim/ftplugin/eruby.vim +0 -100
  46. data/lib/utils/config/vim/ftplugin/ruby.vim +0 -260
  47. data/lib/utils/config/vim/ftplugin/xml.vim +0 -941
  48. data/lib/utils/config/vim/indent/IndentAnything_html.vim +0 -35
  49. data/lib/utils/config/vim/indent/coffee.vim +0 -338
  50. data/lib/utils/config/vim/indent/eruby.vim +0 -77
  51. data/lib/utils/config/vim/indent/javascript.vim +0 -116
  52. data/lib/utils/config/vim/indent/ruby.vim +0 -377
  53. data/lib/utils/config/vim/indent/slim.vim +0 -75
  54. data/lib/utils/config/vim/plugin/AlignMapsPlugin.vim +0 -242
  55. data/lib/utils/config/vim/plugin/AlignPlugin.vim +0 -41
  56. data/lib/utils/config/vim/plugin/Decho.vim +0 -592
  57. data/lib/utils/config/vim/plugin/IndentAnything.vim +0 -675
  58. data/lib/utils/config/vim/plugin/bufexplorer.vim +0 -1144
  59. data/lib/utils/config/vim/plugin/cecutil.vim +0 -508
  60. data/lib/utils/config/vim/plugin/ctrlp.vim +0 -61
  61. data/lib/utils/config/vim/plugin/fugitive.vim +0 -2041
  62. data/lib/utils/config/vim/plugin/lusty-explorer.vim +0 -1509
  63. data/lib/utils/config/vim/plugin/rails.vim +0 -339
  64. data/lib/utils/config/vim/plugin/rubyextra.vim +0 -193
  65. data/lib/utils/config/vim/plugin/surround.vim +0 -628
  66. data/lib/utils/config/vim/plugin/taglist.vim +0 -4546
  67. data/lib/utils/config/vim/plugin/test/IndentAnything/test.js +0 -131
  68. data/lib/utils/config/vim/plugin/vimballPlugin.vim +0 -40
  69. data/lib/utils/config/vim/syntax/Decho.vim +0 -101
  70. data/lib/utils/config/vim/syntax/coffee.vim +0 -217
  71. data/lib/utils/config/vim/syntax/eco.vim +0 -62
  72. data/lib/utils/config/vim/syntax/eruby.vim +0 -73
  73. data/lib/utils/config/vim/syntax/javascript.vim +0 -246
  74. data/lib/utils/config/vim/syntax/ragel.vim +0 -165
  75. data/lib/utils/config/vim/syntax/ruby.vim +0 -367
  76. data/lib/utils/config/vim/syntax/slim.vim +0 -117
  77. data/lib/utils/config/vimrc +0 -540
@@ -1,116 +0,0 @@
1
- " Vim color file based on desert.vim
2
-
3
- " cool help screens
4
- " :he group-name
5
- " :he highlight-groups
6
-
7
- if exists("syntax_on")
8
- syntax reset
9
- endif
10
- if version > 580
11
- " no gearantees for version 5.8 and below, but this makes it stop
12
- " complaining
13
- hi clear
14
- if exists("syntax_on")
15
- syntax reset
16
- endif
17
- endif
18
- let g:colors_name="flori"
19
-
20
- " general highlight groups
21
- hi Normal guifg=lightyellow guibg=grey20 ctermfg=lightgrey ctermbg=none
22
- hi ColorColumn guibg=grey25 ctermbg=darkgrey
23
- "hi CursorColumn guibg=grey30
24
- "hi CursorLine guibg=grey30
25
- hi Folded guibg=grey30 guifg=gold ctermbg=lightgrey ctermfg=black
26
- hi FoldColumn guibg=grey30 guifg=tan ctermbg=lightgrey ctermfg=black
27
- hi IncSearch guifg=slategrey guibg=khaki ctermbg=darkred ctermfg=lightred
28
- hi ModeMsg guifg=goldenrod ctermfg=green
29
- hi MoreMsg guifg=seagreen ctermfg=green
30
- hi NonText guifg=lightblue guibg=grey30 ctermfg=lightblue
31
- hi Question guifg=springgreen ctermfg=green
32
- hi Search guibg=peru guifg=white ctermbg=darkred ctermfg=lightred
33
- hi SpecialKey guifg=yellowgreen ctermfg=lightgreen
34
- hi VertSplit guibg=#c2bfa5 guifg=grey50 gui=none ctermbg=darkgrey ctermfg=lightgrey cterm=none
35
- hi StatusLine guibg=#c2bfa5 guifg=black gui=bold ctermbg=white ctermfg=lightblue
36
- hi StatusLineNC guibg=#c2bfa5 guifg=grey40 gui=none ctermbg=black ctermfg=grey
37
- hi Title guifg=indianred ctermfg=red
38
- hi WarningMsg guifg=salmon guibg=NONE ctermfg=red
39
- hi LineNr guifg=slategrey guibg=NONE ctermfg=darkgrey
40
- hi Pmenu guifg=grey40 guibg=#c2bfa5 gui=NONE ctermbg=darkgrey ctermfg=lightgrey
41
- hi PmenuSel guifg=white guibg=grey40 gui=NONE ctermbg=red ctermfg=lightred
42
- hi PmenuSbar guifg=black guibg=grey30 ctermfg=white ctermbg=blue
43
- hi PmenuThumb guifg=black guibg=white ctermfg=white ctermbg=black
44
- hi Cursor guibg=khaki guifg=slategrey
45
- hi CursorIM guibg=khaki guifg=slategrey
46
- hi Visual guifg=NONE guibg=peru
47
- hi VisualNOS guifg=NONE guibg=grey25 gui=none
48
-
49
- " syntax highlighting groups
50
- hi Comment guifg=slategrey guibg=NONE ctermfg=darkgrey
51
- "
52
- hi Constant guifg=lightgreen guibg=NONE ctermfg=lightgreen
53
- hi String guifg=salmon guibg=NONE ctermfg=red
54
- hi Character guifg=greenyellow guibg=NONE ctermfg=red
55
- hi Number guifg=red guibg=NONE ctermfg=darkred
56
- hi Boolean guifg=red guibg=NONE ctermfg=darkred
57
- hi link Float Number
58
- hi Regexp guifg=tomato guibg=NONE ctermfg=lightred
59
- "
60
- hi Identifier guifg=palegreen guibg=NONE ctermfg=lightgreen
61
- hi Function guifg=limegreen guibg=NONE ctermfg=darkgreen
62
- "
63
- hi Statement guifg=khaki guibg=NONE ctermfg=yellow
64
- hi Keyword guifg=brown gui=bold guibg=NONE ctermfg=brown cterm=bold
65
- hi Operator guifg=orangered guibg=NONE ctermfg=darkred
66
- "
67
- hi PreProc guifg=indianred guibg=NONE ctermfg=red
68
- "
69
- hi Type guifg=darkkhaki guibg=NONE ctermfg=green
70
- "
71
- hi Special guifg=orange guibg=NONE ctermfg=red
72
- "
73
- hi Underlined guifg=darkslateblue gui=underline guibg=NONE cterm=underline
74
- "
75
- hi Ignore guifg=grey40 guibg=NONE ctermfg=darkgrey
76
- "
77
- hi Error guifg=yellow guibg=orangered ctermfg=white ctermbg=red
78
- "
79
- hi Todo guifg=orangered guibg=yellow ctermfg=red ctermbg=yellow
80
- "
81
-
82
- hi rubyInterpolation guifg=moccasin guibg=NONE
83
- hi rubyInstanceVariable guifg=orangered guibg=NONE ctermfg=red
84
- hi rubyClassVariable guifg=#dc1436 guibg=NONE ctermfg=red
85
- hi rubyGlobalVariable guifg=deeppink guibg=NONE ctermfg=magenta
86
- hi rubyEval guifg=red guibg=NONE ctermfg=darkred
87
- hi rubyBlockParameter guifg=orchid guibg=NONE ctermfg=lightmagenta
88
- hi rubyBlockArgument guifg=orchid guibg=NONE ctermfg=lightmagenta
89
- hi link rubyEscape Character
90
- hi link rubySymbol Function
91
- hi link rubyPseudoVariable Special
92
- hi link rubyBoolean Boolean
93
- hi link rubyPredefinedVariable Special
94
- hi link rubyPredefinedConstant Constant
95
- hi link rubyConstant Constant
96
- hi link railsMethod PreProc
97
- hi link rubyDefine Keyword
98
- hi link rubyAccess rubyMethod
99
- hi link rubyAttribute rubyMethod
100
- hi link rubyException rubyMethod
101
- hi link rubyInclude Keyword
102
- hi link rubyStringDelimiter rubyString
103
- hi link rubyRegexp Regexp
104
- hi link rubyRegexpDelimiter rubyRegexp
105
- hi link javascriptRegexpString Regexp
106
- hi link javascriptNumber Number
107
- hi link javascriptNull Constant
108
-
109
- " diffing
110
- hi DiffAdd guibg=green guifg=white ctermbg=green ctermfg=white
111
- hi DiffChange guibg=blue guifg=white ctermbg=blue ctermfg=white
112
- hi DiffText guifg=yellow ctermbg=yellow ctermfg=white
113
- hi DiffDelete guibg=red guifg=white ctermbg=red ctermfg=white
114
-
115
- hi ExtraWhitespace ctermbg=red guibg=#663333
116
- match ExtraWhitespace /\s\+$/
@@ -1,68 +0,0 @@
1
- " Language: CoffeeScript
2
- " Maintainer: Mick Koch <kchmck@gmail.com>
3
- " URL: http://github.com/kchmck/vim-coffee-script
4
- " License: WTFPL
5
-
6
- if exists('current_compiler')
7
- finish
8
- endif
9
-
10
- let current_compiler = 'coffee'
11
- " Pattern to check if coffee is the compiler
12
- let s:pat = '^' . current_compiler
13
-
14
- " Extra options passed to CoffeeMake
15
- if !exists("coffee_make_options")
16
- let coffee_make_options = ""
17
- endif
18
-
19
- " Get a `makeprg` for the current filename. This is needed to support filenames
20
- " with spaces and quotes, but also not break generic `make`.
21
- function! s:GetMakePrg()
22
- return 'coffee -c ' . g:coffee_make_options . ' $* ' . fnameescape(expand('%'))
23
- endfunction
24
-
25
- " Set `makeprg` and return 1 if coffee is still the compiler, else return 0.
26
- function! s:SetMakePrg()
27
- if &l:makeprg =~ s:pat
28
- let &l:makeprg = s:GetMakePrg()
29
- elseif &g:makeprg =~ s:pat
30
- let &g:makeprg = s:GetMakePrg()
31
- else
32
- return 0
33
- endif
34
-
35
- return 1
36
- endfunction
37
-
38
- " Set a dummy compiler so we can check whether to set locally or globally.
39
- CompilerSet makeprg=coffee
40
- call s:SetMakePrg()
41
-
42
- CompilerSet errorformat=Error:\ In\ %f\\,\ %m\ on\ line\ %l,
43
- \Error:\ In\ %f\\,\ Parse\ error\ on\ line\ %l:\ %m,
44
- \SyntaxError:\ In\ %f\\,\ %m,
45
- \%-G%.%#
46
-
47
- " Compile the current file.
48
- command! -bang -bar -nargs=* CoffeeMake make<bang> <args>
49
-
50
- " Set `makeprg` on rename since we embed the filename in the setting.
51
- augroup CoffeeUpdateMakePrg
52
- autocmd!
53
-
54
- " Update `makeprg` if coffee is still the compiler, else stop running this
55
- " function.
56
- function! s:UpdateMakePrg()
57
- if !s:SetMakePrg()
58
- autocmd! CoffeeUpdateMakePrg
59
- endif
60
- endfunction
61
-
62
- " Set autocmd locally if compiler was set locally.
63
- if &l:makeprg =~ s:pat
64
- autocmd BufFilePost,BufWritePost <buffer> call s:UpdateMakePrg()
65
- else
66
- autocmd BufFilePost,BufWritePost call s:UpdateMakePrg()
67
- endif
68
- augroup END
@@ -1,40 +0,0 @@
1
- " Vim compiler file
2
- " Language: eRuby
3
- " Maintainer: Doug Kearns <dougkearns@gmail.com>
4
- " URL: http://vim-ruby.rubyforge.org
5
- " Anon CVS: See above site
6
- " Release Coordinator: Doug Kearns <dougkearns@gmail.com>
7
-
8
- if exists("current_compiler")
9
- finish
10
- endif
11
- let current_compiler = "eruby"
12
-
13
- if exists(":CompilerSet") != 2 " older Vim always used :setlocal
14
- command -nargs=* CompilerSet setlocal <args>
15
- endif
16
-
17
- let s:cpo_save = &cpo
18
- set cpo-=C
19
-
20
- if exists("eruby_compiler") && eruby_compiler == "eruby"
21
- CompilerSet makeprg=eruby
22
- else
23
- CompilerSet makeprg=erb
24
- endif
25
-
26
- CompilerSet errorformat=
27
- \eruby:\ %f:%l:%m,
28
- \%+E%f:%l:\ parse\ error,
29
- \%W%f:%l:\ warning:\ %m,
30
- \%E%f:%l:in\ %*[^:]:\ %m,
31
- \%E%f:%l:\ %m,
32
- \%-C%\tfrom\ %f:%l:in\ %.%#,
33
- \%-Z%\tfrom\ %f:%l,
34
- \%-Z%p^,
35
- \%-G%.%#
36
-
37
- let &cpo = s:cpo_save
38
- unlet s:cpo_save
39
-
40
- " vim: nowrap sw=2 sts=2 ts=8:
@@ -1,67 +0,0 @@
1
- " Vim compiler file
2
- " Language: Ruby
3
- " Function: Syntax check and/or error reporting
4
- " Maintainer: Tim Hammerquist <timh at rubyforge.org>
5
- " URL: http://vim-ruby.rubyforge.org
6
- " Anon CVS: See above site
7
- " Release Coordinator: Doug Kearns <dougkearns@gmail.com>
8
- " ----------------------------------------------------------------------------
9
- "
10
- " Changelog:
11
- " 0.2: script saves and restores 'cpoptions' value to prevent problems with
12
- " line continuations
13
- " 0.1: initial release
14
- "
15
- " Contributors:
16
- " Hugh Sasse <hgs@dmu.ac.uk>
17
- " Doug Kearns <djkea2@gus.gscit.monash.edu.au>
18
- "
19
- " Todo:
20
- " match error type %m
21
- "
22
- " Comments:
23
- " I know this file isn't perfect. If you have any questions, suggestions,
24
- " patches, etc., please don't hesitate to let me know.
25
- "
26
- " This is my first experience with 'errorformat' and compiler plugins and
27
- " I welcome any input from more experienced (or clearer-thinking)
28
- " individuals.
29
- " ----------------------------------------------------------------------------
30
-
31
- if exists("current_compiler")
32
- finish
33
- endif
34
- let current_compiler = "ruby"
35
-
36
- if exists(":CompilerSet") != 2 " older Vim always used :setlocal
37
- command -nargs=* CompilerSet setlocal <args>
38
- endif
39
-
40
- let s:cpo_save = &cpo
41
- set cpo-=C
42
-
43
- " default settings runs script normally
44
- " add '-c' switch to run syntax check only:
45
- "
46
- " CompilerSet makeprg=ruby\ -wc\ $*
47
- "
48
- " or add '-c' at :make command line:
49
- "
50
- " :make -c %<CR>
51
- "
52
- CompilerSet makeprg=ruby\ -w\ $*
53
-
54
- CompilerSet errorformat=
55
- \%+E%f:%l:\ parse\ error,
56
- \%W%f:%l:\ warning:\ %m,
57
- \%E%f:%l:in\ %*[^:]:\ %m,
58
- \%E%f:%l:\ %m,
59
- \%-C%\tfrom\ %f:%l:in\ %.%#,
60
- \%-Z%\tfrom\ %f:%l,
61
- \%-Z%p^,
62
- \%-G%.%#
63
-
64
- let &cpo = s:cpo_save
65
- unlet s:cpo_save
66
-
67
- " vim: nowrap sw=2 sts=2 ts=8:
@@ -1,34 +0,0 @@
1
- " Vim compiler file
2
- " Language: Test::Unit - Ruby Unit Testing Framework
3
- " Maintainer: Doug Kearns <dougkearns@gmail.com>
4
- " URL: http://vim-ruby.rubyforge.org
5
- " Anon CVS: See above site
6
- " Release Coordinator: Doug Kearns <dougkearns@gmail.com>
7
-
8
- "if exists("current_compiler")
9
- " finish
10
- "endif
11
- "let current_compiler = "rubyunit"
12
- "
13
- "if exists(":CompilerSet") != 2 " older Vim always used :setlocal
14
- " command -nargs=* CompilerSet setlocal <args>
15
- "endif
16
- "
17
- "let s:cpo_save = &cpo
18
- "set cpo-=C
19
- "
20
- "CompilerSet makeprg=testrb
21
- "
22
- "CompilerSet errorformat=\%W\ %\\+%\\d%\\+)\ Failure:,
23
- " \%C%m\ [%f:%l]:,
24
- " \%E\ %\\+%\\d%\\+)\ Error:,
25
- " \%C%m:,
26
- " \%C\ \ \ \ %f:%l:%.%#,
27
- " \%C%m,
28
- " \%Z\ %#,
29
- " \%-G%.%#
30
- "
31
- "let &cpo = s:cpo_save
32
- "unlet s:cpo_save
33
-
34
- " vim: nowrap sw=2 sts=2 ts=8: