+"autocmd * * echo "test"
+
+"startup read existing file: BufReadPre BufReadPost BufEnter VimEnter
+"command read non-existing file: BufCreate BufNewFile BufEnter
+"immediate switch to existing file: BufReadPre BufReadPost BufEnter
+"immediate switch to non-existing file: BufNewFile BufEnter
+
+autocmd BufCreate,VimEnter * let g:BufEnter_ts= 8
+autocmd BufCreate,VimEnter */home/{short,kratochvil,root}/{src,WWW}/* let g:BufEnter_ts= 2
+autocmd BufCreate,VimEnter */home/{short,kratochvil,root}/src/*gnokii*/* let g:BufEnter_ts= 8
+autocmd BufCreate,VimEnter *.{i{,.as},s} let g:BufEnter_ts=20
+autocmd BufEnter * call BufEnter()
+autocmd VimEnter * call BufEnter()
+function BufEnter()
+ if exists("g:BufEnter_ts")
+ let &ts=g:BufEnter_ts
+ let &sw=g:BufEnter_ts
+ unlet g:BufEnter_ts
+ endif
+endfunction
+
+set encoding=utf-8
+set termencoding=iso-8859-2
+" fileencoding is detected from fileencodings, first one for empty files
+set fileencodings=utf-8,iso-8859-2
+
+ca X x
+syntax off