X-Git-Url: http://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=.vimrc;h=782bf0477c4cad83c9f13e8166a01b2f8a64c1e0;hp=0b1add52d5df2f964f8106645ffd53eddaa14c4f;hb=c8c80f0a782c4b3a07b9d7f2d470455eab9b353d;hpb=864842fa84eacc3864413e921219f1a5ed8e1d24;ds=sidebyside diff --git a/.vimrc b/.vimrc index 0b1add5..782bf04 100644 --- a/.vimrc +++ b/.vimrc @@ -65,7 +65,15 @@ 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 set tags=./tags,./TAGS,./../tags,./../TAGS,./../../tags,./../../TAGS,./../../../tags,./../../../TAGS,./../../../../tags,./../../../../TAGS,./../../../../../tags,./../../../../../TAGS,./../../../../../../tags,./../../../../../../TAGS,./../../../../../../../tags,./../../../../../../../TAGS,./../../../../../../../../tags,./../../../../../../../../TAGS,./../../../../../../../../../tags,./../../../../../../../../../TAGS,./../../../../../../../../../../tags,./../../../../../../../../../../TAGS,./../../../../../../../../../../../tags,./../../../../../../../../../../../TAGS,./reactos/tags,./../reactos/tags,./../../reactos/tags,,./../../../reactos/tags,./../../../../reactos/tags,./../../../../../reactos/tags,./../../../../../../reactos/tags,./w32/inc/tags,./../w32/inc/tags,./../../w32/inc/tags,,./../../../w32/inc/tags,./../../../../w32/inc/tags,./../../../../../w32/inc/tags,./../../../../../../w32/inc/tags,./../../../../../../../w32/inc/tags,/usr/src/redhat/BUILD/tags,/usr/src/redhat/BUILD/TAGS,/usr/include/tags,/usr/include/TAGS @@ -77,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 @@ -91,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")