Add mapping for :Ag <cword>

This commit is contained in:
Kenneth Benzie 2017-07-21 13:23:35 +01:00
parent 3dd8259c01
commit 87d9693973

View File

@ -37,6 +37,8 @@ nnoremap <C-f>l :BLines<CR>
nnoremap <C-f>c :Colors<CR>
nnoremap <C-f>h :Helptags<CR>
nnoremap <C-f>s :Snippets<CR>
" Search to the word under the cursor
nnoremap <leader>ag :Ag <C-R>=expand('<cword>')<CR><CR>
" Treat long lines as line containing breaks
nnoremap j gj