summaryrefslogtreecommitdiff
path: root/usr.bin/mg/mg.1
diff options
context:
space:
mode:
authorMark Lumsden <lum@cvs.openbsd.org>2018-12-18 20:35:35 +0000
committerMark Lumsden <lum@cvs.openbsd.org>2018-12-18 20:35:35 +0000
commite517a0365c20bda023bfedc744de08622c91aa48 (patch)
tree32c447c9801f8f6af1ed614227454d363b7ff704 /usr.bin/mg/mg.1
parent5842c8c8690bd09c56ce07a5bff6e596c39772ab (diff)
Make mg kill a region if the 'delete' or 'backspace' keys are pressed
and a region is selected. The contents of the region are then placed into the kill buffer. Like emacs.
Diffstat (limited to 'usr.bin/mg/mg.1')
-rw-r--r--usr.bin/mg/mg.18
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/mg/mg.1 b/usr.bin/mg/mg.1
index 6d4f22ff1f2..b40151ee29d 100644
--- a/usr.bin/mg/mg.1
+++ b/usr.bin/mg/mg.1
@@ -1,7 +1,7 @@
-.\" $OpenBSD: mg.1,v 1.109 2018/12/13 14:59:16 lum Exp $
+.\" $OpenBSD: mg.1,v 1.110 2018/12/18 20:35:34 lum Exp $
.\" This file is in the public domain.
.\"
-.Dd $Mdocdate: December 13 2018 $
+.Dd $Mdocdate: December 18 2018 $
.Dt MG 1
.Os
.Sh NAME
@@ -475,6 +475,8 @@ Delete backwards
characters.
Like delete-char, this actually does a kill if presented
with an argument.
+If the cursor is in a region, the region is removed and placed
+in to the kill buffer.
.It delete-blank-lines
Delete blank lines around dot.
If dot is sitting on a blank line, this command
@@ -486,6 +488,8 @@ Delete
characters forward.
If any argument is present, it kills rather than deletes,
saving the result in the kill buffer.
+If the cursor is in a region, the region is removed and placed
+in to the kill buffer.
.It delete-horizontal-space
Delete any whitespace around the dot.
.It delete-leading-space