Search code examples
vimtabssave

How to save only the visible buffers of the current tab?


I work like this in VIM :

  • First tab displays buffers that I'm modifying
  • Other tabs display buffers that I just read/consult

Sometimes I accidentally modify buffers in the other tabs but do not want to save the changes for those buffers.

How can I save only the buffers displayed in the first (current) tab?


Solution

  • As said @romainl, to save modifications of (only) the currently displayed buffers, do :

    :windo update