I sometimes open a read-only file in vi, forgetting to do chmod +w before opening it. Is there way to change the file from within the vi?
something like that !r chmod +w filename ?
is there a shortcut to refer to the currently open file without spelling it 50 letter name?
thanks