aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgxlin <[email protected]>2021-02-10 20:37:25 +0800
committergxlin <[email protected]>2021-02-10 20:37:25 +0800
commite8aae0183012b084c5cf429d2b7dce17891661b0 (patch)
treed2034a41a0abebbc13cd57ad0978d24cd2409d18
parent24cdbacbcad52f2f8d3860dfcccd4eaca8578b18 (diff)
downloaddotfiles-e8aae0183012b084c5cf429d2b7dce17891661b0.tar.gz
dotfiles-e8aae0183012b084c5cf429d2b7dce17891661b0.tar.bz2
dotfiles-e8aae0183012b084c5cf429d2b7dce17891661b0.zip
Add ack.vim to .vimrc
-rw-r--r--.vimrc9
1 files changed, 8 insertions, 1 deletions
diff --git a/.vimrc b/.vimrc
index 0430e11..21f9983 100644
--- a/.vimrc
+++ b/.vimrc
@@ -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>