title: How does vim writes a read-only file?
body: <p>Sorry for the newbie question. I would like to know, how vim manages to write a read-only file. I've 555 permissions on a text file. But, when I open &amp; write something to it and does :w! , the changes I made to file are saved. I wonder how vim is doing this in background!!. Is it like changing permissions temporarily to 755 and writing to it and reverting the permissions back? Please enlighten.</p>