How do you redirect command output to a register or file? :redir @a | silent messages | redir END Use :redir to capture command output. category: command-line tags: #command-line #redirect #output