Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 13 commits
  • 9 files changed
  • 0 comments
  • 3 contributors
16 .gitmodules
@@ -85,3 +85,19 @@
85 85 path = bundle/indent-object
86 86 url = https://github.com/michaeljsmith/vim-indent-object.git
87 87 ignore = dirty
  88 +[submodule "bundle/yankstack"]
  89 + path = bundle/yankstack
  90 + url = https://github.com/maxbrunsfeld/vim-yankstack.git
  91 + ignore = dirty
  92 +[submodule "bundle/align"]
  93 + path = bundle/align
  94 + url = https://github.com/tsaleh/vim-align.git
  95 +[submodule "bundle/haskell"]
  96 + path = bundle/haskell
  97 + url = https://github.com/wlangstroth/vim-haskell.git
  98 +[submodule "bundle/rails"]
  99 + path = bundle/rails
  100 + url = https://github.com/tpope/vim-rails.git
  101 +[submodule "bundle/vim-coffee-script"]
  102 + path = bundle/vim-coffee-script
  103 + url = https://github.com/kchmck/vim-coffee-script.git
1  bundle/align
... ... @@ -0,0 +1 @@
  1 +Subproject commit fa5fdeeea25269c3e83262c03dfa1ccd27dbd3c9
1  bundle/haskell
... ... @@ -0,0 +1 @@
  1 +Subproject commit ef9b90747186b8ba34446dc246a4b54095309d54
1  bundle/nerdcommenter
... ... @@ -1 +0,0 @@
1   -Subproject commit b28e7be63235982501ab7dd30c03ea7feef7b095
1  bundle/rails
... ... @@ -0,0 +1 @@
  1 +Subproject commit 893ef3e0fde7404b3024e61ef312fe2972897559
1  bundle/vim-coffee-script
... ... @@ -0,0 +1 @@
  1 +Subproject commit ae7ebc39cbf7f29a1034ba3dbe7e947d7dda3bf9
1  bundle/yankstack
... ... @@ -0,0 +1 @@
  1 +Subproject commit 090cffc57b04d6f3d2cc57b9e65e261183ea8c9d
29 gvimrc
... ... @@ -1,6 +1,5 @@
1 1 set guifont=Monaco:h15
2 2 set bg=dark
3   -colorscheme ir_black
4 3
5 4 " Start without the toolbar
6 5 set guioptions-=T
@@ -24,3 +23,31 @@ if has("gui_macvim")
24 23 macmenu Window.Toggle\ Full\ Screen\ Mode key=<D-CR>
25 24 endif
26 25
  26 +if exists("loaded_nerd_tree")
  27 + augroup AuNERDTreeCmd
  28 + autocmd AuNERDTreeCmd FocusGained * call s:UpdateNERDTree()
  29 +endif
  30 +
  31 +" NERDTree utility function
  32 +function s:UpdateNERDTree(...)
  33 + let stay = 0
  34 +
  35 + if(exists("a:1"))
  36 + let stay = a:1
  37 + end
  38 +
  39 + if exists("t:NERDTreeBufName")
  40 + let nr = bufwinnr(t:NERDTreeBufName)
  41 + if nr != -1
  42 + exe nr . "wincmd w"
  43 + exe substitute(mapcheck("R"), "<CR>", "", "")
  44 + if !stay
  45 + wincmd p
  46 + end
  47 + endif
  48 + endif
  49 +
  50 + if exists(":CommandTFlush") == 2
  51 + CommandTFlush
  52 + endif
  53 +endfunction
50 vimrc
... ... @@ -1,4 +1,6 @@
1 1 " use pathogen for plugins
  2 +set nocompatible
  3 +filetype off
2 4 call pathogen#runtime_append_all_bundles()
3 5 call pathogen#helptags()
4 6
@@ -8,7 +10,6 @@ call pathogen#helptags()
8 10
9 11 filetype plugin indent on
10 12 syntax on
11   -set nocompatible
12 13
13 14 " searching
14 15 set hlsearch
@@ -89,7 +90,7 @@ noremap j gj
89 90 noremap k gk
90 91
91 92 " make Y consistent w/ D and C
92   -map Y y$
  93 +nmap Y y$
93 94
94 95 " increase/decrease indentation
95 96 xmap <TAB> >gv
@@ -188,11 +189,44 @@ function! GetCurrentVisualSelection()
188 189 return selection
189 190 endfunction
190 191
191   -"-------------------------------------------
192   -" LOCAL CONFIG
193   -"-------------------------------------------
  192 +command! -nargs=+ Qfdo call Qfdo(<q-args>)
  193 +function! Qfdo(command)
  194 + let buffer_numbers = {}
  195 + for fixlist_entry in getqflist()
  196 + let buffer_numbers[fixlist_entry['bufnr']] = 1
  197 + endfor
  198 + let buffer_number_list = keys(buffer_numbers)
  199 +
  200 + for num in buffer_number_list
  201 + try
  202 + silent exec 'buffer' num
  203 + exec a:command
  204 + update
  205 + catch
  206 + echo "Aborted."
  207 + return
  208 + endtry
  209 + endfor
  210 + echo "Done."
  211 +endfunction
  212 +
  213 +command! -nargs=* -complete=file GS call GlobalReplace(<q-args>)
  214 +function! GlobalReplace(args)
  215 + let args = split(a:args)
  216 + let substitute_pattern = args[0]
  217 + let paths = args[1:]
  218 + let separator = matchstr(substitute_pattern, '^.')
  219 + let search_pattern = split(substitute_pattern, separator, 1)[1]
194 220
195   -if filereadable(expand("~/.vimrc.local"))
196   - source ~/.vimrc.local
197   -endif
  221 + call DoGrep(search_pattern, paths)
  222 + exec "Qfdo %S" . substitute_pattern
  223 +endfunction
198 224
  225 +function! DoGrep(search_pattern, paths)
  226 + let grep_command = exists(':Ggrep') ? "Ggrep " : "Ack! "
  227 + let cmd = grep_command . a:search_pattern . ' ' . join(a:paths, ' ')
  228 + echo cmd
  229 + silent exec cmd
  230 + copen
  231 + wincmd p
  232 +endfunction

No commit comments for this range

Something went wrong with that request. Please try again.