Advertisement
epl70

vimrc

May 19th, 2017
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.49 KB | None | 0 0
  1. " nice command line
  2. set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [ASCII=\%03.3b]\ [HEX=\%02.2B]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]
  3. set laststatus=2
  4.  
  5. color epl
  6. set nowrap
  7.  
  8. " every file is opened in a new tab
  9. autocmd BufReadPost * tab ball
  10.  
  11. " sets the language of the menu (gvim)
  12. set langmenu=en_US.UTF-8    
  13.  
  14. set nocompatible
  15. source $VIMRUNTIME/vimrc_example.vim
  16. source $VIMRUNTIME/mswin.vim
  17. behave mswin
  18.  
  19. set diffexpr=MyDiff()
  20. function MyDiff()
  21.   let opt = '-a --binary '
  22.   if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
  23.   if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
  24.   let arg1 = v:fname_in
  25.   if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif
  26.   let arg2 = v:fname_new
  27.   if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif
  28.   let arg3 = v:fname_out
  29.   if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif
  30.   let eq = ''
  31.   if $VIMRUNTIME =~ ' '
  32.     if &sh =~ '\<cmd'
  33.       let cmd = '""' . $VIMRUNTIME . '\diff"'
  34.       let eq = '"'
  35.     else
  36.       let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"'
  37.     endif
  38.   else
  39.     let cmd = $VIMRUNTIME . '\diff'
  40.   endif
  41.   silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3 . eq
  42. endfunction
  43.  
  44. " Switch syntax highlighting on
  45. syntax on
  46.  
  47. " Save backup and temp files to Temp folder
  48. set backupdir=C:/Users/epl/Temp
  49. set directory=C:/Users/epl/Temp
  50.  
  51. " flash screen instead of beeping
  52. set visualbell
  53.  
  54. " Search incremental and highlight found strings
  55. set incsearch
  56. set hlsearch
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement