summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--vim/vimrc13
1 files changed, 6 insertions, 7 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 7900428..fcef34d 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -48,8 +48,8 @@ noremap <silent> <leader>rs :!clear; sh %<CR>
" essential plugins
call plug#begin()
-" Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
-" Plug 'junegunn/fzf.vim'
+Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
+Plug 'junegunn/fzf.vim'
" Plug 'sheerun/vim-polyglot'
Plug 'preservim/vim-markdown'
Plug 'mhinz/vim-signify'
@@ -139,7 +139,6 @@ let test#vimterminal#term_position = "belowright"
" set shell=/bin/sh
" set t_Co=0 " this is supposed to remove colours
-set grepprg=ag\ --vimgrep\ --nogroup\ --nocolor
set hi=500
set scrolloff=0
" set novisualbell
@@ -179,8 +178,8 @@ set equalalways
set showmode
set nobackup
set listchars=tab:»→,trail:␣
-if executable('rg')
- set grepprg=rg\ --color=never\ --vimgrep
+if executable('ag')
+ set grepprg=ag\ --vimgrep\ --nogroup\ --nocolor
endif
" From Practical Vim p101 - Easy expansion of Active File Directory
@@ -399,9 +398,9 @@ nnoremap <leader>Y :let @+=printf("[%s](%s)", expand('%:t'), "file://" . expand(
nnoremap <silent> <leader>; :BLines<CR>
nnoremap <silent> <leader>l :Lines<CR>
nnoremap <silent> <leader>o :BTags<CR>
- nnoremap <silent> <leader>bu :Buffers<CR>
+ nnoremap <silent> <leader>b :Buffers<CR>
nnoremap <silent> <leader>? :History:<CR>
- " nnoremap <silent> <leader>/ :execute 'Ag ' . input('Ag/')<CR>
+ nnoremap <silent> <leader>/ :execute 'Ag ' . input('Ag/')<CR>
nnoremap <silent> <leader>ft :Filetypes<CR>
nnoremap <silent> <leader>CC :Commands<CR>
imap <C-x><C-f> <plug>(fzf-complete-file-ag)