Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

,O to close everything, ,; for de-hashrocketizing, ,g for manual grep…

…ping - ,G for grepping word under cursor
  • Loading branch information...
commit 77dd1f15bcaef91e698b13edacc63b7a5d144b8c 1 parent a5d6f97
Mark Wilden authored

Showing 1 changed file with 6 additions and 4 deletions. Show diff stats Hide diff stats

  1. 10  vimrc
10  vimrc
@@ -72,6 +72,8 @@ onoremap <silent> il :<C-U>normal! 0v$h<CR>
72 72
 
73 73
 " close other windows and tabs
74 74
 nmap <silent> <Leader>o :only<CR>:tabonly<CR>:noh<CR>
  75
+" close everything
  76
+nmap <silent> <Leader>O :%bd<CR>
75 77
 
76 78
 " run 'q' macro
77 79
 nmap Q @q
@@ -80,7 +82,8 @@ nmap Q @q
80 82
 nmap <Leader>n :set number<CR>
81 83
 
82 84
 " convert Ruby 1.8 hashrockets to 1.9
83  
-nmap <Leader>; F:xea:ldf>
  85
+"nmap <Leader>; F:xea:ldf>
  86
+nmap <Leader>; F:,:
84 87
 nmap <Leader>: xea:lldW
85 88
 
86 89
 " convert double quotes to single quotes
@@ -109,9 +112,9 @@ map <C-Z> :CtrlPMRU<CR>
109 112
 
110 113
 " Project
111 114
 " grep
112  
-nmap <Leader>G :Project<CR>gg<CR>zX\G'
  115
+nmap <Leader>g :Project<CR>gg<CR>zX\G'
113 116
 " grep word under cursor
114  
-nmap <Leader>g yiw:Project<CR>gg\RzX\G'\b<C-R>"\b'<CR><C-P><Leader>q
  117
+nmap <Leader>G yiw:Project<CR>ggzX\G'\b<C-R>"\b'<CR><C-P><Leader>q
115 118
 " refresh
116 119
 nmap <Leader>p :Project<CR>gg\RzXza<C-R>
117 120
 nmap <silent> <C-P> <F12>
@@ -167,7 +170,6 @@ set formatoptions-=t
167 170
 set gdefault
168 171
 set grepprg=ack\ -H\ --nocolor\ --nogroup
169 172
 set guifont=Menlo:h13
170  
-
171 173
 set guioptions+=c
172 174
 set guioptions-=T
173 175
 set guitablabel=%t

0 notes on commit 77dd1f1

Please sign in to comment.
Something went wrong with that request. Please try again.