Add mapping for :Ag <cword>

This commit is contained in:
Kenneth Benzie 2017-07-21 13:23:35 +01:00
parent 1cdfd0bad8
commit 39e96c88b1

View File

@ -37,6 +37,8 @@ nnoremap <C-f>l :BLines<CR>
nnoremap <C-f>c :Colors<CR> nnoremap <C-f>c :Colors<CR>
nnoremap <C-f>h :Helptags<CR> nnoremap <C-f>h :Helptags<CR>
nnoremap <C-f>s :Snippets<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 " Treat long lines as line containing breaks
nnoremap j gj nnoremap j gj