Hacker News new | ask | show | jobs
by lucky_cloud 1044 days ago
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