X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=.vimrc;h=de0715620972bad8a97cb6bcb5a4bdb696c4e5e1;hp=b296a76ad6c331865afb262510be650b2d8e39dd;hb=4964561935671e6bc834b90024070b4756795ff3;hpb=771046be7227e5edb5a8da461a6d0eb2d1857cff diff --git a/.vimrc b/.vimrc index b296a76..de07156 100644 --- a/.vimrc +++ b/.vimrc @@ -1,3 +1,10 @@ +if !exists("g:_kratochvil_vimrc") + let g:_kratochvil_vimrc=1 + +autocmd! filetypedetect +"remove 'set tw=78': +autocmd! BufRead *.txt + "autocmd * * echo "test" "startup read existing file: BufReadPre BufReadPost BufEnter VimEnter @@ -11,6 +18,7 @@ autocmd BufCreate,VimEnter */home/{short,kratochvil,root}/src/*gnokii*/* let g:B autocmd BufCreate,VimEnter *.{i{,.as},s} let g:BufEnter_ts=20 autocmd BufEnter * call BufEnter() autocmd VimEnter * call BufEnter() +set runtimepath=.,$VIMRUNTIME function BufEnter() if exists("g:BufEnter_ts") let &ts=g:BufEnter_ts @@ -21,11 +29,13 @@ function BufEnter() set nocindent set nosmartindent set indentexpr= + + runtime! ./../../../../../../../../../../../.vimrc ./../../../../../../../../../../.vimrc ./../../../../../../../../../.vimrc ./../../../../../../../../.vimrc ./../../../../../../../.vimrc ./../../../../../../.vimrc ./../../../../../.vimrc ./../../../../.vimrc ./../../../.vimrc ./../../.vimrc ./../.vimrc ./.vimrc endif 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 @@ -39,15 +49,26 @@ set nowritebackup set exrc set nostartofline set nohlsearch -set fo=tcq +set fo=tcq1 set viminfo='100,\"1000,:100,/40 -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,/usr/src/redhat/BUILD/tags,/usr/src/redhat/BUILD/TAGS,/usr/include/tags,/usr/include/TAGS - -noremap p :set invpaste paste? -noremap q @q -noremap : @: -noremap N :next -noremap P :prev -noremap  G:r !date '+\%H:\%M:\%S-' kA -noremap d :set hlsearch/^[+-]\([^+-].*\\|\)$ -noremap D :set hlsearch/^[+-][+-]\([^+-].*\\|\)$ +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 P :prevzz +noremap M :cnzz +noremap L :cpzz +noremap g "myiw:grep-rw'm'. +noremap zz +noremap zz +noremap G:r !date '+\%H:\%M:\%S-'kA +noremap d :set hlsearch/^[+-]\([^+-].*\\|\)$ +noremap D :set hlsearch/^[+-][+-]\([^+-].*\\|\)$ +noremap w 0i /[^ ]vf.h"kyf./[^ ]vf.h"ly0x:r !date -d "`date '+\%Y'`-l-k" '+\%u'yypkV:!tr '1234567' 'PUSCPSN'jV:!tr '1234567' 'otttaoe'kJxv0xk0llllllplxxjddk0 +noremap * :let ic_save=&ic:set noic*:let &ic=ic_save +noremap # :let ic_save=&ic:set noic#:let &ic=ic_save + +endif "!exists("g:_kratochvil_vimrc")