Vi mode: don't bind ^L
authorMikael Berthe <mikael@lilotux.net>
Wed, 18 Jul 2012 20:06:06 +0200
changeset 19 e0948736d271
parent 18 7095298e6f7d
child 20 4d2cdb660005
Vi mode: don't bind ^L
zshrc.d/60-vi-showmode.zrc
--- a/zshrc.d/60-vi-showmode.zrc	Tue Jul 17 21:45:07 2012 +0200
+++ b/zshrc.d/60-vi-showmode.zrc	Wed Jul 18 20:06:06 2012 +0200
@@ -47,11 +47,14 @@
 
 screenclear () {
    echo -n "\033[2J\033[400H"
+   # 2J = Erase All
+   # 400H = Cursor at the bootom
+   # (Use \033[H to move the cursor to the first line...)
    builtin zle .redisplay
    show_mode "$__string_insert"
 }
 zle -N screenclear
-bindkey "" screenclear
+#bindkey "^L" screenclear
 
 function zle-line-finish {
    export RPS1="$__string_insert"