:w filename.txt

Category: Vim/Neovim

:w filename.txt

Save to a new filename

Saves the current buffer as a new file with the given filename.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.