I have recently started using vim and i have been playing around with it for sometime now.
i use FZF
with Ag
to get searching files and searching in files done. but i am not able to search in particular file types for example
i want to search "getUserInfo"
only in .js
files.
here are my configs
bashrc
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export FZF_DEFAULT_COMMAND='ag -g ""'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
init.vim
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
i simply use :Ag
in vim to search in entire directory