`:write-quit [path]` Aliases: `:wq`, `:x` Writes (saves) the buffer to disk, then closes the view. Identical to `:write [path]` followed by `:quit`. See those commands for more info.