top | item 45045368

(no title)

MrResearcher | 6 months ago

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.

discuss

order

nurple|6 months ago

Neotree `close_if_last_window` config setting is helpful for this case.

prmoustache|6 months ago

There are cases where you would not necessarily want to save all buffers. To me it is an eletrical term.

pwillia7|6 months ago

just do :wq :wq :wq :wq etc

:P

Izkata|6 months ago

:wqa is the same as :xa and is probably easier to remember

johnisgood|6 months ago

That is what I do. I thought I was the only genius.

yakshaving_jgt|6 months ago

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.

MikeTheGreat|6 months ago

What does the :P command do?

/s