From: Jan Kratochvil Date: Fri, 22 Apr 2022 15:45:39 +0000 (+0200) Subject: .vimrc: Another Termux workaround. X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=commitdiff_plain;h=3e5c2346122a5711eb890c9de44a7f9d9d36a623 .vimrc: Another Termux workaround. --- 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