commit a373fa500a2ee25cfe76a04e02a3c13cbad64abd
parent 8da098f5e0265e88e903a9df27d39af42ce860a4
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sun, 31 Oct 2021 11:14:09 +0100
docs: add a suggested rebind and three suggested unbinds to the sample rc
Diffstat:
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/doc/sample.nanorc.in b/doc/sample.nanorc.in
@@ -261,9 +261,20 @@
## <Ctrl+Backspace> delete the word to the left of the cursor with:
# bind ^H chopwordleft main
+## For a more mnemonic Comment keystroke (overriding Cut-from-cursor):
+# bind M-K comment main
+
## If you want ^L to just refresh the screen and not center the cursor:
# bind ^L refresh main
+## When you sometimes type M-J instead of M-K, or M-T instead of M-R:
+# unbind M-J main
+# unbind M-T main
+## (Those functions are still accessible through ^T^J and ^T^V.)
+
+## If you sometimes hit ^Z by accident (you can still suspend with ^T^Z):
+# unbind ^Z main
+
## For quickly uppercasing or lowercasing the word under the cursor.
## (These effectively do a Ctrl+Right followed by a Shift+Ctrl+Left,
## and then pipe the selected text through a sed command.)