~gpanders/dotfiles

7e6bc0091502223e807979375246c9210b25563f — Greg Anders 12 days ago ffcba71
[vim] Update grep abbreviations and default mapping
1 files changed, 3 insertions(+), 3 deletions(-)

M .vim/plugin/grep.vim
M .vim/plugin/grep.vim => .vim/plugin/grep.vim +3 -3
@@ 1,9 1,9 @@
command! -nargs=+ -complete=file_in_path Grep  call grep#grep(0, <q-args>)
command! -nargs=+ -complete=file_in_path LGrep call grep#grep(1, <q-args>)

cnoreabbrev <expr> gr    (getcmdtype() ==# ':' && getcmdline() ==# 'gr')    ? 'Grep'  : 'grep'
cnoreabbrev <expr> gr    (getcmdtype() ==# ':' && getcmdline() ==# 'gr')    ? 'Grep'  : 'gr'
cnoreabbrev <expr> grep  (getcmdtype() ==# ':' && getcmdline() ==# 'grep')  ? 'Grep'  : 'grep'
cnoreabbrev <expr> lgr   (getcmdtype() ==# ':' && getcmdline() ==# 'lgr')   ? 'LGrep' : 'lgrep'
cnoreabbrev <expr> lgr   (getcmdtype() ==# ':' && getcmdline() ==# 'lgr')   ? 'LGrep' : 'lgr'
cnoreabbrev <expr> lgrep (getcmdtype() ==# ':' && getcmdline() ==# 'lgrep') ? 'LGrep' : 'lgrep'

nnoremap g<Space> :Grep<Space>
nnoremap g<CR> :Grep<Space>