Switching from Ack to Ag
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
" 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>
|
||||
" Ag for the last search.
|
||||
nnoremap <silent> <leader>qa/ :execute "Ag! '" . 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>
|
||||
|
||||
@@ -48,7 +48,7 @@ Bundle "tpope/vim-git"
|
||||
Bundle "vim-scripts/lastpos.vim"
|
||||
Bundle "sjl/gundo.vim"
|
||||
Bundle "vim-scripts/sudo.vim"
|
||||
Bundle "mileszs/ack.vim"
|
||||
Bundle "rking/ag.vim"
|
||||
Bundle "nelstrom/vim-textobj-rubyblock"
|
||||
Bundle "kana/vim-textobj-user"
|
||||
Bundle "austintaylor/vim-indentobject"
|
||||
|
||||
Reference in New Issue
Block a user