Spaghetti is all messy and tangled up; spaghetti code is the same.
when the order of execution was obfuscated due to excessive jumps and GOTOs
That’s one way to make your code messy and thus achieve spaghetti code.
In general, when some code is very poorly written, it becomes spaghetti code.
Personally, I have seen so many memes about exiting vim that by the time I got to use it for the first time, exiting it was a no-brainer.
For any newbies out there, the command is
:wq