X-Git-Url: http://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=.vimrc;h=1ac303d7a4eb7022122fa1886d4081f0941fa320;hp=fd6a6f824df9253f17cc29ab97c436d102e699a8;hb=2bc2bafed478dff7bd4043da8064eb3fdef389b8;hpb=c5b4eba076b89d86315fb9b5bb9b18d050072c21 diff --git a/.vimrc b/.vimrc index fd6a6f8..1ac303d 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 @@ -78,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 @@ -90,5 +102,8 @@ 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 +noremap m :w:make endif "!exists("g:_kratochvil_vimrc")