summaryrefslogtreecommitdiffstats
path: root/games/fortune
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-06-25 21:05:55 +0000
committerbrian <brian@FreeBSD.org>2001-06-25 21:05:55 +0000
commite15e739f2d67ba22897aae0ada5ebb09eb2a8140 (patch)
treeb7ab2c95f46ed2c9d7c5c9d68179419c7a2b81b1 /games/fortune
parent13343a93d77d458ba32f6de4a9641e7bd40bcfd9 (diff)
downloadFreeBSD-src-e15e739f2d67ba22897aae0ada5ebb09eb2a8140.zip
FreeBSD-src-e15e739f2d67ba22897aae0ada5ebb09eb2a8140.tar.gz
What to do when :w tells you you haven't got permission.
Diffstat (limited to 'games/fortune')
-rw-r--r--games/fortune/datfiles/freebsd-tips7
1 files changed, 7 insertions, 0 deletions
diff --git a/games/fortune/datfiles/freebsd-tips b/games/fortune/datfiles/freebsd-tips
index 79f94ab..e2dfe08 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.
OpenPOWER on IntegriCloud