News for hackers. Stuff that matters.
Re:VIMMaster by pwillia7 on Wednesday August 27, 2025 @05:36PM (#45045597)
just do :wq :wq :wq :wq etc

:P

Re:VIMMaster by Izkata on Wednesday August 27, 2025 @05:38PM (#45045614)
:wqa is the same as :xa and is probably easier to remember
Re:VIMMaster by opan on Wednesday August 27, 2025 @08:28PM (#45046955)
Are you sure? IIRC :x only writes the file again if there's a change where :w(q) always writes again (which takes longer when editing a remote file via scp://). For a non-exiting version of :x there is :up. I bound :up to <leader>fs after I learned about it. I used to have :w on the same keybind so it was a straight upgrade. Now I can just quick hit it at any time and there's no waiting around if the file hadn't changed. Saves some time and annoyances.
Re:VIMMaster by Izkata on Thursday August 28, 2025 @11:15AM (#45053250)
Yes, through ":help wqa" which lists it as such and double checking with a quick test. It doesn't write unchanged files, same as :xa instead of being an exact "all" version of :wq
Re:VIMMaster by MikeTheGreat on Wednesday August 27, 2025 @08:27PM (#45046951)
What does the :P command do?

/s

Re:VIMMaster by nthdeui on Thursday August 28, 2025 @01:39AM (#45048785)

                                                        :P :Print                                                                                      
  :[range]P[rint] [count] [flags]                                                                                                                        
                          Just as ":print".  Was apparently added to Vi for                                                                              
                          people that keep the shift key pressed too long...                                                                             
                          This command is not supported in Vim9 script.                                                                                  
                          Note: A user command can overrule this command.                                                                                
                          See ex-flags for [flags].
Re:VIMMaster by yakshaving_jgt on Thursday August 28, 2025 @01:22AM (#45048683)
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.

Re:VIMMaster by johnisgood on Thursday August 28, 2025 @03:27AM (#45049445)
That is what I do. I thought I was the only genius.
Re:VIMMaster by mmahemoff on Thursday August 28, 2025 @04:26AM (#45049799)
Or do ZZZZZZZZZZ