5 ms·
Do people really not know :x == :wq ???
by PartiallyTyped 3y ago
Do people really not know :x == :wq ???
- upon_drumhead 3y agoTIL
- hashtag-til 3y agoHi
- lucky_cloud 3y agoThey'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
- myth2018 3y agoThey 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
- pxc 3y ago> 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