diff options
| author | mysticmode <tildezero@gmail.com> | 2026-07-10 08:43:23 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-10 08:43:23 +0530 |
| commit | f113f8c4f555139b01e012fe3349b950da79a321 (patch) | |
| tree | 1b5af820a67c72251c82476cb8e3a1dcc2a8ffba | |
| parent | a37ace89af04f1cffb8d56121d54ec4507c1c8b2 (diff) | |
Removed Ag plugin and added FZF.vim with key mappings for file and buffer searching.
| -rw-r--r-- | .vimrc | 25 |
1 files changed, 16 insertions, 9 deletions
@@ -8,8 +8,8 @@ call vundle#begin() " onedark colorscheme Plugin 'morhetz/gruvbox' -" Ag -Plugin 'rking/ag.vim' +Plugin 'junegunn/fzf', { 'do': { -> fzf#install() } } +Plugin 'junegunn/fzf.vim' " Go development plugin Plugin 'fatih/vim-go' @@ -106,10 +106,20 @@ map <F4> :e %:p:s,.h$,.X123X,:s,.c$,.h,:s,.X123X$,.c,<CR> map <F5> :make<CR> map <F6> :make clean all<CR> -" The Silver Searcher -" bind \ (backward slash) to grep shortcut -command -nargs=+ -complete=file -bar Ag silent! grep! <args>|cwindow|redraw! -nnoremap \ :Ag<SPACE> +" FZF.vim +set rtp+=/usr/local/opt/fzf +" Map Ctrl+p to search files +nnoremap <C-p> :Files<CR> + +" Map Ctrl+b to search open buffers +nnoremap <C-b> :Buffers<CR> + +" Map Leader+f to look for text with Ripgrep +nnoremap <leader>f :Rg<CR> + +" Map Leader+h to search file history +nnoremap <leader>h :History<CR> + " Markdown preview let g:instant_markdown_autostart = 1 @@ -117,9 +127,6 @@ let g:instant_markdown_slow = 0 " renders on every keystroke set notermguicolors -" Solarized stuff -"let g:solarized_termtrans=1 -"let g:solarized_contrast='high' let g:enable_bold_font = 1 let g:enable_italic_font = 1 let g:hybrid_custom_term_colors = 1 |
