vim-repeat
vim-repeat copied to clipboard
Prevent "Press ENTER or type command to continue"
Do not show "Press ENTER or type command to continue" message after type ".". Prepend "silent!"
How do I reproduce? :silent! hides all errors so I don't want to introduce it blindly.
Steps to reproduce.
- Create file /tmp/test.vim:
set runtimepath+=~/.vim/bundle/vim-repeat
set columns=40
function! Test____________________________________ ()
normal! dd
silent! call repeat#set( ":call Test____________________________________()\n", v:count )
endfunction
nnoremap <silent> dd :call Test____________________________________()<cr>
Function has a long name.
- Start vim:
vim -u NONE -U NONE -i NONE --noplugin -n -N
- Type:
source /tmp/test.vim
- Open some file
:edit file
- Type
dd
and
.
Result: message "Press ENTER or type command to continue"
Sorry, i just test that my patch does not solve problem. Need replace "feedkeys(cmd)" on ":execute cmd", but this break compatibility.
You should be able to work around this by adding a <silent> <Plug>Test map in the middle to actually :call Test, and then feed that in as "\<Plug>Test".