.vimrc

changeset 953
e033f9ce0d8c
parent 949
cb33f9050d24
child 954
93e7838ac6a5
equal deleted inserted replaced
952:0d98622cf4d6 953:e033f9ce0d8c
106 nnoremap <silent> <leader><leader>k :call UncolorAllWords()<CR> 106 nnoremap <silent> <leader><leader>k :call UncolorAllWords()<CR>
107 107
108 " mark line 108 " mark line
109 nmap <leader>l V<leader>k 109 nmap <leader>l V<leader>k
110 110
111 " use Ag for a recursive * 111 " use Grep for a recursive *
112 nnoremap g* :Ag<CR> 112 nnoremap g* :Grep<CR>
113 113
114 " K: doc, gKK: doc current filename 114 " K: doc, gKK: doc current filename
115 nnoremap gKK :call ViewDoc('doc', expand('%:p'))<CR> 115 nnoremap gKK :call ViewDoc('doc', expand('%:p'))<CR>
116 116
117 " Tabular shortcuts 117 " Tabular shortcuts
155 155
156 command! -nargs=* -complete=file Tig call tig#Tig(<f-args>) 156 command! -nargs=* -complete=file Tig call tig#Tig(<f-args>)
157 command! TigBlame call tig#TigBlame() 157 command! TigBlame call tig#TigBlame()
158 command! TigLog call tig#Tig('log', '-p', '--', expand('%')) 158 command! TigLog call tig#Tig('log', '-p', '--', expand('%'))
159 159
160 command! -nargs=* -complete=file -bar Ag call vimrc#Ag(<q-args>) 160 command! -nargs=* -complete=file Grep call vimrc#Grep(<f-args>)
161 CAlias Ag Grep
162 CAlias grep Grep
161 163
162 CAlias Q q 164 CAlias Q q
163 CAlias Qa qa 165 CAlias Qa qa
164 CAlias W w 166 CAlias W w
165 167
261 endif 263 endif
262 264
263 if executable('ag') 265 if executable('ag')
264 let &grepprg = "ag --vimgrep" 266 let &grepprg = "ag --vimgrep"
265 set grepformat^=%f:%l:%c:%m,%f 267 set grepformat^=%f:%l:%c:%m,%f
268 set errorformat+=%f
266 endif 269 endif
267 270
268 if g:on_windows 271 if g:on_windows
269 set guifont=DejaVu_Sans_Mono:h10:cDEFAULT 272 set guifont=DejaVu_Sans_Mono:h10:cDEFAULT
270 set linespace=0 273 set linespace=0

mercurial