Add a Silver Searcher shortcut

Before, we dropped our custom "Ag" command in favour of the version with
fzf.vim. Unfortunately, this change also removed the handy "\" shortcut
to activate Silver Searcher. We added the shortcut back to the Vim
configuration.
This commit is contained in:
Rob Whittaker 2022-10-04 10:30:47 +01:00
parent fc9f7798f8
commit 69b8ce1e84
No known key found for this signature in database
GPG key ID: FC30C01F4D49E128

2
vimrc
View file

@ -97,6 +97,8 @@ if executable('ag')
" Use ag in fzf for listing files. Lightning fast and respects .gitignore
let $FZF_DEFAULT_COMMAND = 'ag --literal --files-with-matches --nocolor --hidden -g ""'
nnoremap \ :Ag<SPACE>
endif
" Make it obvious where 80 characters is