From 3e5c2346122a5711eb890c9de44a7f9d9d36a623 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Fri, 22 Apr 2022 17:45:39 +0200 Subject: [PATCH] .vimrc: Another Termux workaround. --- .vimrc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.vimrc b/.vimrc index 4d92b55..15df0d7 100644 --- a/.vimrc +++ b/.vimrc @@ -89,10 +89,12 @@ noremap : @: noremap :nextzz noremap :prevzz noremap N :tnzz -noremap P :tpzz -"P would auto-type random data after starting it on recent distros or Termux. -"read(0, "\33P1$r0 q\33\\\33[?12;4$y", 4096) = 19 -noremap P1$r0q +if $ANDROID_DATA!=#"/data" && $SSH_CLIENT!~"^2a02:2b88:2:1::3b57:[89]f " + " It auto-types random data after starting it from Termux + " Now all VIM version are affected: + noremap P :tpzz + noremap P1$r0q +endif " Termux types noremap! [23~ noremap M :cnzz -- 1.8.3.1