VIM: Save As

#####Save as in VIM, there are two ways – ( Assumed that I’m editing a.txt. )
**:w b.txt** will write a.txt’s content to the file b.txt while keeping a.txt as the opened buffer in vim.
**:sav b.txt** will first write a.txt’s content to the file b.txt, then close buffer a.txt, finally open b.txt as the current buffer.

Add a Comment