Skip to content

Commit

Permalink
Replace Ag.vim with Ack.vim
Browse files Browse the repository at this point in the history
Ag.vim now deprecated, see
rking/ag.vim#124 (comment)
  • Loading branch information
RossBarnie committed Oct 7, 2016
1 parent 7e062d3 commit fc4171a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Plugin 'scrooloose/nerdtree'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'rking/ag.vim'
Plugin 'mileszs/ack.vim'
Plugin 'ntpeters/vim-better-whitespace'
Plugin 'thoughtbot/vim-rspec'
Plugin 'tpope/vim-surround'
Expand Down Expand Up @@ -77,10 +77,9 @@ nnoremap <Down> :echoe "Use j"<CR>
set noswapfile " no swap

if executable('ag')
let g:ackprg = 'ag --vimgrep'
" highlight ag searches
let g:ag_highlight = 1
" Ag.vim always starts searching from project root, not cwd
let g:ag_working_path_mode="r"
let g:ackhighlight = 1

" use ag in CtrlP for listing files
let g:ctrlp_user_command = 'ag -p ~/.agignore %s -l --nocolor --nogroup --hidden -g ""'
Expand All @@ -90,6 +89,8 @@ if executable('ag')
endif
let g:ctrlp_switch_buffer = 0

let g:ctrlp_switch_buffer = 0

set background=dark

" NERDTree
Expand Down Expand Up @@ -132,7 +133,7 @@ nnoremap <Leader>rv :so $MYVIMRC<CR>:echom 'vimrc reloaded'<CR>
nnoremap <leader>h :noh<CR>
" shortcut for project-wide search
nnoremap <leader>f :Ag<SPACE>""<LEFT>
nnoremap <leader>f :Ack!<SPACE>""<LEFT>
" automatically rebalance windows on vim resize
augroup auto_resize
Expand Down

0 comments on commit fc4171a

Please sign in to comment.