Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removing omz and vim

  • Loading branch information...
commit 99a4b021b302952ddc50275ede2e016d5ab7aaf3 1 parent a69733c
pmorgan authored
Showing with 0 additions and 1,239 deletions.
  1. +0 −7 oh-my-zsh/README
  2. +0 −92 oh-my-zsh/modules/prompt/functions/prompt_skwp_setup
  3. +0 −16 oh-my-zsh/themes/jreese.zsh-theme
  4. BIN  oh-my-zsh/themes/kylewest.png
  5. +0 −30 oh-my-zsh/themes/kylewest.zsh-theme
  6. +0 −24 oh-my-zsh/themes/skwp.zsh-theme
  7. BIN  vim/.DS_Store
  8. +0 −5 vim/.gitignore
  9. +0 −4 vim/README.snipMate
  10. +0 −32 vim/after/plugin/vimrc_after.vim
  11. BIN  vim/bundle/.DS_Store
  12. +0 −1  vim/bundle/HTML-AutoCloseTag
  13. +0 −1  vim/bundle/csapprox
  14. +0 −1  vim/bundle/ctrlp.vim
  15. +0 −1  vim/bundle/gist-vim
  16. +0 −1  vim/bundle/mark-2.8.0
  17. +0 −1  vim/bundle/matchit.zip
  18. +0 −1  vim/bundle/neocomplcache
  19. +0 −1  vim/bundle/neosnippet
  20. +0 −1  vim/bundle/nerdcommenter
  21. +0 −1  vim/bundle/nerdtree
  22. +0 −1  vim/bundle/numbers.vim
  23. +0 −1  vim/bundle/python-mode
  24. +0 −1  vim/bundle/python.vim
  25. +0 −1  vim/bundle/python_match.vim
  26. +0 −1  vim/bundle/pythoncomplete
  27. +0 −1  vim/bundle/restore_view.vim
  28. +0 −1  vim/bundle/sessionman.vim
  29. +0 −1  vim/bundle/syntastic
  30. +0 −1  vim/bundle/tabular
  31. +0 −1  vim/bundle/tagbar
  32. +0 −1  vim/bundle/tlib_vim
  33. +0 −1  vim/bundle/undotree
  34. +0 −1  vim/bundle/vim-abolish
  35. +0 −1  vim/bundle/vim-addon-mw-utils
  36. +0 −1  vim/bundle/vim-airline
  37. +0 −1  vim/bundle/vim-autoclose
  38. +0 −1  vim/bundle/vim-coffee-script
  39. +0 −1  vim/bundle/vim-colors
  40. +0 −1  vim/bundle/vim-colors-solarized
  41. +0 −1  vim/bundle/vim-colorschemes
  42. +0 −1  vim/bundle/vim-cucumber
  43. +0 −1  vim/bundle/vim-cucumber-align-pipes
  44. +0 −1  vim/bundle/vim-easymotion
  45. +0 −1  vim/bundle/vim-fugitive
  46. +0 −1  vim/bundle/vim-gitgutter
  47. +0 −1  vim/bundle/vim-gocode
  48. +0 −1  vim/bundle/vim-golang
  49. +0 −1  vim/bundle/vim-indent-guides
  50. +0 −1  vim/bundle/vim-javascript
  51. +0 −1  vim/bundle/vim-json
  52. +0 −1  vim/bundle/vim-jst
  53. +0 −1  vim/bundle/vim-less
  54. +0 −1  vim/bundle/vim-markdown
  55. +0 −1  vim/bundle/vim-multiple-cursors
  56. +0 −1  vim/bundle/vim-nerdtree-tabs
  57. +0 −1  vim/bundle/vim-preview
  58. +0 −1  vim/bundle/vim-snippets
  59. +0 −1  vim/bundle/vim-surround
  60. +0 −1  vim/bundle/vundle
  61. +0 −1  vim/bundle/webapi-vim
  62. +0 −7 vim/ftplugin/gitcommit.vim
  63. +0 −292 vim/highlight.vim
  64. +0 −4 vim/plugin/settings/NERDtree-tabs.vim
  65. +0 −4 vim/plugin/settings/NERDtree.vim
  66. +0 −9 vim/plugin/settings/README.md
  67. +0 −7 vim/plugin/settings/abbr.vim
  68. +0 −3  vim/plugin/settings/autotag.vim
  69. +0 −7 vim/plugin/settings/camelcasemotion.vim
  70. +0 −1  vim/plugin/settings/coffeescript.vim
  71. +0 −10 vim/plugin/settings/conqueterm.vim
  72. +0 −40 vim/plugin/settings/ctrlp.vim
  73. +0 −5 vim/plugin/settings/fugitive.git
  74. +0 −24 vim/plugin/settings/git-grep.vim
  75. +0 −7 vim/plugin/settings/gundo.vim
  76. +0 −3  vim/plugin/settings/lusty-juggler.vim
  77. +0 −39 vim/plugin/settings/neocomplcache.vim
  78. +0 −29 vim/plugin/settings/next-textobject.vim
  79. +0 −20 vim/plugin/settings/open-changed-files.vim
  80. +0 −7 vim/plugin/settings/persistent-undo.vim
  81. +0 −3  vim/plugin/settings/powerline.vim
  82. +0 −9 vim/plugin/settings/quickfix-search.vim
  83. +0 −3  vim/plugin/settings/rails.vim
  84. +0 −22 vim/plugin/settings/rspec_pending_to_xit.vim
  85. +0 −2  vim/plugin/settings/showmarks.vim
  86. +0 −20 vim/plugin/settings/solarized.vim
  87. +0 −12 vim/plugin/settings/surround.vim
  88. +0 −8 vim/plugin/settings/syntastic.vim
  89. +0 −8 vim/plugin/settings/tComment.vim
  90. +0 −3  vim/plugin/settings/tagbar.vim
  91. +0 −10 vim/plugin/settings/unimpaired.vim
  92. +0 −3  vim/plugin/settings/vim-indent-guides.vim
  93. +0 −1  vim/plugin/settings/vim-marks.vim
  94. +0 −4 vim/plugin/settings/vim-ruby-conque.vim
  95. +0 −17 vim/plugin/settings/vim-ruby-debugger.vim
  96. +0 −23 vim/plugin/settings/yadr-appearance.vim
  97. +0 −6 vim/plugin/settings/yadr-guioptions.vim
  98. +0 −248 vim/plugin/settings/yadr-keymap.vim
  99. +0 −3  vim/plugin/settings/yadr-sudo-write.vim
  100. +0 −15 vim/plugin/settings/yadr-whitespace-killer.vim
  101. +0 −20 vim/plugin/settings/yadr-window-killer.vim
  102. +0 −20 vim/plugin/settings/yadr-wrapping.vim
  103. +0 −1  vim/plugin/settings/yankring.vim
