" bind K to search word under cursor nnoremap ,K :Rg cnoreabbrev Ag ((getcmdtype() is# ':' && getcmdline() is# 'Ag')?('Rg'):('Ag')) " Map Ag to Rg as well