X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=.vimrc;h=1ac303d7a4eb7022122fa1886d4081f0941fa320;hp=c9cb6c6f0462d5a7f879cd2a58192e7b426ede9c;hb=2bc2bafed478dff7bd4043da8064eb3fdef389b8;hpb=e7c4c4765d26dc6ecff58434f0a1c770f5d59744 diff --git a/.vimrc b/.vimrc index c9cb6c6..1ac303d 100644 --- a/.vimrc +++ b/.vimrc @@ -65,9 +65,14 @@ 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 +" https://bugzilla.redhat.com/show_bug.cgi?id=970190 +if &term=="xterm" || &term=="xterm-256color" + set t_Co=8 +endif " FIXME: Learn how to do :tag instead of :tselect with :cstag (used by :tag and CTRL-] if set cst) set nocst @@ -81,8 +86,12 @@ 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 noremap M :cnzz noremap L :cpzz +noremap f "myiw:grep-Ew'm'`git ls-files` noremap g "myiw:grep-rEw'm'. noremap zz noremap zz @@ -94,5 +103,7 @@ 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")