Quantcast
Channel: Using vim to force edit a file when you opened without permissions - Super User
Viewing all articles
Browse latest Browse all 5

Answer by yatsek for Using vim to force edit a file when you opened without permissions

$
0
0

Just want to cover case when there is no file write permissions.

:!chmod +w %:w!

In between vim will complain about changes in file (because of flags change) - it's obviously safe to ignore them


Viewing all articles
Browse latest Browse all 5

Trending Articles