1 2 3 4 5 6 7 8
`: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.