Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is the first time my life has changed from just reading a Hacker News headline.


Make sure to see this comment about :X encrypting your file instead of exiting

https://news.ycombinator.com/item?id=34288446


I can't help but see that argument as post rationalization from people who have bee using :wq their whole life

\s

Been using :x from the start about 4 years ago and I never accidentally encrypted a file.


Same (but for a longer period of time). I'm kind of surprised people don't know this.


Same. Been using :x for about 20 years. Had no idea there was some similar encryption nonsense.


I've been using `rm` and `rm -rf` for as long without losing data, but I understand why some people like having a trash can. Different workflows are susceptible to different hazards.


If you're not parent, you will definitely be interested in : https://github.com/rushsteve1/trash-d


Have you learned about "ZZ" yet?



":u" updates file (writes only if changed) instead of ":w" (which always writes).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: