Loading ...
Sorry, an error occurred while loading the content.

Re: How to make ":wa" really do ":w" on all files?

Expand Messages
  • Christian Brabandt
    Hi Dedeco! ... You can use :bufdo :w see :h :bufdo regards, Christian -- Die Bäu rin fragt: wo sitzt VW? ; der Bauer find s im WWW. -- You received this
    Message 1 of 2 , Nov 13, 2012
      Hi Dedeco!

      On Di, 13 Nov 2012, Dedeco wrote:

      > Hello,
      > I have an issue with ":wa" command. It only writes files that are
      > modified. Other files are left untouched.
      > It is only a problem to me, because ":w" really rewrites the file of
      > the active buffer, even when it is not changed.
      > Right now I manually do ":w" for each buffer, when I wanted to do
      > just ":wa".
      > Can you help me with a script or a hint of what I should try?
      > Thanks in advance

      You can use :bufdo :w

      see :h :bufdo

      Die Bäu'rin fragt: "wo sitzt VW?"; der Bauer find's im WWW.

      You received this message from the "vim_use" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php
    Your message has been successfully submitted and would be delivered to recipients shortly.