Skip to content

Commit

Permalink
vimrc: noremap <Leader>fa to Ag for ag.vim
Browse files Browse the repository at this point in the history
  • Loading branch information
hbuxiaofei authored Mar 23, 2021
1 parent f613cfe commit 9b440c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ nmap <Leader>+ :bd<cr>
let g:ctrlp_working_path_mode = 'wa'
let g:ctrlp_match_window = 'min:1,max:15,results:100'

" ag.vim
let g:ag_prg = "rg --column -e"
noremap <Leader>fa :<C-U><C-R>=printf("Ag \"%s\"", expand("<cword>"))<CR>
" indentLine
let g:indentLine_enable = 1
let g:indentLine_char = '¦'
Expand Down

0 comments on commit 9b440c4

Please sign in to comment.