As Ben said in the comments prompting the command used before its result is a built-in behavior that you can not change without modifying Vim's source code.
However a possible workaround is to use
:h system() to avoid prompting anything and then showing the result of the command by yourself.
I did a test with the following mapping:
nnoremap <silent> <F1> :let res = system('cd $HOME && ls') \| echo res<CR>
cd to the right directory, put the result of
ls in the
res variable and then echo the content of the variable showing the result of the command without showing the command itself
This is ugly but this is probably your best best.
Also a few unrelated but still relevant notes:
- Never use an
autocommand without an
- Don't create your filetype specific mapping with an autocommand you are bloating your config for nothing. Instead use a ftplugin
- Instead of having a mapping to invoke
pdftext you probaby want to have a read at
:h :compiler and