: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