←back to thread

VIM Master

(github.com)
378 points Fluffyrnz | 1 comments | | HN request time: 0.224s | source
Show context
MrResearcher ◴[] No.45045368[source]
I generally recommend to exit either via :xa (save all & exit) or :qa! (discard all and exit), bound to ZZ or ZA respectively. If you exit via :q or :wq, it just closes the current buffer, and moves to the next one. E.g. if you have a neotree open along with the editor, you type :wq, it closes the editor buffer and moves you into the file tree, which can be very confusing for beginners.
replies(3): >>45045597 #>>45045634 #>>45049076 #
pwillia7 ◴[] No.45045597[source]
just do :wq :wq :wq :wq etc

:P

replies(5): >>45045614 #>>45046951 #>>45048683 #>>45049445 #>>45049799 #
1. yakshaving_jgt ◴[] No.45048683[source]
Noooooooo!

Make some key bindings. Bind leader to space, and make a leader mapping for writing to the file, and another mapping to quit. Avoid chords.