Permalink
Browse files

initial commit - vim, git configs

  • Loading branch information...
0 parents commit e5452177ec4f5641d3801646237e61b0a86bcc73 @jgallen23 committed Apr 5, 2011
Showing with 26,029 additions and 0 deletions.
  1. +36 −0 .gitconfig
  2. +11 −0 .vim/.netrwhist
  3. +6 −0 .vim/README.markdown
  4. +23 −0 .vim/README.txt
  5. +35 −0 .vim/after/plugin/snipMate.vim
  6. +28 −0 .vim/after/syntax/cocoa_keywords.vim
  7. +59 −0 .vim/after/syntax/objc_enhanced.vim
  8. +1,954 −0 .vim/autoload/genutils.vim
  9. +472 −0 .vim/autoload/lookupfile.vim
  10. +215 −0 .vim/autoload/objc/cocoacomplete.vim
  11. +185 −0 .vim/autoload/objc/man.vim
  12. +124 −0 .vim/autoload/objc/method_builder.vim
  13. +115 −0 .vim/autoload/objc/method_list.vim
  14. +87 −0 .vim/autoload/objc/pum_snippet.vim
  15. +132 −0 .vim/autoload/pathogen.vim
  16. +433 −0 .vim/autoload/snipMate.vim
  17. +2 −0 .vim/bundle/jade/ftdetect/jade.vim
  18. +53 −0 .vim/bundle/jade/ftplugin/jade.vim
  19. +70 −0 .vim/bundle/jade/indent/jade.vim
  20. +65 −0 .vim/bundle/jade/syntax/jade.vim
  21. +110 −0 .vim/bundle/scratch/plugin/scratch.vim
  22. +55 −0 .vim/colors/Mustang_Vim_Colorscheme_by_hcalves.vim
  23. +108 −0 .vim/colors/desert.vim
  24. +146 −0 .vim/colors/fruity.vim
  25. +212 −0 .vim/colors/ir_black.vim
  26. +597 −0 .vim/colors/peaksea.vim
  27. +78 −0 .vim/colors/tango.vim
  28. +68 −0 .vim/colors/vibrantink.vim
  29. +191 −0 .vim/colors/vividchalk.vim
  30. +154 −0 .vim/doc/cocoa.txt
  31. +406 −0 .vim/doc/matchit.txt
  32. +201 −0 .vim/doc/pi_vimball.txt
  33. +286 −0 .vim/doc/snipMate.txt
  34. +218 −0 .vim/doc/surround.txt
  35. +132 −0 .vim/doc/tags
  36. +143 −0 .vim/doc/tags-ja
  37. +71 −0 .vim/ftplugin/git.vim
  38. +1,099 −0 .vim/ftplugin/html/sparkup.py
  39. +74 −0 .vim/ftplugin/html/sparkup.vim
  40. +10 −0 .vim/ftplugin/html_snip_helper.vim
  41. +85 −0 .vim/ftplugin/objc_cocoa_mappings.vim
  42. +83 −0 .vim/indent/javascript.vim
  43. +637 −0 .vim/lib/cocoa_indexes/classes.txt
  44. +1,714 −0 .vim/lib/cocoa_indexes/constants.txt
  45. +330 −0 .vim/lib/cocoa_indexes/functions.txt
  46. BIN .vim/lib/cocoa_indexes/methods.txt.gz
  47. +105 −0 .vim/lib/cocoa_indexes/notifications.txt
  48. +222 −0 .vim/lib/cocoa_indexes/types.txt
  49. +2 −0 .vim/lib/extras/README-if-you-like
  50. +94 −0 .vim/lib/extras/build_syntaxfile.py
  51. +64 −0 .vim/lib/extras/cocoa_classes.py
  52. +100 −0 .vim/lib/extras/cocoa_definitions.py
  53. BIN .vim/lib/extras/cocoa_definitions.pyc
  54. +637 −0 .vim/lib/extras/cocoa_indexes/classes.txt
  55. +1,714 −0 .vim/lib/extras/cocoa_indexes/constants.txt
  56. +330 −0 .vim/lib/extras/cocoa_indexes/functions.txt
  57. BIN .vim/lib/extras/cocoa_indexes/methods.txt.gz
  58. +105 −0 .vim/lib/extras/cocoa_indexes/notifications.txt
  59. +222 −0 .vim/lib/extras/cocoa_indexes/types.txt
  60. +63 −0 .vim/lib/extras/cocoa_methods.py
  61. BIN .vim/lib/extras/superclasses
  62. +47 −0 .vim/lib/extras/superclasses.m
  63. +4 −0 .vim/lib/get_methods.sh
  64. +98 −0 .vim/plugin/BufClose.vim
  65. +7 −0 .vim/plugin/BufCloseAll.vim
  66. +69 −0 .vim/plugin/BufOnly.vim
  67. +139 −0 .vim/plugin/ReloadScript.vim
  68. +31 −0 .vim/plugin/autorefresh.vim
  69. +16 −0 .vim/plugin/cocoa.vim
  70. +323 −0 .vim/plugin/comments.vim
  71. +15 −0 .vim/plugin/css.vim
  72. +1,652 −0 .vim/plugin/dot.vim
  73. +812 −0 .vim/plugin/matchit.vim
  74. +44 −0 .vim/plugin/mygrep.vim
  75. +44 −0 .vim/plugin/peepopen.vim
  76. +253 −0 .vim/plugin/snipMate.vim
  77. +628 −0 .vim/plugin/surround.vim
  78. +65 −0 .vim/plugin/tagwrap.vim
  79. +14 −0 .vim/plugin/xrefresh.vim
  80. +327 −0 .vim/scripts/closetag.vim
  81. +7 −0 .vim/snippets/_.snippets
  82. +66 −0 .vim/snippets/autoit.snippets
  83. +110 −0 .vim/snippets/c.snippets
  84. +4 −0 .vim/snippets/coffee.snippets
  85. +30 −0 .vim/snippets/cpp.snippets
  86. +110 −0 .vim/snippets/html.snippets
  87. +78 −0 .vim/snippets/java.snippets
  88. +118 −0 .vim/snippets/javascript.snippets
  89. +54 −0 .vim/snippets/mako.snippets
  90. +184 −0 .vim/snippets/objc.snippets
  91. +91 −0 .vim/snippets/perl.snippets
  92. +216 −0 .vim/snippets/php.snippets
  93. +101 −0 .vim/snippets/python.snippets
  94. +420 −0 .vim/snippets/ruby.snippets
  95. +28 −0 .vim/snippets/sh.snippets
  96. +7 −0 .vim/snippets/snippet.snippets
  97. +92 −0 .vim/snippets/tcl.snippets
  98. +115 −0 .vim/snippets/tex.snippets
  99. +32 −0 .vim/snippets/vim.snippets
  100. +58 −0 .vim/snippets/zsh.snippets
  101. +42 −0 .vim/syntax/SVKAnnotate.vim
  102. +40 −0 .vim/syntax/SVNAnnotate.vim
  103. +140 −0 .vim/syntax/csharp.vim
  104. +201 −0 .vim/syntax/css.vim
  105. +8 −0 .vim/syntax/git-diff.vim
  106. +3 −0 .vim/syntax/git-log.vim
  107. +18 −0 .vim/syntax/git-status.vim
  108. +36 −0 .vim/syntax/git.vim
  109. +256 −0 .vim/syntax/html.vim
  110. +257 −0 .vim/syntax/javascript.vim
  111. +86 −0 .vim/syntax/mako.vim
  112. +304 −0 .vim/syntax/python.vim
  113. +19 −0 .vim/syntax/snippet.vim
  114. +145 −0 .vim/syntax/svg.vim
  115. +57 −0 .vim/syntax/svn.vim
  116. +93 −0 .vim/syntax/svnlog.vim
  117. +31 −0 .vim/syntax/vcscommit.vim
  118. +62 −0 .vim/syntax/yaml.vim
  119. +2 −0 .vim/tmpfile
  120. +330 −0 .vimrc
  121. +2,419 −0 git-completion.bash
