diff options
author | Brian Somers <brian@FreeBSD.org> | 2001-06-25 21:05:55 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 2001-06-25 21:05:55 +0000 |
commit | 4a824adfc03072eab9e1236740a3dc153d358807 (patch) | |
tree | b7ab2c95f46ed2c9d7c5c9d68179419c7a2b81b1 /games | |
parent | d118fd8a39020247ec2ad815da6c56865caa86b7 (diff) | |
download | src-4a824adfc03072eab9e1236740a3dc153d358807.tar.gz src-4a824adfc03072eab9e1236740a3dc153d358807.zip |
What to do when :w tells you you haven't got permission.
Notes
Notes:
svn path=/head/; revision=78777
Diffstat (limited to 'games')
-rw-r--r-- | games/fortune/datfiles/freebsd-tips | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/games/fortune/datfiles/freebsd-tips b/games/fortune/datfiles/freebsd-tips index 79f94ab2fd2c..e2dfe084860a 100644 --- a/games/fortune/datfiles/freebsd-tips +++ b/games/fortune/datfiles/freebsd-tips @@ -487,3 +487,10 @@ use ^w to switch between the two. % sh (the default bourne shell in FreeBSD) supports command-line editing. Just ``set -o emacs'' or ``set -o vi'' to enable it. +% +When you've made modifications to a file in vi(1) and then find that +you can't write it, type ``<ESC>!rm -f %'' then ``:w!'' to force the +write + +This won't work if you don't have write permissions to the directory +and probably won't be suitable if you're editing through a symbolic link. |