2 votes
Accepted

Silently run two commands mapped by nnoremap in vim

I don't know if your end goal is to be able to chain any shell commands or not... nnoremap <silent> sp :silent r! date "+\%T"<CR>:silent !echo $PWD/'%' > /dev/null<CR>:...
user avatar
  • 10.4k

Only top scored, non community-wiki answers of a minimum length are eligible