X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=.vimrc;h=fad69eebdddc76a94758d1e939283189f45bd80d;hp=00b77d7d5e0e1a41f6c00f3465936558b3363459;hb=6e66493cd56acfe7c6d6aebd9b16226866fd354d;hpb=52714da532d76625f157e459be053b2cf8f47451 diff --git a/.vimrc b/.vimrc index 00b77d7..fad69ee 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 @@ -85,6 +87,11 @@ 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 +" Termux types +noremap! [23~ noremap M :cnzz noremap L :cpzz noremap f "myiw:grep-Ew'm'`git ls-files` @@ -95,9 +102,12 @@ noremap G:r !date '+\%H:\%M:\%S-'kA noremap d :set hlsearch/^[+-]\([^+-].*\\|\)$ noremap D :set hlsearch/^[+-][+-]\([^+-].*\\|\)$ noremap w 0i /[^ ]vf.h"kyf./[^ ]vf.h"ly0x:r !date -d "`date '+\%Y'`-l-k" '+\%u'yypkV:!tr '1234567' 'PUSCPSN'jV:!tr '1234567' 'otttaoe'kJxv0xk0llllllplxxjddk0 +noremap s :syntax on:set syntax=wdiff noremap * :let ic_save=&ic:set noic*:let &ic=ic_save 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")