News for hackers. Stuff that matters.
Re:I Quit (Vim) by ggm on Saturday April 03, 2021 @10:06PM (#26686368)
:w! Forces write even if the file exists, eg is chmod -r read-only.

:q! quits even if the buffer isn't saved.

:wq! Forces write and quits anyway.

It can't always work,you have to own the file and have the correct permissions for the directory. Sudo root it overrides the file/dir chmod mask constraints. It can't write over chflags locked files.

There are no comments on this comment yet.