Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我:nmap<cr>在正常模式下键入时,我只得到所有键映射的可滚动缓冲区。我想把它保存到一个文件中。
:nmap<cr>
使用:redir:
:redir
:redir > nmap.txt :silent nmap :redir END
然后nmap.txt将包含 的输出:nmap。
nmap.txt
:nmap