aboutsummaryrefslogtreecommitdiff
path: root/.vim/plugins/ack.vim
diff options
context:
space:
mode:
authorgxlin <[email protected]>2021-03-16 10:42:48 +0800
committergxlin <[email protected]>2021-03-16 10:42:48 +0800
commit06929ba11c0ef83da2462f60ee8c6dc07a2aa9a4 (patch)
tree7eede7fef35e892ec41b0db529819ce33871b016 /.vim/plugins/ack.vim
parent4d3b20b9445c1bcdd015e2babc03da91651898ed (diff)
downloaddotfiles-06929ba11c0ef83da2462f60ee8c6dc07a2aa9a4.tar.gz
dotfiles-06929ba11c0ef83da2462f60ee8c6dc07a2aa9a4.tar.bz2
dotfiles-06929ba11c0ef83da2462f60ee8c6dc07a2aa9a4.zip
Split .vimrc to multiple vimscript files
Diffstat (limited to '.vim/plugins/ack.vim')
-rw-r--r--.vim/plugins/ack.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/.vim/plugins/ack.vim b/.vim/plugins/ack.vim
new file mode 100644
index 0000000..dd96e47
--- /dev/null
+++ b/.vim/plugins/ack.vim
@@ -0,0 +1,7 @@
+Plug 'mileszs/ack.vim'
+
+if executable('ag')
+ let g:ackprg = 'ag --vimgrep'
+endif
+cnoreabbrev Ack Ack!
+nnoremap <Leader>a :Ack!<Space>