X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=.vimrc;h=5254f87a7ada8e70a8ce8f1b97079a3590a8c6e6;hp=782bf0477c4cad83c9f13e8166a01b2f8a64c1e0;hb=39dd9e07c6fe3474faa3dea72a74c68bc3756ad5;hpb=c8c80f0a782c4b3a07b9d7f2d470455eab9b353d diff --git a/.vimrc b/.vimrc index 782bf04..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,10 +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 - 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`