diff --git a/bash/.bashrc b/bash/.bashrc index a7469a5..eb402d2 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -66,3 +66,5 @@ if [[ $TERM == xterm-termite ]]; then . /etc/profile.d/vte.sh __vte_prompt_command fi + +[ -f ~/.fzf.bash ] && source ~/.fzf.bash diff --git a/vim/.vimrc b/vim/.vimrc index 5eca6a7..3a7aa8e 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -84,6 +84,10 @@ Plug 'tpope/vim-fugitive' Plug 'ludovicchabant/vim-gutentags' " Handling multiple cscopes for gutentags Plug 'skywind3000/gutentags_plus' +" Fuzzy file finder (installs zfz system-wide) +Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } +" Pre-written functions for fzf mappings +Plug 'junegunn/fzf.vim' " Vim facilities enhancement """""""""""""""""""""""""""" @@ -103,6 +107,8 @@ Plug 'tpope/vim-repeat' " Some ex command mappings Plug 'tpope/vim-unimpaired' +" Snippets +"""""""""" " Snippet manager Plug 'SirVer/ultisnips' " Snippet files for Ulti Snips @@ -195,13 +201,31 @@ map es :source $MYVIMRC noremap m :silent! :make! \| :redraw! " Mapping for quickfix bindings +" Next and previous in quick-fix list nmap fn (qf_qf_next) nmap fp (qf_qf_previous) +" Next and previous in location list nmap ln (qf_loc_next) nmap lp (qf_loc_previous) +" Toggle quick-fix and location lists nmap tf (qf_qf_toggle) nmap tl (qf_loc_toggle) +" Fuzzy file finder bindings +" Only git-tracked files, Vim needs to be in a Git repository +nmap fg :GFiles +" All files +nmap ff :Files +" Currently open buffers +nmap fb :Buffers +" Buffer history +nmap fh :History +" Tags in buffer +nmap ft :BTags +" Tags in all project files +nmap fT :Tags + + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Status line """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" diff --git a/zsh/.zshrc b/zsh/.zshrc index 8d4459d..5189243 100755 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -104,3 +104,5 @@ if [[ $TERM == xterm-termite ]]; then . /etc/profile.d/vte.sh __vte_osc7 fi + +[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh