.vimrc

changeset 884
9289e838fb8a
parent 877
17b523f558f2
child 885
5357de5d54e2
equal deleted inserted replaced
883:1311c0ec33cc 884:9289e838fb8a
129 command! -nargs=* -complete=file Tig call tig#Tig(<f-args>) 129 command! -nargs=* -complete=file Tig call tig#Tig(<f-args>)
130 command! TigBlame call tig#TigBlame() 130 command! TigBlame call tig#TigBlame()
131 command! TigLog call tig#Tig('log', '-p', '--', expand('%')) 131 command! TigLog call tig#Tig('log', '-p', '--', expand('%'))
132 132
133 command! -nargs=* -complete=file -bar Ag call vimrc#Ag(<q-args>) 133 command! -nargs=* -complete=file -bar Ag call vimrc#Ag(<q-args>)
134 CAlias Rg Ag
135 134
136 CAlias Q q 135 CAlias Q q
137 CAlias Qa qa 136 CAlias Qa qa
138 CAlias W w 137 CAlias W w
139 138
233 if has('persistent_undo') 232 if has('persistent_undo')
234 set undofile 233 set undofile
235 let &undodir = g:vimcache . '/undo//,.' 234 let &undodir = g:vimcache . '/undo//,.'
236 endif 235 endif
237 236
238 if executable('rg') 237 if executable('ag')
239 let &grepprg = "rg -S --vimgrep"
240 let &grepformat = "%f:%l:%c:%m,%f:%l%m,%f %l%m"
241 elseif executable('ag')
242 let &grepprg = "ag --vimgrep" 238 let &grepprg = "ag --vimgrep"
243 set grepformat^=%f:%l:%c:%m 239 set grepformat^=%f:%l:%c:%m
244 endif 240 endif
245 241
246 if g:on_windows 242 if g:on_windows

mercurial