Hacker News new | past | comments | ask | show | jobs | submit login

Do people really not know :x == :wq ???



They're not equivalent.

:w will touch the file (update mtime) whether you've made changes or not

:x will only update mtime if the file contents are actually changed


They are similar, but I stick to :wq. I fear mixing up :x with :X. Would probably catch the mistake when being asked to type the encryption key, but anyway


> Would probably catch the mistake when being asked to type the encryption key, but anyway

Can confirm. I have accidentally typed :X many times, but have never accidentally encrypted a file


TIL


Hi




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: