Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " nice command line
- set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [ASCII=\%03.3b]\ [HEX=\%02.2B]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]
- set laststatus=2
- color epl
- set nowrap
- " every file is opened in a new tab
- autocmd BufReadPost * tab ball
- " sets the language of the menu (gvim)
- set langmenu=en_US.UTF-8
- set nocompatible
- source $VIMRUNTIME/vimrc_example.vim
- source $VIMRUNTIME/mswin.vim
- behave mswin
- 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
- " Switch syntax highlighting on
- syntax on
- " Save backup and temp files to Temp folder
- set backupdir=C:/Users/epl/Temp
- set directory=C:/Users/epl/Temp
- " flash screen instead of beeping
- set visualbell
- " Search incremental and highlight found strings
- set incsearch
- set hlsearch
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement