X-Git-Url: http://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=.vimrc;h=23c3a0c6ad62edfabf7be317391341a28332013f;hp=fd6a6f824df9253f17cc29ab97c436d102e699a8;hb=1308577dbf378d0263021750260585a12176b44e;hpb=c5b4eba076b89d86315fb9b5bb9b18d050072c21 diff --git a/.vimrc b/.vimrc index fd6a6f8..23c3a0c 100644 --- a/.vimrc +++ b/.vimrc @@ -65,7 +65,14 @@ set nohlsearch set noincsearch set nofoldenable set fo=tcq1 +"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 +84,13 @@ noremap : @: noremap :nextzz noremap :prevzz noremap N :tnzz -noremap P :tpzz +if $ANDROID_DATA!=#"/data" + " 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 @@ -90,5 +101,7 @@ noremap w 0i /[^ ]vf.h"kyf./[^ ]vf.h"ly0x:r !date -d "`date '+ 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 endif "!exists("g:_kratochvil_vimrc")