vim: add Grw command and Kr/Kw mappings

master
an 2019-09-22 21:29:01 -04:00
parent e6790e675f
commit a47d25246f
1 changed files with 5 additions and 3 deletions

View File

@ -462,7 +462,8 @@ end
" Commands -------------------------------------------------------------------|
" Find
com -nargs=+ -complete=file -bar Gr silent! grep! "<Args>" | cwindow
com -nargs=+ -bar Gr silent! grep! "<Args>" | cwindow
com -nargs=+ -bar Grw silent! grep! "\b<Args>\b" | cwindow
" Write (sudo)
com W execute 'w !sudo tee > /dev/null %' | edit!
@ -652,8 +653,9 @@ vn <PageUp> <NOp>
nm cr <Plug>(abolish-coerce-word)
" find
nn KK :Gr \b<C-r><C-w>\b<CR>
nn Kk :Gr<Space>
nn KK :Grw <C-r><C-w><CR>
nn Kr :Gr<Space>
nn Kw :Grw<Space>
" quick lambda
nn <Leader>l<Esc>