X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=.vimrc;h=5254f87a7ada8e70a8ce8f1b97079a3590a8c6e6;hp=57403c5bd2877de91c683a7bd1e3a845a1b71ddd;hb=579011a65a0171719e6ba3c12b942e4f613eded6;hpb=0406c526a947b25e4deeb7bb331c9d33a1eed202 diff --git a/.vimrc b/.vimrc index 57403c5..5254f87 100644 --- a/.vimrc +++ b/.vimrc @@ -73,6 +73,7 @@ let g:netrw_home = $HOME if &term=="xterm" || &term=="xterm-256color" set t_Co=8 endif +set mouse= " FIXME: Learn how to do :tag instead of :tselect with :cstag (used by :tag and CTRL-] if set cst) set nocst @@ -85,11 +86,12 @@ noremap : @: noremap :nextzz noremap :prevzz noremap N :tnzz -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 -endif +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 +" Termux types +noremap! [23~ noremap M :cnzz noremap L :cpzz noremap f "myiw:grep-Ew'm'`git ls-files`