Advertisement
Guest User

My _vimrc

a guest
May 24th, 2019
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.93 KB | None | 0 0
  1. source $VIMRUNTIME/vimrc_example.vim
  2.  
  3. set diffexpr=MyDiff()
  4. function! MyDiff()
  5.   let opt = '-a --binary '
  6.   if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
  7.   if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
  8.   let arg1 = v:fname_in
  9.   if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif
  10.   let arg1 = substitute(arg1, '!', '\!', 'g')
  11.   let arg2 = v:fname_new
  12.   if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif
  13.   let arg2 = substitute(arg2, '!', '\!', 'g')
  14.   let arg3 = v:fname_out
  15.   if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif
  16.   let arg3 = substitute(arg3, '!', '\!', 'g')
  17.   if $VIMRUNTIME =~ ' '
  18.     if &sh =~ '\<cmd'
  19.       if empty(&shellxquote)
  20.         let l:shxq_sav = ''
  21.         set shellxquote&
  22.       endif
  23.       let cmd = '"' . $VIMRUNTIME . '\diff"'
  24.     else
  25.       let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"'
  26.     endif
  27.   else
  28.     let cmd = $VIMRUNTIME . '\diff'
  29.   endif
  30.   let cmd = substitute(cmd, '!', '\!', 'g')
  31.   silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3
  32.   if exists('l:shxq_sav')
  33.     let &shellxquote=l:shxq_sav
  34.   endif
  35. endfunction
  36.  
  37. " Specify a directory for plugins
  38. " - For Neovim: ~/.local/share/nvim/plugged
  39. " - Avoid using standard Vim directory names like 'plugin'
  40. call plug#begin('~/.vim/plugged')
  41.  
  42. " On-demand loading
  43. Plug 'scrooloose/nerdtree', { 'on':  'NERDTreeToggle' }
  44. Plug 'vim-scripts/indentpython.vim'
  45. Plug 'vim-syntastic/syntastic'
  46. Plug 'nvie/vim-flake8'
  47. Plug 'jnurmine/Zenburn'  
  48. Plug 'kien/ctrlp.vim'
  49. " Plug 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
  50.  
  51. " Initialize plugin system
  52. call plug#end()
  53.  
  54. " ---------------------------------------------------------------
  55. " ----------------------------My_conf----------------------------
  56.  
  57. " >>>SET<<<
  58.  
  59. set number
  60. set encoding=utf-8
  61. set t_Co=256
  62.  
  63. colorscheme zenburn
  64. language en
  65.  
  66. let python_highlight_all=1
  67. syntax on
  68.  
  69. nnoremap <F5> :NERDTreeToggle<CR>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement