What do the symbols mean after running :ls in Vim?

See :help :ls.

The hash sign marks the alternate buffer. This is useful for switching between two buffers: it’s the buffer that you’ll switch to when using e.g. :b#. This is the only thing resembling most recently used that you’ll get with vim buffers, without plugins.

You also know from :ls which buffers have unsaved modifications: +.

Leave a Comment