X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=.vimrc;h=08001f1b317869db4363338863533f7a9e12eb5d;hb=ae46c85fd8ba31452296c3eb7c1dc5d60f5049f6;hp=6b5e0a41b378936e19ad4f0f775e6e20b5aff44b;hpb=6982f7d3421f7cc1d17551600483d59708aee996;p=nethome.git diff --git a/.vimrc b/.vimrc index 6b5e0a4..08001f1 100644 --- a/.vimrc +++ b/.vimrc @@ -1,3 +1,6 @@ +if !exists("g:_kratochvil_vimrc") + let g:_kratochvil_vimrc=1 + "autocmd * * echo "test" "startup read existing file: BufReadPre BufReadPost BufEnter VimEnter @@ -11,11 +14,19 @@ 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 let &sw=g:BufEnter_ts unlet g:BufEnter_ts + + set autoindent + set nocindent + set nosmartindent + set indentexpr= + + runtime! ./../../../../../../../../../../../.vimrc ./../../../../../../../../../../.vimrc ./../../../../../../../../../.vimrc ./../../../../../../../../.vimrc ./../../../../../../../.vimrc ./../../../../../../.vimrc ./../../../../../.vimrc ./../../../../.vimrc ./../../../.vimrc ./../../.vimrc ./../.vimrc ./.vimrc endif endfunction @@ -26,7 +37,6 @@ set fileencodings=utf-8,iso-8859-2 ca X x syntax off -set autoindent set noerrorbells set ruler set ignorecase @@ -37,9 +47,10 @@ set nostartofline set nohlsearch set fo=tcq 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 +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,./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 :next @@ -47,3 +58,5 @@ noremap P :prev noremap  G:r !date '+\%H:\%M:\%S-' kA noremap d :set hlsearch/^[+-]\([^+-].*\\|\)$ noremap D :set hlsearch/^[+-][+-]\([^+-].*\\|\)$ + +endif "!exists("g:_kratochvil_vimrc")