summaryrefslogtreecommitdiffstats
path: root/games/fortune/datfiles/freebsd-tips
diff options
context:
space:
mode:
Diffstat (limited to 'games/fortune/datfiles/freebsd-tips')
-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