Which Vim command will save the current file without exiting?
A . q!
B . w-no-exit
C . wq!
D . w
E . w!
Answer: D
Explanation:
Save a File in Vim / Vi #The command to save a file in Vim is :w.
To save the file without exiting the editor, switch back to normal mode by pressing Esc,
type :w and hit Enter.
https://linuxize.com/post/how-to-save-file-in-vim-quit-editor/