X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=.vimrc;h=44871db88402fcd903e7d3ead58825e3188ec18b;hp=0b1add52d5df2f964f8106645ffd53eddaa14c4f;hb=f99a3cc2b88f5e57faa842eb8e19d8cbb2ee5601;hpb=864842fa84eacc3864413e921219f1a5ed8e1d24 diff --git a/.vimrc b/.vimrc index 0b1add5..44871db 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 @@ -80,6 +87,7 @@ noremap N :tnzz noremap P :tpzz 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 +99,6 @@ 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")