changeset 727:49538e2aad65 default tip

Add a useful editrc
author nanaya <me@nanaya.net>
date Tue, 24 Sep 2024 16:58:15 +0900
parents 78469331407e
children
files rc/editrc setup
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rc/editrc	Tue Sep 24 16:58:15 2024 +0900
@@ -0,0 +1,5 @@
+bind "\e[A" ed-search-prev-history
+bind "\e[B" ed-search-next-history
+bind "\e[1;3D" ed-prev-word
+bind "\e[1;3C" em-next-word
+bind "^R" em-inc-search-prev
--- a/setup	Mon Aug 19 17:04:13 2024 +0900
+++ b/setup	Tue Sep 24 16:58:15 2024 +0900
@@ -222,6 +222,7 @@
     _touch "${1}" "${HOME}/.hgrc.local"
     _rc "${1}" "hgignore_global" ".hgignore_global"
     _touch "${1}" "${HOME}/.hgignore_global.local"
+    _rc "${1}" "editrc" ".editrc"
     _rc "${1}" "inputrc" ".inputrc"
     _tmux "${1}"
     _vim_x "${1}" syntax