X-Git-Url: https://git.jankratochvil.net/?a=blobdiff_plain;f=.vimrc;h=15df0d7042417216b110333869293cf6f5c957fc;hb=3e5c2346122a5711eb890c9de44a7f9d9d36a623;hp=08764172398c2524ab5b0348c58f4a66815f2e6a;hpb=91bf2c742150450bbdcfc9f0d9333b313d00576a;p=nethome.git diff --git a/.vimrc b/.vimrc index 0876417..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 P$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