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.
nurple|6 months ago
prmoustache|6 months ago
pwillia7|6 months ago
:P
Izkata|6 months ago
johnisgood|6 months ago
mmahemoff|6 months ago
yakshaving_jgt|6 months ago
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.
MikeTheGreat|6 months ago
/s