About 1,220,000 results
Open links in new tab
  1. What does :wq stand for in Vim? - Stack Overflow

    Mar 10, 2017 · Some of Vim's command names are obtuse to me and seem to have multiple aliases. It's easier for me to remember things if I know the reason they are used so... What does :wq stand for, if …

  2. root - :wq! command in vim - Stack Overflow

    Sep 10, 2018 · Recently, I read here about the :wq! command in vim. I don't understand how it can force-write a file without write permissions. This way, theoretically, one would be able to edit root files …

  3. vi - How do I exit Vim? - Stack Overflow

    May 24, 2017 · wq - save and quit x - this is similar to wq w and x accept a file name parameter. If vi already knows the filename to use (e.g. it was started with vi file), you need not give it here again. At …

  4. Vim: Exit (:wq) with trailing exclamation mark ! What's the purpose?

    Nov 24, 2019 · If one leaves an edited file with :q!, then it discards the updates. If one leaves with with :wq, then it writes the updates and quits Vim. But what's the purpose of :wq! (with a trailing exclamat...

  5. What's the use of the exclamation mark ('!') in Vim's command line ...

    Jun 22, 2010 · The ! qualifier tells Vim to force the operation. For example, if the file was read-only you would use :w! to write it anyway. If the file was modified and you wanted to quit without saving, you …

  6. Trying to Commit with vim. <esc> :wq not working? - Stack Overflow

    May 8, 2015 · 8 I am trying to commit with vim. I am seeing everywhere that you save the commit by doing <esc> :wq. But I do esc, and once I hit : it seems to go back to edit mode and writes the wq in …

  7. vim - What does the '!' really do when it's added to an ex command …

    Where is the question? vim may do whatever it wishes inside itself, e.g. to imagine it edits a root-owned r-- file under an ordinary user. But it’s only an application, and when about to actually do something …

  8. Why does `:Wq` in VIM cause my commit to fail later?

    Dec 24, 2015 · $ git commit $ error: There was a problem with the editor 'vi'. $ Please supply the message using either -m or -F option. Why does accidentally entering :Wq<ENTER> before doing …

  9. vi - Use of ! in VIM - Unix & Linux Stack Exchange

    The other answers were very complete about :wq! use case, for example. But the question was more open, about general use of ! For starters: the name of ! is "bang". Google search for "vim bang linux" …

  10. :wq in Vim does not save - Ask Ubuntu

    May 25, 2014 · You need to open the file using superuser permissions as follows: sudo vi /etc/dhcp/dhcpd.conf edit the file by pressing i and then save and exit by pressing Esc and then …