X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=.vimrc;h=5254f87a7ada8e70a8ce8f1b97079a3590a8c6e6;hp=251c178c50fd53adad6abdfad98b45eec144d5a9;hb=e7cafb4c67bc388c7e4bcef1b7719944910a34f8;hpb=e999d7fbc8f9c89ec8bc4a6eb5e2cb798fa8450e diff --git a/.vimrc b/.vimrc index 251c178..5254f87 100644 --- a/.vimrc +++ b/.vimrc @@ -65,6 +65,7 @@ set nohlsearch set noincsearch set nofoldenable set fo=tcq1 +set nojoinspaces "set textwidth=78 set viminfo='100,\"1000,:100,/40 let g:netrw_home = $HOME @@ -72,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 @@ -84,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` @@ -103,5 +107,6 @@ noremap # :let ic_save=&ic:set noic#:let &ic=ic_save noremap :w:!aspell --check '%':e noremap gq] gq/^. \?$ noremap 1 :w:make -j1 +noremap m :w:make endif "!exists("g:_kratochvil_vimrc")