X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=.vimrc;h=ed7d99871cce85a34df8b48d9a6da4702c9dccde;hp=bb0af5cbf126af400c143fe259cbee02c458f86f;hb=8ceee09fa9fed3d073397cb1b284921253268578;hpb=33e7f3cd050c78347de49eccc0771c13ec80f893 diff --git a/.vimrc b/.vimrc index bb0af5c..ed7d998 100644 --- a/.vimrc +++ b/.vimrc @@ -35,7 +35,7 @@ function BufEnter() endfunction set encoding=utf-8 -set termencoding=iso-8859-2 +set termencoding=utf-8 " fileencoding is detected from fileencodings, first one for empty files set fileencodings=utf-8,iso-8859-2 @@ -49,18 +49,23 @@ set nowritebackup set exrc set nostartofline set nohlsearch -set fo=tcq +set noincsearch +set fo=tcq1 set viminfo='100,\"1000,:100,/40 +" 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 noremap p :set invpaste paste? noremap l :set invlist paste? noremap q @q noremap : @: -noremap N :nextzz -noremap B :cnzz -noremap P :prevzz -noremap O :cpzz +noremap :nextzz +noremap :prevzz +noremap N :tnzz +noremap P :tpzz +noremap M :cnzz +noremap L :cpzz noremap g "myiw:grep-rw'm'. noremap zz noremap zz