I have this sort of command in my vim settings which read the output of some external command (here is
date) and then run another external app. My problem is I want to run it without leaving current UI (i.e. not opening another shell and press Enter to continue). I've tried to add
<silent> but it didn't work as expected i.e. it leaves the current UI and I have to press Enter to get back to current document. Here is the map in my
nnoremap <silent> sp :r! date "+\%T"<CR> :!echo $PWD/'%' > /dev/null<CR>
apparently, I also can not do something like
nnoremap sp :silent exec "..." as well or I miss something in the syntax.