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

16 views
Skip to first unread message

Dedeco

unread,
Nov 13, 2012, 11:47:51 AM11/13/12
to vim_use
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

Dedeco

Christian Brabandt

unread,
Nov 13, 2012, 4:18:13 PM11/13/12
to vim_use
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.
Reply all
Reply to author
Forward
0 new messages