4 ms·
Sorry, I do not get it? what is :wq ?
by gggggggg 12y ago
Sorry, I do not get it?
what is :wq ?
- daeken 12y agoIt writes and quits in vi(m).
- deleted 12y ago[deleted]
- avidas 12y agoWrite and quit on vi/vim, its quite hilarious to see them actually on code :)
- rch 12y agoHappens to me all the time if I'm in an IDE for some reason.
- girvo 12y agoYou use that command in Vim to save and exit the file. But as a modal editor, if you're in insert mode, you'll type it into the file as text instead of a command, thus the search here.
- deleted 12y ago[deleted]
- iamdev 12y agoThey're showing how often coders accidentally write ":wq" in their code, which is a common command in vim (save and quit).
- spyspy 12y agoIt's the method of saving and exiting a text file in Vim. ':' enters command input mode, 'w' writes to disk and 'q' quits the program. These people mistakenly typed and saved it in non-vim-edited text files.
- rzimmerman 12y agoIn vi it's save (write) then quit vi. But if you're in the wrong mode it just thinks you're typing in the file.