7 oh-my-zsh/README
View
@@ -1,7 +0,0 @@
-The themes/ dir contains themes for oh-my-zsh Robby,
-while modules contains themes for oh-my-zsh Sorin Ionescu.
-
-The themes dir will eventually be deprecated in favor
-of Sorin's OMZ branch.
-
-See more at: https://github.com/sorin-ionescu/oh-my-zsh
92 oh-my-zsh/modules/prompt/functions/prompt_skwp_setup
View
@@ -1,92 +0,0 @@
-#
-# A theme based on steeef theme
-# * RVM info shown on the right
-# * Git branch info on the left
-# * Single line prompt
-#
-# Authors:
-# Steve Losh <steve@stevelosh.com>
-# Bart Trojanowski <bart@jukie.net>
-# Brian Carper <brian@carper.ca>
-# steeef <steeef@gmail.com>
-# Sorin Ionescu <sorin.ionescu@gmail.com>
-# Yan Pritzker <yan@pritzker.ws>
-
-function rvm_info_for_prompt {
- ruby_version=$(~/.rvm/bin/rvm-prompt)
- if [ -n "$ruby_version" ]; then
- echo "[$ruby_version]"
- fi
-}
-
-function prompt_skwp_precmd {
- # Check for untracked files or updated submodules since vcs_info doesn't.
- if [[ ! -z $(git ls-files --other --exclude-standard 2> /dev/null) ]]; then
- fmt_branch="(${__PROMPT_SKWP_COLORS[1]}%b%f%u%c${__PROMPT_SKWP_COLORS[4]}●%f)"
- else
- fmt_branch="(${__PROMPT_SKWP_COLORS[1]}%b%f%u%c)"
- fi
- zstyle ':vcs_info:*:prompt:*' formats "${fmt_branch}"
-
- vcs_info 'prompt'
-}
-
-function prompt_skwp_setup {
- setopt LOCAL_OPTIONS
- unsetopt XTRACE KSH_ARRAYS
- prompt_opts=(cr percent subst)
-
- autoload -Uz add-zsh-hook
- autoload -Uz vcs_info
-
- add-zsh-hook precmd prompt_skwp_precmd
-
- # Use extended color pallete if available.
- if [[ $TERM = *256color* || $TERM = *rxvt* ]]; then
- __PROMPT_SKWP_COLORS=(
- "%F{81}" # turquoise
- "%F{166}" # orange
- "%F{135}" # purple
- "%F{161}" # hotpink
- "%F{118}" # limegreen
- )
- else
- __PROMPT_SKWP_COLORS=(
- "%F{cyan}"
- "%F{yellow}"
- "%F{magenta}"
- "%F{red}"
- "%F{green}"
- )
- fi
-
- # Enable VCS systems you use.
- zstyle ':vcs_info:*' enable bzr git hg svn
-
- # check-for-changes can be really slow.
- # You should disable it if you work with large repositories.
- zstyle ':vcs_info:*:prompt:*' check-for-changes true
-
- # Formats:
- # %b - branchname
- # %u - unstagedstr (see below)
- # %c - stagedstr (see below)
- # %a - action (e.g. rebase-i)
- # %R - repository path
- # %S - path in the repository
- local fmt_branch="(${__PROMPT_SKWP_COLORS[1]}%b%f%u%c)"
- local fmt_action="(${__PROMPT_SKWP_COLORS[5]}%a%f)"
- local fmt_unstaged="${__PROMPT_SKWP_COLORS[2]}●%f"
- local fmt_staged="${__PROMPT_SKWP_COLORS[5]}●%f"
-
- zstyle ':vcs_info:*:prompt:*' unstagedstr "${fmt_unstaged}"
- zstyle ':vcs_info:*:prompt:*' stagedstr "${fmt_staged}"
- zstyle ':vcs_info:*:prompt:*' actionformats "${fmt_branch}${fmt_action}"
- zstyle ':vcs_info:*:prompt:*' formats "${fmt_branch}"
- zstyle ':vcs_info:*:prompt:*' nvcsformats ""
-
- PROMPT="${__PROMPT_SKWP_COLORS[3]}%n%f@${__PROMPT_SKWP_COLORS[2]}%m%f ${__PROMPT_SKWP_COLORS[5]}%~%f "'${vcs_info_msg_0_}'"$ "
- RPROMPT="%F{blue}"'$(rvm_info_for_prompt)'""
-}
-
-prompt_skwp_setup "$@"
16 oh-my-zsh/themes/jreese.zsh-theme
View
@@ -1,16 +0,0 @@
-# ZSH Theme - Preview: http://dl.dropbox.com/u/1552408/Screenshots/2010-04-08-oh-my-zsh.png
-
-if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
-local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
-
-PROMPT='%{$fg[$NCOLOR]%}%n%{$fg[green]%}@%m%{$reset_color%} %~ \
-$(git_prompt_info)\
-%{$fg[red]%}%(!.#.»)%{$reset_color%} '
-PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
-RPS1='${return_code}'
-
-ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}±%{$fg[yellow]%}"
-ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
-ZSH_THEME_GIT_PROMPT_CLEAN=""
-ZSH_THEME_GIT_PROMPT_DIRTY="⚡"
-
BIN  oh-my-zsh/themes/kylewest.png
View
Deleted file not rendered
30 oh-my-zsh/themes/kylewest.zsh-theme
View
@@ -1,30 +0,0 @@
-function zle-line-init zle-keymap-select {
- zle reset-prompt
-}
-zle -N zle-line-init
-zle -N zle-keymap-select
-
-bindkey -v
-
-local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
-
-ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}- %{$fg[yellow]%}["
-ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%} "
-ZSH_THEME_GIT_PROMPT_CLEAN=""
-ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}*%{$fg[yellow]%}"
-
-ZSH_THEME_VI_MODE_COMMAND="%{$fg_bold[magenta]%}<#%{$reset_color%}"
-ZSH_THEME_VI_MODE_INSERT="%{$fg_bold[green]%}$>%{$reset_color%}"
-
-vi_mode_prompt_info () {
- if [[ ${KEYMAP} = 'vicmd' ]]
- then
- echo $ZSH_THEME_VI_MODE_COMMAND
- else
- echo $ZSH_THEME_VI_MODE_INSERT
- fi
-}
-
-PROMPT='%{$fg[green]%}%c $(git_prompt_info)$(vi_mode_prompt_info) '
-PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
-RPS1='%{$fg[blue]%}%~%{$reset_color%} ${return_code} '
24 oh-my-zsh/themes/skwp.zsh-theme
View
@@ -1,24 +0,0 @@
-# Simple theme with RVM prompt
-function preexec() {
- typeset -gi CALCTIME=1
- typeset -gi CMDSTARTTIME=SECONDS
-}
-function precmd() {
- if (( CALCTIME )) ; then
- typeset -gi ETIME=SECONDS-CMDSTARTTIME
- fi
- typeset -gi CALCTIME=0
-}
-function safe-rvm-prompt() {
- if [[ -d ~/.rvm/ ]]; then
- rvm-prompt
- fi
-}
-
-PROMPT='%{$fg[blue]%}%~%{$fg_bold[yellow]%}$(git_prompt_info)%{$reset_color%}%{$fg[blue]%}➤ %{$reset_color%}'
-RPROMPT='%{$fg[blue]%}$(safe-rvm-prompt i v p g) [${ETIME}s] %{$reset_color%}'
-
-ZSH_THEME_GIT_PROMPT_PREFIX=" "
-ZSH_THEME_GIT_PROMPT_SUFFIX=" "
-ZSH_THEME_GIT_PROMPT_DIRTY=" ✗"
-ZSH_THEME_GIT_PROMPT_CLEAN=" ✔"
BIN  vim/.DS_Store
View
Binary file not shown
5 vim/.gitignore
View
@@ -1,5 +0,0 @@
-tags
-*~
-*.swp
-.VimballRecord
-view
4 vim/README.snipMate
View
@@ -1,4 +0,0 @@
-We are purposefully including an older version of snipMate (0.84) from mikefarmer's repo
-so that it works with the long list of snippets available from the scrooloose/snippets
-collection. The current mainline snipMate seems to be no longer compatible with those
-snippets, but the scrooloose collection is still the best one to use.
32 vim/after/plugin/vimrc_after.vim
View
@@ -1,32 +0,0 @@
-" https://github.com/carlhuda/janus/blob/master/janus/vim/core/janus/after/plugin/vimrc_after.vim
-" Customization
-"
-" This loads after the janus plugins so that janus-specific plugin mappings can
-" be overwritten.
-
-if filereadable(expand("~/.vimrc.after"))
- source ~/.vimrc.after
-endif
-
-command! -complete=shellcmd -nargs=+ Shell call s:RunShellCommand(<q-args>)
-function! s:RunShellCommand(cmdline)
- echo a:cmdline
- let expanded_cmdline = a:cmdline
- for part in split(a:cmdline, ' ')
- if part[0] =~ '\v[%#<]'
- let expanded_part = fnameescape(expand(part))
- let expanded_cmdline = substitute(expanded_cmdline, part, expanded_part, '')
- endif
- endfor
- botright new
- setlocal buftype=nofile bufhidden=wipe nobuflisted noswapfile nowrap
- call setline(1, 'You entered: ' . a:cmdline)
- call setline(2, 'Expanded Form: ' .expanded_cmdline)
- call setline(3,substitute(getline(2),'.','=','g'))
- execute '$read !'. expanded_cmdline
- setlocal nomodifiable
- 1
-endfunction
-
-au! BufRead,BufWrite,BufWritePost,BufNewFile *.org
-au BufEnter *.org call org#SetOrgFileType()
BIN  vim/bundle/.DS_Store
View
Binary file not shown
1  vim/bundle/HTML-AutoCloseTag
@@ -1 +0,0 @@
-Subproject commit c2f6f59cf5c08dd487ef361f93ba09317a840e25
1  vim/bundle/csapprox
@@ -1 +0,0 @@
-Subproject commit 7981dac51d8b6776985aa08cb7b5ee98ea7f2ddd
1  vim/bundle/ctrlp.vim
@@ -1 +0,0 @@
-Subproject commit b5d3fe66a58a13d2ff8b6391f4387608496a030f
1  vim/bundle/gist-vim
@@ -1 +0,0 @@
-Subproject commit 1aed2e01b0e124295b705ae5b6de8ea3c82a2a2b
1  vim/bundle/mark-2.8.0
@@ -1 +0,0 @@
-Subproject commit cfd5f72ceb2fe34f4cb8952abe1027897e1e9540
1  vim/bundle/matchit.zip
@@ -1 +0,0 @@
-Subproject commit ced6c409c9beeb0b4142d21906606bd194411d1d
1  vim/bundle/neocomplcache
@@ -1 +0,0 @@
-Subproject commit a54079968b268e4fe8843290b23c410c1af619c5
1  vim/bundle/neosnippet
@@ -1 +0,0 @@
-Subproject commit b7ec09cf4dbf8aed67fbb111a2e60a9dc433d48e
1  vim/bundle/nerdcommenter
@@ -1 +0,0 @@
-Subproject commit 0b3d928dce8262dedfc2f83b9aeb59a94e4f0ae4
1  vim/bundle/nerdtree
@@ -1 +0,0 @@
-Subproject commit b0bb781fc73ef40365e4c996a16f04368d64fc9d
1  vim/bundle/numbers.vim
@@ -1 +0,0 @@
-Subproject commit d46a31996482d41b754fc5010f545ef0c3d4c3d6
1  vim/bundle/python-mode
@@ -1 +0,0 @@
-Subproject commit a9afe07f2ad1be958a302d6ca764e8ff00d0954f
1  vim/bundle/python.vim
@@ -1 +0,0 @@
-Subproject commit 0877af4dffe6d86439f8069b510129527ce38b27
1  vim/bundle/python_match.vim
@@ -1 +0,0 @@
-Subproject commit 20bb437d265544e7b8022b04cf2d6553d5f233ed
1  vim/bundle/pythoncomplete
@@ -1 +0,0 @@
-Subproject commit cf74ca3f94258eb9ebe1bc8345532c3eb443923d
1  vim/bundle/restore_view.vim
@@ -1 +0,0 @@
-Subproject commit 82927448641c9dec2044666b475b2074dbc1e94b
1  vim/bundle/sessionman.vim
@@ -1 +0,0 @@
-Subproject commit 8e9fcc41152e8456048bad1a44918eb84821db45
1  vim/bundle/syntastic
@@ -1 +0,0 @@
-Subproject commit 3eb51f1e26bbc7e1682a68516ebc8acb74011717
1  vim/bundle/tabular
@@ -1 +0,0 @@
-Subproject commit 60f25648814f0695eeb6c1040d97adca93c4e0bb
1  vim/bundle/tagbar
@@ -1 +0,0 @@
-Subproject commit 3c37ddcc140ed4f5aa1b85f0dc476b410d1bacb3
1  vim/bundle/tlib_vim
@@ -1 +0,0 @@
-Subproject commit e585a338fd755d44f377224e5982db158c836934
1  vim/bundle/undotree
@@ -1 +0,0 @@
-Subproject commit f99c22e08e7f4787bf4ba6937f5df942a285efec
1  vim/bundle/vim-abolish
@@ -1 +0,0 @@
-Subproject commit d64ce06650cf9b098b5a01c0db53864965d9310b
1  vim/bundle/vim-addon-mw-utils
@@ -1 +0,0 @@
-Subproject commit 0c5612fa31ee434ba055e21c76f456244b3b5109
1  vim/bundle/vim-airline
@@ -1 +0,0 @@
-Subproject commit 0860d2f525f488c999d4f0718827e87c705c835a
1  vim/bundle/vim-autoclose
@@ -1 +0,0 @@
-Subproject commit c098b4f45da6232e66c14898ff6b197f360a29cc
1  vim/bundle/vim-coffee-script
@@ -1 +0,0 @@
-Subproject commit 7130a14289eb338ba2a670cbe3e0898928ea574f
1  vim/bundle/vim-colors
@@ -1 +0,0 @@
-Subproject commit 9522f2f17cfdf249eac0a0c5b25d65040d0909ce
1  vim/bundle/vim-colors-solarized
@@ -1 +0,0 @@
-Subproject commit 528a59f26d12278698bb946f8fb82a63711eec21
1  vim/bundle/vim-colorschemes
@@ -1 +0,0 @@
-Subproject commit f134dd5726732a74e05edacc9a795006b984b82f
1  vim/bundle/vim-cucumber
@@ -1 +0,0 @@
-Subproject commit 9e686ad36da43eae7462612fb8123bd47ea16171
1  vim/bundle/vim-cucumber-align-pipes
@@ -1 +0,0 @@
-Subproject commit 49c59fe88302b95dc96637e38f964cae5d7c89bb
1  vim/bundle/vim-easymotion
@@ -1 +0,0 @@
-Subproject commit 667a668e114e9ec0e5d4cbcb0962d835b23614c4
1  vim/bundle/vim-fugitive
@@ -1 +0,0 @@
-Subproject commit 124550cfee33a1bb9a227e78ccc709317a89dae9
1  vim/bundle/vim-gitgutter
@@ -1 +0,0 @@
-Subproject commit 878c3422c9ad9edc7b907948515b3118d91a67d1
1  vim/bundle/vim-gocode
@@ -1 +0,0 @@
-Subproject commit f9d0de3f90970711b5fe76e736de90a866123fcb
1  vim/bundle/vim-golang
@@ -1 +0,0 @@
-Subproject commit e4f4d6ded00b498e517939f9b01c828ec44de110
1  vim/bundle/vim-indent-guides
@@ -1 +0,0 @@
-Subproject commit eec1b629dc4cfa3986d20f21d4b4489732cd3f5a
1  vim/bundle/vim-javascript
@@ -1 +0,0 @@
-Subproject commit 932b675412e28149d00ba3e0f0669c5a73d181b3
1  vim/bundle/vim-json
@@ -1 +0,0 @@
-Subproject commit 752e607ba78550de6ddace4f009ced4c5f7ae395
1  vim/bundle/vim-jst
@@ -1 +0,0 @@
-Subproject commit a0c3283be10c2bb6ac2247f09f16e7b7b034d902
1  vim/bundle/vim-less
@@ -1 +0,0 @@
-Subproject commit 020f0747eaa3a8220b7dbbc529e7f35523f364a0
1  vim/bundle/vim-markdown
@@ -1 +0,0 @@
-Subproject commit fccf76f68fa819629e9dac50a20f3369983e2a38
1  vim/bundle/vim-multiple-cursors
@@ -1 +0,0 @@
-Subproject commit 35028be1f71953da9f2c28509bf6c5ebd1d31c28
1  vim/bundle/vim-nerdtree-tabs
@@ -1 +0,0 @@
-Subproject commit e222113e6eeaba1c13d0201b349468bdfe5398f1
1  vim/bundle/vim-preview
@@ -1 +0,0 @@
-Subproject commit ac138697f3e1bf8747397270c1940d9103d53302
1  vim/bundle/vim-snippets
@@ -1 +0,0 @@
-Subproject commit dec4556898a3287a2e9244835e765b5198121355
1  vim/bundle/vim-surround
@@ -1 +0,0 @@
-Subproject commit 9bf527af3ae7338346ca9f0657dc077722d517f7
1  vim/bundle/vundle
@@ -1 +0,0 @@
-Subproject commit c3ec8796944a372c6d44496ad6113e7d2e74331e
1  vim/bundle/webapi-vim
@@ -1 +0,0 @@
-Subproject commit 1ebf9b3af362663e4f87b6f9c1648742df2689d2
7 vim/ftplugin/gitcommit.vim
View
@@ -1,7 +0,0 @@
-if exists("b:did_ftplugin")
- finish
-endif
-
-let b:did_ftplugin = 1 " Don't load twice in one buffer
-
-setlocal spell
292 vim/highlight.vim
View
@@ -1,292 +0,0 @@
-" File: highlight.vim
-" Author: Amit Sethi <amitrajsethi@yahoo.com>
-" Version: 1.6
-" Last Modified: Tue Apr 12 15:18:16 IST 2011
-" Description: Highlight lines or patterns of interest in different colors
-" Uasge:
-" Line mode
-" <C-h><C-h> Highlight current line
-" <C-h><C-a> Advance color for next line highlight
-" <C-h><C-r> Clear last line highlight
-"
-" Pattern mode
-" <C-h><C-w> Highlight word under cursor (whole word match)
-" <C-h><C-l> Highlight all lines having word under cursor (whole word match)
-" <C-h><C-f> Highlight word under cursor (partial word match)
-" <C-h><C-k> Highlight all lines having word under cursor (partial word match)
-" <C-h><C-s> Highlight last search pattern
-" <C-h><C-j> Highlight all lines having last search pattern
-" <C-h><C-d> Clear last pattern highlight
-"
-" <C-h><C-n> Clear all highlights
-"
-" All above commands work in both normal & insert modes.
-" <C-h><C-h> also works in visual mode. (Select desired lines & hit <C-h><C-h>)
-"
-" Installation:
-" Copy highlight.vim to your .vim/plugin directory
-"
-" Configuration:
-" To define custom colors set the following variables
-" g:lcolor_bg - Background color for line highlighting
-" g:lcolor_fg - Foreground color for line highlighting
-" g:pcolor_bg - Background color for pattern highlighting
-" g:pcolor_fg - Foreground color for pattern highlighting
-"
-" Limitation:
-" If you are using syntax highlighting based on keywords (e.g. language
-" specific keyword highlighting), then while highlighting lines, if the
-" line starts with a keyword, then sometimes that keyword is not highlighted,
-" while the rest of the line is hightlighted normally.
-"
-"
-" Acknowledgement:
-" Thanks to Min Kyu Jeong (mkjeong@gmail.com) for contributions to make this
-" script work in Console mode (Ver 1.6)
-"
-
-
-if exists("loaded_highlight")
- finish
-endif
-let loaded_highlight = ""
-
-syntax on
-
-" -- Normal mode mappings --
-
-" Highlight current line
-noremap <silent> <C-h><C-h> :call <SID>Highlight("h") \| nohls<CR>
-" Advance color for next line highlight
-noremap <silent> <C-h><C-a> :call <SID>Highlight("a")<CR>
-" Clear last line highlight
-noremap <silent> <C-h><C-r> :call <SID>Highlight("r")<CR>
-
-" Highlight word under cursor (whole word match)
-noremap <silent> <C-h><C-w> :call <SID>Highlight("w") \| nohls<CR>
-" Highlight all lines having word under cursor (whole word match)
-noremap <silent> <C-h><C-l> :call <SID>Highlight("l") \| nohls<CR>
-" Highlight word under cursor (partial word match)
-noremap <silent> <C-h><C-f> :call <SID>Highlight("f") \| nohls<CR>
-" Highlight all lines having word under cursor (partial word match)
-noremap <silent> <C-h><C-k> :call <SID>Highlight("k") \| nohls<CR>
-" Highlight last search pattern
-noremap <silent> <C-h><C-s> :call <SID>Highlight("s") \| nohls<CR>
-" Highlight all lines having last search pattern
-noremap <silent> <C-h><C-j> :call <SID>Highlight("j") \| nohls<CR>
-" Clear last pattern highlight
-noremap <silent> <C-h><C-d> :call <SID>Highlight("d")<CR>
-
-" Clear all highlights
-noremap <silent> <C-h><C-n> :call <SID>Highlight("n")<CR>
-
-
-" -- Insert mode mappings --
-
-" Highlight current line
-inoremap <silent> <C-h><C-h> <C-o>:call <SID>Highlight("h")<CR>
-" Advance color for next line highlight
-inoremap <silent> <C-h><C-a> <C-o>:call <SID>Highlight("a")<CR>
-" Clear last line highlight
-inoremap <silent> <C-h><C-r> <C-o>:call <SID>Highlight("r")<CR>
-
-" Highlight word under cursor (whole word match)
-inoremap <silent> <C-h><C-w> <C-o>:call <SID>Highlight("w") \| nohls<CR>
-" Highlight all lines having word under cursor (whole word match)
-inoremap <silent> <C-h><C-l> <C-o>:call <SID>Highlight("l") \| nohls<CR>
-" Highlight word under cursor (partial word match)
-inoremap <silent> <C-h><C-f> <C-o>:call <SID>Highlight("f") \| nohls<CR>
-" Highlight all lines having word under cursor (partial word match)
-inoremap <silent> <C-h><C-k> <C-o>:call <SID>Highlight("k") \| nohls<CR>
-" Highlight last search pattern
-inoremap <silent> <C-h><C-s> <C-o>:call <SID>Highlight("s") \| nohls<CR>
-" Highlight all lines having last search pattern
-inoremap <silent> <C-h><C-j> <C-o>:call <SID>Highlight("j") \| nohls<CR>
-" Clear last pattern highlight
-inoremap <silent> <C-h><C-d> <C-o>:call <SID>Highlight("d")<CR>
-
-" Clear all highlights
-inoremap <silent> <C-h><C-n> <C-o>:call <SID>Highlight("n")<CR>
-
-
-" Define colors for Line highlight
-if !exists('g:lcolor_bg')
- let g:lcolor_bg = "purple,seagreen,violet,lightred,lightgreen,lightblue,darkmagenta,slateblue"
-endif
-
-if !exists('g:lcolor_fg')
- let g:lcolor_fg = "white,white,black,black,black,black,white,white"
-endif
-
-if !exists('g:lcolor_bg_cterm')
- let g:lcolor_bg_cterm = "Blue,Green,Cyan,Red,Yellow,Magenta,Brown,LightGray"
-endif
-
-if !exists('g:lcolor_fg_cterm')
- let g:lcolor_fg_cterm = "White,White,White,White,White,White,Black,Black"
-endif
-
-" Define colors for Pattern highlight
-if !exists('g:pcolor_bg')
- let g:pcolor_bg = "yellow,blue,green,magenta,cyan,brown,orange,red"
-endif
-
-if !exists('g:pcolor_fg')
- let g:pcolor_fg = "black,white,black,white,black,white,black,white"
-endif
-
-if !exists('g:pcolor_bg_cterm')
- let g:pcolor_bg_cterm = "DarkBlue,DarkGreen,DarkCyan,DarkRed,Yellow,Magenta,Brown,LightGray"
-endif
-
-if !exists('g:pcolor_fg_cterm')
- let g:pcolor_fg_cterm = "White,Black,White,White,White,White,Black,Black"
-endif
-
-
-" Highlight: Highlight line or pattern
-function! <SID>Highlight(mode)
- " Line mode
- if a:mode == 'h'
- let match_pat = '.*\%'.line(".").'l.*'
- "echo 'syn match '. s:lcolor_grp . s:lcolor_n . ' "' . match_pat . '" containedin=ALL'
- exec 'syn match '. s:lcolor_grp . s:lcolor_n . ' "' . match_pat . '" containedin=ALL'
- elseif a:mode == 'a'
- let s:lcolor_n = s:lcolor_n == s:lcolor_max - 1 ? 0 : s:lcolor_n + 1
- elseif a:mode == 'r'
- exec 'syn clear ' . s:lcolor_grp . s:lcolor_n
- let s:lcolor_n = s:lcolor_n == 0 ? 0 : s:lcolor_n - 1
- else
- endif
-
- let cur_word = a:mode == 's' || a:mode == 'j' ? @/ : expand("<cword>")
-
- " Pattern mode
- if cur_word == ""
- " do nothing
- elseif a:mode == 'f' || a:mode == 's'
- let s:pcolor_n = s:pcolor_n == s:pcolor_max - 1 ? 1 : s:pcolor_n + 1
- exec 'syn match ' . s:pcolor_grp . s:pcolor_n . ' "' . cur_word . '" containedin=ALL'
- elseif a:mode == 'w'
- let s:pcolor_n = s:pcolor_n == s:pcolor_max - 1 ? 1 : s:pcolor_n + 1
- exec 'syn match ' . s:pcolor_grp . s:pcolor_n . ' "\<' . cur_word . '\>" containedin=ALL'
- elseif a:mode == 'k' || a:mode == 'j'
- let s:pcolor_n = s:pcolor_n == s:pcolor_max - 1 ? 1 : s:pcolor_n + 1
- exec 'syn match ' . s:pcolor_grp . s:pcolor_n . ' ".*' . cur_word . '.*" containedin=ALL'
- elseif a:mode == 'l'
- let s:pcolor_n = s:pcolor_n == s:pcolor_max - 1 ? 1 : s:pcolor_n + 1
- exec 'syn match ' . s:pcolor_grp . s:pcolor_n . ' ".*\<' . cur_word . '\>.*" containedin=ALL'
- elseif a:mode == 'd'
- exec 'syn clear ' . s:pcolor_grp . s:pcolor_n
- let s:pcolor_n = s:pcolor_n == 0 ? 0 : s:pcolor_n - 1
- else
- endif
-
- " Clean all
- if a:mode == 'n'
- let ccol = 0
- while ccol < s:lcolor_max
- exec 'syn clear '. s:lcolor_grp . ccol
- let ccol = ccol + 1
- endw
-
- let ccol = 0
- while ccol < s:pcolor_max
- exec 'syn clear '. s:pcolor_grp . ccol
- let ccol = ccol + 1
- endw
-
- let s:lcolor_n = 0
- let s:pcolor_n = 0
- else
- endif
-
-endfunction
-
-" Strntok: Utility function to implement C-like strntok() by Michael Geddes
-" and Benji Fisher at http://groups.yahoo.com/group/vimdev/message/26788
-function! s:Strntok( s, tok, n)
- return matchstr( a:s.a:tok[0], '\v(\zs([^'.a:tok.']*)\ze['.a:tok.']){'.a:n.'}')
-endfun
-
-" ItemCount: Returns the number of items in the given string.
-" Developed by Dan Sharp in MultipleSearch2.vim at
-" http://www.vim.org/scripts/script.php?script_id=1183
-function! s:ItemCount(string)
- let itemCount = 0
- let newstring = a:string
- let pos = stridx(newstring, ',')
- while pos > -1
- let itemCount = itemCount + 1
- let newstring = strpart(newstring, pos + 1)
- let pos = stridx(newstring, ',')
- endwhile
- return itemCount
-endfunction
-
-" Min: Returns the minimum of the given parameters.
-" Developed by Dan Sharp in MultipleSearch2.vim at
-" http://www.vim.org/scripts/script.php?script_id=1183
-function! s:Min(...)
- let min = a:1
- let index = 2
- while index <= a:0
- execute "if min > a:" . index . " | let min = a:" . index . " | endif"
- let index = index + 1
- endwhile
- return min
-endfunction
-
-" HighlightInitL: Initialize the highlight groups for line highlight
-" Based on 'MultipleSearchInit' function developed by Dan Sharp in
-" MultipleSearch2.vim at http://www.vim.org/scripts/script.php?script_id=1183
-function! s:HighlightInitL()
- let s:lcolor_grp = "LHiColor"
- let s:lcolor_n = 0
-
- let s:lcolor_max = s:Min(s:ItemCount(g:lcolor_bg . ','), s:ItemCount(g:lcolor_fg . ','))
-
- let ci = 0
- while ci < s:lcolor_max
- let bgColor = s:Strntok(g:lcolor_bg, ',', ci + 1)
- let fgColor = s:Strntok(g:lcolor_fg, ',', ci + 1)
- let bgColor_cterm = s:Strntok(g:lcolor_bg_cterm, ',', ci + 1)
- let fgColor_cterm = s:Strntok(g:lcolor_fg_cterm, ',', ci + 1)
-
- exec 'hi ' . s:lcolor_grp . ci .
- \ ' guifg =' . fgColor . ' guibg=' . bgColor
- \ ' ctermfg =' . fgColor_cterm . ' ctermbg=' . bgColor_cterm
-
- let ci = ci + 1
- endw
-endfunction
-
-" HighlightInitP: Initialize the highlight groups for line highlight
-" Based on 'MultipleSearchInit' function developed by Dan Sharp in
-" MultipleSearch2.vim at http://www.vim.org/scripts/script.php?script_id=1183
-function! s:HighlightInitP()
- let s:pcolor_grp = "PHiColor"
- let s:pcolor_n = 0
-
- let s:pcolor_max = s:Min(s:ItemCount(g:pcolor_bg . ','), s:ItemCount(g:pcolor_fg . ','))
-
- let ci = 0
- while ci < s:pcolor_max
- let bgColor = s:Strntok(g:pcolor_bg, ',', ci + 1)
- let fgColor = s:Strntok(g:pcolor_fg, ',', ci + 1)
- let bgColor_cterm = s:Strntok(g:pcolor_bg_cterm, ',', ci + 1)
- let fgColor_cterm = s:Strntok(g:pcolor_fg_cterm, ',', ci + 1)
-
- exec 'hi ' . s:pcolor_grp . ci .
- \ ' guifg =' . fgColor . ' guibg=' . bgColor
- \ ' ctermfg =' . fgColor_cterm . ' ctermbg=' . bgColor_cterm
-
- let ci = ci + 1
- endw
-endfunction
-
-
-call s:HighlightInitL()
-call s:HighlightInitP()
-
-
4 vim/plugin/settings/NERDtree-tabs.vim
View
@@ -1,4 +0,0 @@
-" Auto open nerd tree on startup
-let g:nerdtree_tabs_open_on_gui_startup = 0
-" Focus in the main content window
-let g:nerdtree_tabs_focus_on_files = 1
4 vim/plugin/settings/NERDtree.vim
View
@@ -1,4 +0,0 @@
-" Make nerdtree look nice
-let NERDTreeMinimalUI = 1
-let NERDTreeDirArrows = 1
-let g:NERDTreeWinSize = 30
9 vim/plugin/settings/README.md
View
@@ -1,9 +0,0 @@
-This directory contains settings for various vim plugins and vim itself.
-
-## Plugin Settings
-
-Each plugin's overrides/settings should be put in a separate file named `{plugin-name}.vim`.
-
-## Vim Settings
-
-General vim overrides/settings should be put in a separate file named `yadr-{descriptive-name}.vim`.
7 vim/plugin/settings/abbr.vim
View
@@ -1,7 +0,0 @@
-"Abbreviations, trigger by typing the abbreviation and hitting space
-
-abbr rlb Rails.logger.banner
-abbr rld Rails.logger.debug
-abbr pry! require 'pry'; binding.pry
-
-abbr putsd puts "[DEBUG] - " if debug
3  vim/plugin/settings/autotag.vim
View
@@ -1,3 +0,0 @@
-" AutoTag
-" Seems to have problems with some vim files
-let g:autotagExcludeSuffixes="tml.xml.text.txt.vim"
7 vim/plugin/settings/camelcasemotion.vim
View
@@ -1,7 +0,0 @@
-map W <Plug>CamelCaseMotion_w
-map B <Plug>CamelCaseMotion_b
-map E <Plug>CamelCaseMotion_e
-
-sunmap W
-sunmap B
-sunmap E
1  vim/plugin/settings/coffeescript.vim
View
@@ -1 +0,0 @@
-au BufWritePost *.coffee silent CoffeeMake! -b | cwindow | redraw!
10 vim/plugin/settings/conqueterm.vim
View
@@ -1,10 +0,0 @@
-let g:ConqueTerm_InsertOnEnter = 0
-let g:ConqueTerm_CWInsert = 1
-let g:ConqueTerm_Color = 2
-let g:ConqueTerm_ReadUnfocused = 1 " update conqueterm buffer while we're not looking (for running tests)
-
-" Open up a variety of commands in the ConqueTerm
-nmap <silent> <Leader>cc :execute 'ConqueTermSplit script/console --irb=pry'<CR>
-nmap <silent> <Leader>pp :execute 'ConqueTermSplit pry'<CR>
-
-let g:ConqueTerm_SendVisKey = '<Leader>e'
40 vim/plugin/settings/ctrlp.vim
View
@@ -1,40 +0,0 @@
-let g:ctrlp_custom_ignore = '\.git$\|\.hg$\|\.svn$'
-
-" Default to filename searches - so that appctrl will find application
-" controller
-let g:ctrlp_by_filename = 1
-
-" We don't want to use Ctrl-p as the mapping because
-" it interferes with YankRing (paste, then hit ctrl-p)
-let g:ctrlp_map = ',t'
-nnoremap <silent> ,t :CtrlPMixed<CR>
-
-" Additional mapping for buffer search
-nnoremap <silent> ,b :CloseSingleConque<CR>:CtrlPBuffer<cr>
-nnoremap <silent> <C-b> :CloseSingleConque<CR>:CtrlPBuffer<cr>
-
-" Cmd-Shift-P to clear the cache
-nnoremap <silent> <D-P> :ClearCtrlPCache<cr>
-
-" Idea from : http://www.charlietanksley.net/blog/blog/2011/10/18/vim-navigation-with-lustyexplorer-and-lustyjuggler/
-" Open CtrlP starting from a particular path, making it much
-" more likely to find the correct thing first. mnemonic 'jump to [something]'
-map ,jm :CloseSingleConque<CR>:CtrlP app/models<CR>
-map ,jc :CloseSingleConque<CR>:CtrlP app/controllers<CR>
-map ,jv :CloseSingleConque<CR>:CtrlP app/views<CR>
-map ,jh :CloseSingleConque<CR>:CtrlP app/helpers<CR>
-map ,jl :CloseSingleConque<CR>:CtrlP lib<CR>
-map ,jp :CloseSingleConque<CR>:CtrlP public<CR>
-map ,js :CloseSingleConque<CR>:CtrlP spec<CR>
-map ,jf :CloseSingleConque<CR>:CtrlP fast_spec<CR>
-map ,jd :CloseSingleConque<CR>:CtrlP db<CR>
-map ,jC :CloseSingleConque<CR>:CtrlP config<CR>
-map ,jV :CloseSingleConque<CR>:CtrlP vendor<CR>
-map ,jF :CloseSingleConque<CR>:CtrlP factories<CR>
-map ,jT :CloseSingleConque<CR>:CtrlP test<CR>
-
-"Cmd-(m)ethod - jump to a method (tag in current file)
-"map ,m :CloseSingleConque<CR>:CtrlPBufTag<CR>
-
-"Ctrl-(M)ethod - jump to a method (tag in all files)
-"map ,M :CloseSingleConque<CR>:CtrlPBufTagAll<CR>
5 vim/plugin/settings/fugitive.git
View
@@ -1,5 +0,0 @@
-" fugitive.git
-" ========================================
-" For fugitive.git, dp means :diffput. Define dg to mean :diffget
-nnoremap <silent> ,dg :diffget<CR>
-nnoremap <silent> ,dp :diffput<CR>
24 vim/plugin/settings/git-grep.vim
View
@@ -1,24 +0,0 @@
-"git grep the current word using K (mnemonic Kurrent)
-nnoremap <silent> K :call CloseSingleConque()<CR>:GitGrep <cword><CR>
-
-function! GetVisual()
- let reg_save = getreg('"')
- let regtype_save = getregtype('"')
- let cb_save = &clipboard
- set clipboard&
- normal! ""gvy
- let selection = getreg('"')
- call setreg('"', reg_save, regtype_save)
- let &clipboard = cb_save
- return selection
-endfunction
-
-"git grep visual selection
-vnoremap K :call CloseSingleConque()<CR>:<C-U>execute GitGrep(GetVisual())<CR>
-
-"git grep current word up to the next exclamation point using ,K
-nnoremap ,K viwf!:<C-U>execute GitGrep(GetVisual())<CR>
-
-"grep for 'def foo'
-nnoremap <silent> ,gd :GitGrep 'def <cword>'<CR>
-
7 vim/plugin/settings/gundo.vim
View
@@ -1,7 +0,0 @@
-nmap ,u :GundoToggle<CR>
-
-" open on the right so as not to compete with the nerdtree
-let g:gundo_right = 1
-
-" a little wider for wider screens
-let g:gundo_width = 60
3  vim/plugin/settings/lusty-juggler.vim
View
@@ -1,3 +0,0 @@
-let g:LustyJugglerSuppressRubyWarning = 1
-let g:LustyJugglerAltTabMode = 1
-let g:LustyJugglerShowKeys = 'a' " show a/s/d/f keys
39 vim/plugin/settings/neocomplcache.vim
View
@@ -1,39 +0,0 @@
-" neocomplcache
-" A beter autocomplete system!
-
-let g:neocomplcache_enable_at_startup = 1
-let g:neocomplcache_enable_camel_case_completion = 1
-let g:neocomplcache_enable_underbar_completion = 1
-let g:neocomplcache_enable_smart_case = 1
-
-" default # of completions is 100, that's crazy
-let g:neocomplcache_max_list = 5
-
-" words less than 3 letters long aren't worth completing
-let g:neocomplcache_auto_completion_start_length = 3
-
-" Map standard Ctrl-N completion to Cmd-Space
-inoremap <D-Space> <C-n>
-
-" This makes sure we use neocomplcache completefunc instead of
-" the one in rails.vim, otherwise this plugin will crap out
-let g:neocomplcache_force_overwrite_completefunc = 1
-
-" Define keyword.
-if !exists('g:neocomplcache_keyword_patterns')
- let g:neocomplcache_keyword_patterns = {}
-endif
-let g:neocomplcache_keyword_patterns['default'] = '\h\w*'
-
-" Enable omni completion.
-autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS
-autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags
-autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS
-autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
-autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags
-autocmd FileType ruby setlocal omnifunc=rubycomplete#Complete
-" Enable heavy omni completion.
-if !exists('g:neocomplcache_omni_patterns')
- let g:neocomplcache_omni_patterns = {}
-endif
-let g:neocomplcache_omni_patterns.ruby = '[^. *\t]\.\w*\|\h\w*::'
29 vim/plugin/settings/next-textobject.vim
View
@@ -1,29 +0,0 @@
-" Stolen from Steve Losh
-" https://bitbucket.org/sjl/dotfiles/src/tip/vim/.vimrc
-"
-" Motion for "next/last object". For example, "din(" would go to the next "()"
-" pair and delete its contents.
-onoremap an :<c-u>call <SID>NextTextObject('a', 'f')<cr>
-xnoremap an :<c-u>call <SID>NextTextObject('a', 'f')<cr>
-onoremap in :<c-u>call <SID>NextTextObject('i', 'f')<cr>
-xnoremap in :<c-u>call <SID>NextTextObject('i', 'f')<cr>
-
-onoremap al :<c-u>call <SID>NextTextObject('a', 'F')<cr>
-xnoremap al :<c-u>call <SID>NextTextObject('a', 'F')<cr>
-onoremap il :<c-u>call <SID>NextTextObject('i', 'F')<cr>
-xnoremap il :<c-u>call <SID>NextTextObject('i', 'F')<cr>
-
-function! s:NextTextObject(motion, dir)
- let c = nr2char(getchar())
-
- if c ==# "b"
- let c = "("
- elseif c ==# "B"
- let c = "{"
- elseif c ==# "d"
- let c = "["
- endif
-
- exe "normal! ".a:dir.c."v".a:motion.c
-endfunction
-
20 vim/plugin/settings/open-changed-files.vim
View
@@ -1,20 +0,0 @@
-""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-" OpenChangedFiles COMMAND
-" Open a split for each dirty file in git
-"
-" Shamelessly stolen from Gary Bernhardt: https://github.com/garybernhardt/dotfiles
-""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-function! OpenChangedFiles()
- only " Close all windows, unless they're modified
- let status = system('git status -s | grep "^ \?\(M\|A\)" | cut -d " " -f 3')
- let filenames = split(status, "\n")
- if len(filenames) > 0
- exec "edit " . filenames[0]
- for filename in filenames[1:]
- exec "sp " . filename
- endfor
- end
-endfunction
-command! OpenChangedFiles :call OpenChangedFiles()
-
-nnoremap ,ocf :OpenChangedFiles<CR>
7 vim/plugin/settings/persistent-undo.vim
View
@@ -1,7 +0,0 @@
-" persistent undos - undo after you re-open the file
-" but this gives warnings under command line vim
-" use only in macvim
-if v:version > '702'
- set undodir=~/.vim/backups
- set undofile
-endif
3  vim/plugin/settings/powerline.vim
View
@@ -1,3 +0,0 @@
-let g:Powerline_symbols='fancy'
-let g:Powerline_theme='skwp'
-let g:Powerline_colorscheme='skwp'
9 vim/plugin/settings/quickfix-search.vim
View
@@ -1,9 +0,0 @@
-" Stolen from Steve Losh vimrc: https://bitbucket.org/sjl/dotfiles/src/tip/vim/.vimrc
-" Open a Quickfix window for the last search.
-nnoremap <silent> <leader>q/ :execute 'vimgrep /'.@/.'/g %'<CR>:copen<CR>
-
-" Ack for the last search.
-nnoremap <silent> <leader>qa/ :execute "Ack! '" . substitute(substitute(substitute(@/, "\\\\<", "\\\\b", ""), "\\\\>", "\\\\b", ""), "\\\\v", "", "") . "'"<CR>
-
-" GitGrep the last search (my own invention)
-nnoremap <silent> <leader>qg/ :execute "GitGrep '" . substitute(substitute(substitute(@/, "\\\\<", "\\\\b", ""), "\\\\>", "\\\\b", ""), "\\\\v", "", "") . "'"<CR>
3  vim/plugin/settings/rails.vim
View
@@ -1,3 +0,0 @@
-" Better key maps for switching between controller and view
-nnoremap ,vv :Rview<cr>
-nnoremap ,cc :Rcontroller<cr>
22 vim/plugin/settings/rspec_pending_to_xit.vim
View
@@ -1,22 +0,0 @@
-" Does not work on pending 'blocks', only single lines
-"
-" Given:
-" it "foo bar" do
-" pending("bla bla"
-"
-" Produce:
-" xit "foo bar" do
-"
-function! ChangePendingRspecToXit()
- " Find the next occurrence of pending
- while(search("pending(") > 0)
- " Delete it
- normal dd
- " Search backwards to the it block
- ?it\s
- " add an 'x' to the 'it' to make it 'xit'
- normal ix
- endwhile
-endfunction
-
-map <silent> ,rxit :call ChangePendingRspecToXit()<cr>
2  vim/plugin/settings/showmarks.vim
View
@@ -1,2 +0,0 @@
-" Tell showmarks to not include the various brace marks (),{}, etc
-let g:showmarks_include = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXY"
20 vim/plugin/settings/solarized.vim
View
@@ -1,20 +0,0 @@
-hi! link txtBold Identifier
-hi! link zshVariableDef Identifier
-hi! link zshFunction Function
-hi! link rubyControl Statement
-hi! link rspecGroupMethods rubyControl
-hi! link rspecMocks Identifier
-hi! link rspecKeywords Identifier
-hi! link rubyLocalVariableOrMethod Normal
-hi! link rubyStringDelimiter Constant
-hi! link rubyString Constant
-hi! link rubyAccess Todo
-hi! link rubySymbol Identifier
-hi! link rubyPseudoVariable Type
-hi! link rubyRailsARAssociationMethod Title
-hi! link rubyRailsARValidationMethod Title
-hi! link rubyRailsMethod Title
-hi! link MatchParen DiffText
-
-" Enforce the colors set here
-au VimEnter * so ~/.vim/plugin/settings/solarized.vim
12 vim/plugin/settings/surround.vim
View
@@ -1,12 +0,0 @@
-" via: http://whynotwiki.com/Vim
-" Ruby
-" Use v or # to get a variable interpolation (inside of a string)}
-" ysiw# Wrap the token under the cursor in #{}
-" v...s# Wrap the selection in #{}
-let g:surround_113 = "#{\r}" " v
-let g:surround_35 = "#{\r}" " #
-
-" Select text in an ERb file with visual mode and then press s- or s=
-" Or yss- to do entire line.
-let g:surround_45 = "<% \r %>" " -
-let g:surround_61 = "<%= \r %>" " =
8 vim/plugin/settings/syntastic.vim
View
@@ -1,8 +0,0 @@
-"mark syntax errors with :signs
-let g:syntastic_enable_signs=1
-"automatically jump to the error when saving the file
-let g:syntastic_auto_jump=0
-"show the error list automatically
-let g:syntastic_auto_loc_list=1
-"don't care about warnings
-let g:syntastic_quiet_warnings=0
8 vim/plugin/settings/tComment.vim
View
@@ -1,8 +0,0 @@
-" tComment
-" ========================================
-" extensions for tComment plugin. Normally
-" tComment maps 'gcc' to comment current line
-" this adds 'gcp' comment current paragraph (block)
-" using tComment's built in <c-_>p mapping
-nmap <silent> gcp <c-_>p
-
3  vim/plugin/settings/tagbar.vim
View
@@ -1,3 +0,0 @@
-"open the taglist (method browser) using ,t
-nnoremap <silent> ,T :TagbarToggle<CR>
-
10 vim/plugin/settings/unimpaired.vim
View
@@ -1,10 +0,0 @@
-" https://github.com/carlhuda/janus/blob/master/vimrc
-
-" Unimpaired configuration
-" Bubble single lines
-nmap <C-Up> [e
-nmap <C-Down> ]e
-
-" Bubble multiple lines
-vmap <C-Up> [egv
-vmap <C-Down> ]egv
3  vim/plugin/settings/vim-indent-guides.vim
View
@@ -1,3 +0,0 @@
-let g:indent_guides_auto_colors = 1
-let g:indent_guides_start_level = 2
-let g:indent_guides_guide_size = 1
1  vim/plugin/settings/vim-marks.vim
View
@@ -1 +0,0 @@
-let g:mwDefaultHighlightingPalette = 'extended'
4 vim/plugin/settings/vim-ruby-conque.vim
View
@@ -1,4 +0,0 @@
-" prevent auto insert mode, which is helpful when using conque
-" term for running tests
-"
-autocmd WinEnter * stopinsert
17 vim/plugin/settings/vim-ruby-debugger.vim
View
@@ -1,17 +0,0 @@
-"Disable default maps which are too aggressive, overriding <leader>t and
-"<leader>b
-let g:ruby_debugger_no_maps=1
-
-let g:ruby_debugger_progname='mvim'
-
-"Make our own maps
-noremap <leader>db :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.toggle_breakpoint()<CR>
-noremap <leader>dv :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.open_variables()<CR>
-noremap <leader>dm :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.open_breakpoints()<CR>
-noremap <leader>dt :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.open_frames()<CR>
-noremap <leader>ds :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.step()<CR>
-noremap <leader>df :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.finish()<CR>
-noremap <leader>dn :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.next()<CR>
-noremap <leader>dc :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.continue()<CR>
-noremap <leader>de :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.exit()<CR>
-noremap <leader>dd :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.remove_breakpoints()<CR>
23 vim/plugin/settings/yadr-appearance.vim
View
@@ -1,23 +0,0 @@
-" Make it beautiful - colors and fonts
-if has("gui_running")
- "tell the term has 256 colors
- set t_Co=256
-
- " http://ethanschoonover.com/solarized/vim-colors-solarized
- colorscheme solarized
- set background=dark
-
- " Show tab number (useful for Cmd-1, Cmd-2.. mapping)
- " For some reason this doesn't work as a regular set command,
- " (the numbers don't show up) so I made it a VimEnter event
- autocmd VimEnter * set guitablabel=%N:\ %t\ %M
-
- set lines=60
- set columns=190
-
- set guifont=Inconsolata:h20,Monaco:h17
-else
- "dont load csapprox if we no gui support - silences an annoying warning
- let g:CSApprox_loaded = 1
-endif
-
6 vim/plugin/settings/yadr-guioptions.vim
View
@@ -1,6 +0,0 @@
-" Disable the scrollbars (NERDTree)
-set guioptions-=r
-set guioptions-=L
-
-" Disable the macvim toolbar
-set guioptions-=T
248 vim/plugin/settings/yadr-keymap.vim
View
@@ -1,248 +0,0 @@
-" Arpeggio lets us define key-chord combos (simultaneous key presses)
-call arpeggio#load()
-
-" ========================================
-" General vim sanity improvements
-" ========================================
-"
-"
-" Change leader to a comma because the backslash is too far away
-" That means all \x commands turn into ,x
-let mapleader=","
-
-" alias yw to yank the entire word 'yank inner word'
-" even if the cursor is halfway inside the word
-" FIXME: will not properly repeat when you use a dot (tie into repeat.vim)
-nnoremap ,yw yiww
-
-" ,ow = 'overwrite word', replace a word with what's in the yank buffer
-" FIXME: will not properly repeat when you use a dot (tie into repeat.vim)
-nnoremap ,ow "_diwhp
-
-"make Y consistent with C and D
-nnoremap Y y$
-
-" ========================================
-" RSI Prevention - keyboard remaps
-" ========================================
-" Certain things we do every day as programmers stress
-" out our hands. For example, typing underscores and
-" dashes are very common, and in position that require
-" a lot of hand movement. Vim to the rescue
-"
-" Now using the middle finger of either hand you can type
-" underscores with apple-k or apple-d, and add Shift
-" to type dashes
-imap <silent> <D-k> _
-imap <silent> <D-d> _
-imap <silent> <D-K> -
-imap <silent> <D-D> -
-
-" ,# Surround a word with #{ruby interpolation}
-map ,# ysiw#
-vmap ,# c#{<C-R>"}<ESC>
-
-" ," Surround a word with "quotes"
-map ," ysiw"
-vmap ," c"<C-R>""<ESC>
-
-" ,' Surround a word with 'single quotes'
-map ,' ysiw'
-vmap ,' c'<C-R>"'<ESC>
-
-" ,) or ,( Surround a word with (parens)
-" The difference is in whether a space is put in
-map ,( ysiw(
-map ,) ysiw)
-vmap ,( c( <C-R>" )<ESC>
-vmap ,) c(<C-R>")<ESC>
-
-" ,[ Surround a word with [brackets]
-map ,] ysiw]
-map ,[ ysiw[
-vmap ,[ c[ <C-R>" ]<ESC>
-vmap ,] c[<C-R>"]<ESC>
-
-" ,{ Surround a word with {braces}
-map ,} ysiw}
-map ,{ ysiw{
-vmap ,} c{ <C-R>" }<ESC>
-vmap ,{ c{<C-R>"}<ESC>
-
-" gary bernhardt's hashrocket
-imap <c-l> <space>=><space>
-
-" Change inside various enclosures with Cmd-" and Cmd-'
-" The f makes it find the enclosure so you don't have
-" to be standing inside it
-nnoremap <D-'> f'ci'
-nnoremap <D-"> f"ci"
-nnoremap <D-(> f(ci(
-nnoremap <D-)> f)ci)
-nnoremap <D-[> f[ci[
-nnoremap <D-]> f]ci]
-
-"Go to last edit location with ,.
-nnoremap ,. '.
-
-"When typing a string, your quotes auto complete. Move past the quote
-"while still in insert mode by hitting Ctrl-a. Example:
-"
-" type 'foo<c-a>
-"
-" the first quote will autoclose so you'll get 'foo' and hitting <c-a> will
-" put the cursor right after the quote
-imap <C-a> <esc>wa
-
-" ==== NERD tree
-" Cmd-Shift-N for nerd tree
-nmap <D-N> :NERDTreeToggle<CR>
-
-" ,q to toggle quickfix window (where you have stuff like GitGrep)
-" ,oq to open it back up (rare)
-nmap <silent> ,qc :CloseSingleConque<CR>:cclose<CR>
-nmap <silent> ,qo :copen<CR>
-
-" move up/down quickly by using Cmd-j, Cmd-k
-" which will move us around by functions
-nnoremap <silent> <D-j> }
-nnoremap <silent> <D-k> {
-autocmd FileType ruby map <buffer> <D-j> ]m
-autocmd FileType ruby map <buffer> <D-k> [m
-autocmd FileType rspec map <buffer> <D-j> }
-autocmd FileType rspec map <buffer> <D-k> {
-
-" Open the project tree and expose current file in the nerdtree with Ctrl-\
-nnoremap <silent> <C-\> :NERDTreeFind<CR>
-
-" Command-/ to toggle comments
-map <D-/> :TComment<CR>
-imap <D-/> <Esc>:TComment<CR>i
-
-"GitGrep - open up a git grep line, with a quote started for the search
-nnoremap ,gg :GitGrep ""<left>
-"GitGrep Current Partial
-nnoremap ,gcp :GitGrepCurrentPartial<CR>
-"GitGrep Current File
-nnoremap ,gcf :call GitGrep(expand("%:t:r"))<CR>
-
-" hit ,f to find the definition of the current class
-" this uses ctags. the standard way to get this is Ctrl-]
-nnoremap <silent> ,f <C-]>
-
-" use ,F to jump to tag in a vertical split
-nnoremap <silent> ,F :let word=expand("<cword>")<CR>:vsp<CR>:wincmd w<cr>:exec("tag ". word)<cr>
-
-" use ,gf to go to file in a vertical split
-nnoremap <silent> ,gf :vertical botright wincmd f<CR>
-
-
-"Move back and forth through previous and next buffers
-"with ,z and ,x
-nnoremap <silent> ,z :bp<CR>
-nnoremap <silent> ,x :bn<CR>
-
-" ==============================
-" Window/Tab/Split Manipulation
-" ==============================
-" Move between split windows by using the four directions H, L, I, N
-" (note that I use I and N instead of J and K because J already does
-" line joins and K is mapped to GitGrep the current word
-nnoremap <silent> <C-h> <C-w>h
-nnoremap <silent> <C-l> <C-w>l
-nnoremap <silent> <C-k> <C-w>k
-nnoremap <silent> <C-j> <C-w>j
-
-" Zoom in and out of current window with ,gz
-map <silent> ,gz <C-w>o
-
-" Use numbers to pick the tab you want (like iTerm)
-map <silent> <D-1> :tabn 1<cr>
-map <silent> <D-2> :tabn 2<cr>
-map <silent> <D-3> :tabn 3<cr>
-map <silent> <D-4> :tabn 4<cr>
-map <silent> <D-5> :tabn 5<cr>
-map <silent> <D-6> :tabn 6<cr>
-map <silent> <D-7> :tabn 7<cr>
-map <silent> <D-8> :tabn 8<cr>
-map <silent> <D-9> :tabn 9<cr>
-
-" Create window splits easier. The default
-" way is Ctrl-w,v and Ctrl-w,s. I remap
-" this to vv and ss
-nnoremap <silent> vv <C-w>v
-nnoremap <silent> ss <C-w>s
-
-" Resize windows with arrow keys
-nnoremap <D-Up> <C-w>+
-nnoremap <D-Down> <C-w>-
-nnoremap <D-Left> <C-w><
-nnoremap <D-Right> <C-w>>
-
-" create <%= foo %> erb tags using Ctrl-k in edit mode
-imap <silent> <C-K> <%= %><Esc>3hi
-
-" create <%= foo %> erb tags using Ctrl-j in edit mode
-imap <silent> <C-J> <% %><Esc>2hi
-
-" ============================
-" Shortcuts for everyday tasks
-" ============================
-
-" copy current filename into system clipboard - mnemonic: (c)urrent(f)ilename
-" this is helpful to paste someone the path you're looking at
-nnoremap <silent> ,cf :let @* = expand("%:~")<CR>
-nnoremap <silent> ,cn :let @* = expand("%:t")<CR>
-
-"Clear current search highlight by double tapping //
-nmap <silent> // :nohlsearch<CR>
-
-"(v)im (c)ommand - execute current line as a vim command
-nmap <silent> ,vc yy:<C-f>p<C-c><CR>
-
-"(v)im (r)eload
-nmap <silent> ,vr :so %<CR>
-
-" Type ,hl to toggle highlighting on/off, and show current value.
-noremap ,hl :set hlsearch! hlsearch?<CR>
-
-" Apple-* Highlight all occurrences of current word (like '*' but without moving)
-" http://vim.wikia.com/wiki/Highlight_all_search_pattern_matches
-nnoremap <D-*> :let @/='\<<C-R>=expand("<cword>")<CR>\>'<CR>:set hls<CR>
-
-" These are very similar keys. Typing 'a will jump to the line in the current
-" file marked with ma. However, `a will jump to the line and column marked
-" with ma. It’s more useful in any case I can imagine, but it’s located way
-" off in the corner of the keyboard. The best way to handle this is just to
-" swap them: http://items.sjbach.com/319/configuring-vim-right
-nnoremap ' `
-nnoremap ` '
-
-" ============================
-" Tabularize - alignment
-" ============================
-" Hit Cmd-Shift-A then type a character you want to align by
-nmap <D-A> :Tabularize /
-vmap <D-A> :Tabularize /
-
-" ============================
-" SplitJoin plugin
-" ============================
-nmap sj :SplitjoinSplit<cr>
-nmap sk :SplitjoinJoin<cr>
-
-" ============================
-" vim-ruby-conque
-" ============================
-" Cmd-Shift-R for RSpec
-nmap <silent> <D-R> :call RunRspecCurrentFileConque()<CR>
-" Cmd-Shift-L for RSpec Current Line
-nmap <silent> <D-L> :call RunRspecCurrentLineConque()<CR>
-" ,Cmd-R for Last conque command
-nmap <silent> ,<D-R> :call RunLastConqueCommand()<CR>
-
-" Get the current highlight group. Useful for then remapping the color
-map ,hi :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' . synIDattr(synID(line("."),col("."),0),"name") . "> lo<" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">" . " FG:" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"fg#")<CR>
-
-" Source current file Cmd-% (good for vim development)
-map <D-%> :so %<CR>
3  vim/plugin/settings/yadr-sudo-write.vim
View
@@ -1,3 +0,0 @@
-" w!! to write a file as sudo
-" stolen from Steve Losh
-cmap w!! w !sudo tee % >/dev/null
15 vim/plugin/settings/yadr-whitespace-killer.vim
View
@@ -1,15 +0,0 @@
-" via: http://rails-bestpractices.com/posts/60-remove-trailing-whitespace
-" Strip trailing whitespace
-function! <SID>StripTrailingWhitespaces()
- " Preparation: save last search, and cursor position.
- let _s=@/
- let l = line(".")
- let c = col(".")
- " Do the business:
- %s/\s\+$//e
- " Clean up: restore previous search history, and cursor position
- let @/=_s
- call cursor(l, c)
-endfunction
-command! StripTrailingWhitespaces call <SID>StripTrailingWhitespaces()
-nmap ,w :StripTrailingWhitespaces<CR>
20 vim/plugin/settings/yadr-window-killer.vim
View
@@ -1,20 +0,0 @@
-" Use Q to intelligently close a window
-" (if there are multiple windows into the same buffer)
-" or kill the buffer entirely if it's the last window looking into that buffer
-function! CloseWindowOrKillBuffer()
- let number_of_windows_to_this_buffer = len(filter(range(1, winnr('$')), "winbufnr(v:val) == bufnr('%')"))
-
- " We should never bdelete a nerd tree
- if matchstr(expand("%"), 'NERD') == 'NERD'
- wincmd c
- return
- endif
-
- if number_of_windows_to_this_buffer > 1
- wincmd c
- else
- bdelete
- endif
-endfunction
-
-nnoremap <silent> Q :call CloseWindowOrKillBuffer()<CR>
20 vim/plugin/settings/yadr-wrapping.vim
View
@@ -1,20 +0,0 @@
-" http://vimcasts.org/episodes/soft-wrapping-text/
-function! SetupWrapping()
- set wrap linebreak nolist
- set showbreak=…
-endfunction
-
-" TODO: this should happen automatically for certain file types (e.g. markdown)
-command! -nargs=* Wrap :call SetupWrapping()<CR>
-
-vmap <D-j> gj
-vmap <D-k> gk
-vmap <D-$> g$
-vmap <D-^> g^
-vmap <D-0> g^
-nmap <D-j> gj
-nmap <D-k> gk
-nmap <D-$> g$
-nmap <D-^> g^
-nmap <D-0> g^
-
1  vim/plugin/settings/yankring.vim
View
@@ -1 +0,0 @@
-let g:yankring_history_file = '.yankring-history'
Please sign in to comment.
Something went wrong with that request. Please try again.