Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
iso1631
on Jan 7, 2022
|
parent
|
context
|
favorite
| on:
Vim prank: alias vim='vim -y'
ctrl-z does nothing (well it's mapped to undo in "easy" mode)
vidarh
on Jan 7, 2022
[–]
Ah. Yikes. But randomly bashing a few keys with control held before ^z still worked for me... Random key-bashing is always a good bet if stuck in vim.
(yes, I can usually get out of vim "properly" these days)
nostoc
on Jan 7, 2022
|
parent
[–]
Random key bashing in vim can have a lot of unforeseen consequences for whatever poor file you had opened.
vidarh
on Jan 7, 2022
|
root
|
parent
[–]
Given I never
intentionally
start vim, it's generally when I get thrown into editing some temporary file or other on some system where I haven't configured an editor. Not done any harm in the last 3 decades, so I think the odds are decent.
fomine3
on Jan 7, 2022
|
root
|
parent
[–]
If you open any file and just type "DZZ" (in capital), you delete the first line of file and save and quit.
vidarh
on Jan 8, 2022
|
root
|
parent
[–]
Even if I'd have done that, with the type of things I now and again end up accidentally thrown into vim for, that would hardly matter.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: