X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=.vimrc;h=782bf0477c4cad83c9f13e8166a01b2f8a64c1e0;hp=c9cb6c6f0462d5a7f879cd2a58192e7b426ede9c;hb=7a08c1dfdbf249131513fb2b77baefbdb209a4bc;hpb=e7c4c4765d26dc6ecff58434f0a1c770f5d59744 diff --git a/.vimrc b/.vimrc index c9cb6c6..782bf04 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 @@ -80,9 +85,13 @@ noremap : @: noremap :nextzz noremap :prevzz noremap N :tnzz -noremap P :tpzz +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 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")