aboutsummaryrefslogtreecommitdiff
path: root/files/.vimrc
diff options
context:
space:
mode:
authorAnton Bobov <abobov@gmail.com>2020-02-08 23:23:28 +0500
committerAnton Bobov <abobov@gmail.com>2020-02-08 23:39:36 +0500
commit89d08f8344c521977d027e2c2831540f72674915 (patch)
tree886574361601a214b7970985c47ddd298f0fc0bf /files/.vimrc
parent090b5e21fe47e6102d21a1a39612953f8c643bba (diff)
Updates.
Diffstat (limited to 'files/.vimrc')
-rw-r--r--files/.vimrc17
1 files changed, 15 insertions, 2 deletions
diff --git a/files/.vimrc b/files/.vimrc
index c612223..23a6c11 100644
--- a/files/.vimrc
+++ b/files/.vimrc
@@ -39,7 +39,7 @@ Plugin 'https://github.com/mattn/emmet-vim.git'
" Code snippets
Plugin 'https://github.com/msanders/snipmate.vim'
" Silversearch plugin
-Plugin 'https://github.com/rking/ag.vim'
+Plugin 'mileszs/ack.vim'
" Support dot command for plugins
Plugin 'https://github.com/tpope/vim-repeat.git'
Plugin 'https://github.com/tpope/vim-surround.git'
@@ -66,7 +66,7 @@ Plugin 'lervag/vimtex'
Plugin 'sheerun/vim-polyglot'
Plugin 'terryma/vim-expand-region'
" Maintains a history of previous yanks, changes and deletes
-Plugin 'vim-scripts/YankRing.vim'
+"Plugin 'vim-scripts/YankRing.vim'
" File types
@@ -620,9 +620,22 @@ let g:polyglot_disabled = ['latex']
" }}}
" YankRing {{{
+let g:yankring_replace_n_pkey = '<C-k>'
+let g:yankring_replace_n_nkey = '<C-j>'
let g:yankring_history_dir = "$HOME/tmp/vim/"
" }}}
+" Ack {{{
+
+if executable('ag')
+ let g:ackprg = 'ag --vimgrep'
+ cnoreabbrev ag Ack
+ cnoreabbrev aG Ack
+ cnoreabbrev Ag Ack
+ cnoreabbrev AG Ack
+endif
+
+" }}}
" }}}
" Load custom local config {{{