1197
emacs moment
(lemmy.world)
Post funny things about programming here! (Or just rant about your favourite programming language.)
Use
:xyou plebThey just said
:wqin school, so thanks for the tip. Hard to believe it saves even when the file hasn't been changed if you use:wq. What is the use case for that? If the file gets changed in another program and you want to revert?? Edit: Just saw the comment about the modification times being updated.But what if you wanted to write even if there weren't changes?
Then you use
:wqAnd how often do you want to do that exactly?
habit lol. i use :w a lot so :wq feels like a natural extension
Heh yeah and it's not like it makes any difference; they're effectively the same thing.
:wqjust updates modification time even if there were no changes โ same as doing:wand:qseparately โ but:xdoesn't. Super intuitive interface ๐:x? Real Programmers useZZ.