diff options
author | gxlin <[email protected]> | 2021-02-10 20:37:25 +0800 |
---|---|---|
committer | gxlin <[email protected]> | 2021-02-10 20:37:25 +0800 |
commit | e8aae0183012b084c5cf429d2b7dce17891661b0 (patch) | |
tree | d2034a41a0abebbc13cd57ad0978d24cd2409d18 | |
parent | 24cdbacbcad52f2f8d3860dfcccd4eaca8578b18 (diff) | |
download | dotfiles-e8aae0183012b084c5cf429d2b7dce17891661b0.tar.gz dotfiles-e8aae0183012b084c5cf429d2b7dce17891661b0.tar.bz2 dotfiles-e8aae0183012b084c5cf429d2b7dce17891661b0.zip |
Add ack.vim to .vimrc
-rw-r--r-- | .vimrc | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -98,7 +98,7 @@ Plug 'tpope/vim-unimpaired' Plug 'godlygeek/tabular' Plug 'ledger/vim-ledger', {'for': 'ledger'} Plug 'puremourning/vimspector' -Plug 'nathangrigg/vim-beancount', {'for': 'beancount'} +Plug 'mileszs/ack.vim' call plug#end() " Plugin config @@ -178,3 +178,10 @@ hi! SpellRare gui=undercurl guisp=magenta " Vimspector let g:vimspector_enable_mappings = 'HUMAN' + +" Ack.vim +if executable('ag') + let g:ackprg = 'ag --vimgrep' +endif +cnoreabbrev Ack Ack! +nnoremap <Leader>a :Ack!<Space> |