set nocompatible
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin
syntax enable
set background=dark
colorscheme solarized
set autochdir
set backup
set clipboard+=unnamed
set ignorecase
set infercase
set smartcase
set ruler
set showmode
set showcmd
set hlsearch
set showmatch
set ruler
set autoindent
set nojoinspaces
set wildmenu
set nu!
set lsp=3
set tabstop=4
set fileencodings=utf-8,latin2
set columns=180
set lines=55
set guifont=Consolas:h10:cEASTEUROPE
highlight CursorLine guifg=white guibg=blue
"namapovani klaves na prepinani velikosti pisma F8-F12"
map <F8> <ESC>:set guifont=Consolas:h8:cEASTEUROPE<CR>
map <F9> <ESC>:set guifont=Consolas:h9:cEASTEUROPE<CR>
map <F10> <ESC>:set guifont=Consolas:h10:cEASTEUROPE<CR>
map <F11> <ESC>:set guifont=Consolas:h12<CR>
map <F12> <ESC>:set guifont=Consolas:h16<CR>
" namapovani klavesy F2 na ulozeni souboru"
nmap <F2> :w<CR>
vmap <F2> <ESC><F2>
omap <F2> <ESC><F2>
imap <F2> <ESC><F2>
cmap <F2> <ESC><F2>
autocmd GUIEnter * :simalt ~x
set diffexpr=MyDiff()
function MyDiff()
let opt = '-a --binary '
if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
let arg1 = v:fname_in
if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif
let arg2 = v:fname_new
if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif
let arg3 = v:fname_out
if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif
let eq = ''
if $VIMRUNTIME =~ ' '
if &sh =~ '\<cmd'
let cmd = '""' . $VIMRUNTIME . '\diff"'
let eq = '"'
else
let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"'
endif
else
let cmd = $VIMRUNTIME . '\diff'
endif
silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3 . eq
endfunction