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.
When I type :nmap<cr> in normal mode, I just get a scrollable buffer of all the keymappings. I'd like to save this to a file.
:nmap<cr>
Use :redir:
:redir
:redir > nmap.txt :silent nmap :redir END
Then nmap.txt will contain the output of :nmap.
nmap.txt
:nmap