@@ -0,0 +1,36 @@
+[user]
+ name = Greg Allen
+ email = me@jga.me
+[alias]
+ st=status
+ c=commit
+ ca=commit -a
+ i=add -i
+ pl=pull
+ ps=push
+ d=diff --color
+ dc=diff --color --cached
+ lg=log --graph --oneline --no-merges --pretty=format:'%Cred%h%Creset - %s %Cgreen(%an - %ci)%Creset %C(yellow)%d%Creset' --abbrev-commit
+ lf=log --name-only --oneline --no-merges --pretty=format:'%Cred%h%Creset - %s %Cgreen(%an - %ci)%Creset %C(yellow)%d%Creset' --abbrev-commit
+ lbare=log --oneline --no-merges --pretty=format:'%s %d'
+ lb=!git l --branches
+ cmp=!sh -c 'git log --left-right --name-only --oneline --no-merges $0...'
+ br=!sh -c 'git checkout --no-track -b $0 origin/prod'
+[push]
+ default = current
+[color]
+ ui = auto
+[color "branch"]
+ current = yellow reverse
+ local = yellow
+ remote = green
+[color "diff"]
+ meta = yellow bold
+ frag = magenta bold
+ old = red bold
+ new = green bold
+[color "status"]
+ added = yellow
+ changed = green
+ untracked = cyan
+
@@ -0,0 +1,11 @@
+let g:netrw_dirhistmax =10
+let g:netrw_dirhist_cnt =9
+let g:netrw_dirhist_1='/Users/gregamel/Dropbox/dotfiles/.vim/bundle/vim-coffee-script'
+let g:netrw_dirhist_2='/Users/gregamel/Dropbox/dotfiles/.vim/bundle/vim-coffee-script/syntax'
+let g:netrw_dirhist_3='/usr/local/lib/node/.npm/apn'
+let g:netrw_dirhist_4='/usr/local/lib/node/.npm/apn/active'
+let g:netrw_dirhist_5='/usr/local/lib/node/.npm/apn/active/package'
+let g:netrw_dirhist_6='/Users/gregamel/code/phonegap-server'
+let g:netrw_dirhist_7='/private/tmp/wtfjs'
+let g:netrw_dirhist_8='/Users/gregamel/code/phonegap-server'
+let g:netrw_dirhist_9='/Users/gregamel/code/phonegap-server/lib'
@@ -0,0 +1,6 @@
+Quickly install with:
+
+ mkdir cocoa.vim
+ cd !$
+ git clone git://github.com/msanders/cocoa.vim.git
+ cp -r . ~/.vim
@@ -0,0 +1,23 @@
+Installation
+------------
+
+ Copy the contents of vim/ftplugin/ to your ~/.vim/ftplugin directory.
+
+ (Assuming your current dir is sparkup/vim/)
+ $ cp -R ftplugin ~/.vim/
+
+Configuration
+-------------
+
+ g:sparkup (Default: 'sparkup') -
+ Location of the sparkup executable. You shouldn't need to change this
+ setting if you used the install option above.
+
+ g:sparkupArgs (Default: '--no-last-newline') -
+ Additional args passed to sparkup.
+
+ g:sparkupExecuteMapping (Default: '<c-e>') -
+ Mapping used to execute sparkup.
+
+ g:sparkupNextMapping (Default: '<c-n>') -
+ Mapping used to jump to the next empty tag/attribute.
@@ -0,0 +1,35 @@
+" These are the mappings for snipMate.vim. Putting it here ensures that it
+" will be mapped after other plugins such as supertab.vim.
+if !exists('loaded_snips') || exists('s:did_snips_mappings')
+ finish
+endif
+let s:did_snips_mappings = 1
+
+ino <silent> <tab> <c-r>=TriggerSnippet()<cr>
+snor <silent> <tab> <esc>i<right><c-r>=TriggerSnippet()<cr>
+ino <silent> <s-tab> <c-r>=BackwardsSnippet()<cr>
+snor <silent> <s-tab> <esc>i<right><c-r>=BackwardsSnippet()<cr>
+ino <silent> <c-r><tab> <c-r>=ShowAvailableSnips()<cr>
+
+" The default mappings for these are annoying & sometimes break snipMate.
+" You can change them back if you want, I've put them here for convenience.
+snor <bs> b<bs>
+snor <right> <esc>a
+snor <left> <esc>bi
+snor ' b<bs>'
+snor ` b<bs>`
+snor % b<bs>%
+snor U b<bs>U
+snor ^ b<bs>^
+snor \ b<bs>\
+snor <c-x> b<bs><c-x>
+
+" By default load snippets in snippets_dir
+if empty(snippets_dir)
+ finish
+endif
+
+call GetSnippets(snippets_dir, '_') " Get global snippets
+
+au FileType * if &ft != 'help' | call GetSnippets(snippets_dir, &ft) | endif
+" vim:noet:sw=4:ts=4:ft=vim

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,59 @@
+" Author: Michael Sanders (msanders42 [at] gmail [dot] com)
+" Description: Better syntax highlighting for Objective-C files (part of the
+" cocoa.vim plugin).
+" Last Updated: June 23, 2009
+
+" NOTE: This next file (cocoa_keywords.vim) is rather large and may slow
+" things down. Loading it seems to take less than 0.5 microseconds
+" on my machine, but I'm not sure of the consequences; if it is slow
+" for you, just comment out the next line.
+ru after/syntax/cocoa_keywords.vim
+
+syn match objcDirective '@synthesize\|@property\|@optional\|@required' display
+syn keyword objcType IBOutlet IBAction Method
+syn keyword objcConstant YES NO TRUE FALSE
+
+syn region objcImp start='@implementation' end='@end' transparent
+syn region objcHeader start='@interface' end='@end' transparent
+
+" I make this typo sometimes so it's nice to have it highlighted.
+syn match objcError '\v(NSLogv=\(\s*)@<=[^@]=["'].*'me=e-1
+
+syn match objcSubclass '\(@implementation\|@interface\)\@<=\s*\k\+' display contained containedin=objcImp,objcHeader
+syn match objcSuperclass '\(@\(implementation\|interface\)\s*\k\+\s*:\)\@<=\s*\k*' display contained containedin=objcImp,objcHeader
+
+" Matches "- (void) foo: (int) bar and: (float) foobar"
+syn match objcMethod '^\s*[-+]\s*\_.\{-}[\{;]'me=e-1 transparent contains=cParen,objcInstMethod,objcFactMethod
+" Matches "bar & foobar" in above
+syn match objcMethodArg ')\@<=\s*\k\+' contained containedin=objcMethod
+" Matches "foo:" & "and:" in above
+syn match objcMethodName '\(^\s*[-+]\s*(\_[^)]*)\)\@<=\_\s*\_\k\+' contained containedin=objcMethod
+syn match objcMethodColon '\k\+\s*:' contained containedin=objcMethod
+" Don't match these groups in cParen "(...)"
+syn cluster cParenGroup add=objcMethodName,objcMethodArg,objcMethodColon
+" This fixes a bug with completion inside parens (e.g. if ([NSString ]))
+syn cluster cParenGroup remove=objcMessage
+
+" Matches "bar" in "[NSObject bar]" or "bar" in "[[NSObject foo: baz] bar]",
+" but NOT "bar" in "[NSObject foo: bar]".
+syn match objcMessageName '\(\[\s*\k\+\s\+\|\]\s*\)\@<=\k*\s*\]'me=e-1 display contained containedin=objcMessage
+" Matches "foo:" in "[NSObject foo: bar]" or "[[NSObject new] foo: bar]"
+syn match objcMessageColon '\(\_\S\+\_\s\+\)\@<=\k\+\s*:' display contained containedin=objcMessage
+
+" Don't match these in this strange group for edge cases...
+syn cluster cMultiGroup add=objcMessageColon,objcMessageName,objcMethodName,objcMethodArg,objcMethodColon
+
+" You may want to customize this one. I couldn't find a default group to suit
+" it, but you can modify your colorscheme to make this a different color.
+hi link objcMethodName Special
+hi link objcMethodColon objcMethodName
+
+hi link objcMethodArg Identifier
+
+hi link objcMessageName objcMethodArg
+hi link objcMessageColon objcMessageName
+
+hi link objcSubclass objcMethodName
+hi link objcSuperclass String
+
+hi link objcError Error
Oops, something went wrong.

0 comments on commit e545217

Please sign in to comment.