From ff8650183e114e8f61f30beccf5584c848ba3d40 Mon Sep 17 00:00:00 2001 From: Darren Cheng Date: Wed, 23 May 2018 19:57:20 -0700 Subject: [PATCH] Replace ag.vim with ack.vim. ag.vim is deprecated - https://github.com/rking/ag.vim/issues/124 --- vim/plugin/settings/ack.vim | 10 ++++++++++ vim/plugin/settings/ag.vim | 6 ------ vim/plugins.vim | 2 +- 3 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 vim/plugin/settings/ack.vim delete mode 100644 vim/plugin/settings/ag.vim diff --git a/vim/plugin/settings/ack.vim b/vim/plugin/settings/ack.vim new file mode 100644 index 00000000..5bf39383 --- /dev/null +++ b/vim/plugin/settings/ack.vim @@ -0,0 +1,10 @@ +" Set ack.vim executable +if executable('ag') + let g:ackprg = 'ag --vimgrep --smart-case' +endif +" Mapping shortcut to search via the silver search +nnoremap F :Ack +" Jump to next item in search +nnoremap + :cnz. +" Jump to next item in search +nnoremap _ :cpz. diff --git a/vim/plugin/settings/ag.vim b/vim/plugin/settings/ag.vim deleted file mode 100644 index f005686e..00000000 --- a/vim/plugin/settings/ag.vim +++ /dev/null @@ -1,6 +0,0 @@ -" Mapping to easily search via Ag -nnoremap F :Ag -" Jump to next item in search -nnoremap + :cnz. -" Jump to next item in search -nnoremap _ :cpz. diff --git a/vim/plugins.vim b/vim/plugins.vim index 91b6b9c0..9e931c47 100644 --- a/vim/plugins.vim +++ b/vim/plugins.vim @@ -47,7 +47,7 @@ Plug 'AndrewRadev/splitjoin.vim' " Lazy-load plugins Plug 'scrooloose/nerdtree', { 'on': [ 'NERDTreeToggle', 'NERDTreeFind' ] } Plug 'sjl/gundo.vim', { 'on': 'GundoToggle' } -Plug 'rking/ag.vim', { 'on': 'Ag' } +Plug 'mileszs/ack.vim', { 'on': 'Ack' } Plug 'airblade/vim-gitgutter', { 'on': 'GitGutterToggle' } Plug 'derekwyatt/vim-fswitch', { 'on': 'FSHere' } Plug 'junegunn/vim-easy-align', { 'on': 'EasyAlign' }