Guest User

Untitled

a guest
Jun 18th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.04 KB | None | 0 0
  1. set nocompatible
  2. behave mswin
  3. filetype plugin indent on
  4.  
  5. call plug#begin('C:/Vim/vimfiles/bundle')
  6. Plug 'raymond-w-ko/vim-lua-indent'
  7. Plug 'tomasr/molokai'
  8. Plug 'vim-scripts/wombat'
  9. Plug 'tpope/vim-surround'
  10. Plug 'ctrlpvim/ctrlp.vim'
  11. Plug 'craigemery/vim-autotag'
  12. Plug 'tikhomirov/vim-glsl'
  13. Plug 'jiangmiao/auto-pairs'
  14. Plug 'reedes/vim-pencil'
  15. Plug 'Tetralux/odin.vim'
  16. call plug#end()
  17.  
  18. set completeopt=longest,menuone,preview
  19.  
  20. inoremap <expr> <C-Space> pumvisible() ? "\<C-n>" : "\<C-X><C-]><C-n>"
  21. inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
  22. inoremap <expr> <Esc> pumvisible() ? "\<C-e>" : "\<Esc>"
  23. imap <expr> <CR> pumvisible() ? "\<C-y><Esc><C-W>}i" : "\<CR>"
  24. inoremap <expr> <Down> pumvisible() ? "\<C-n>" : "\<Down>"
  25. inoremap <expr> <Up> pumvisible() ? "\<C-p>" : "\<Up>"
  26. inoremap <expr> <PageDown> pumvisible() ? "\<PageDown>\<C-p>\<C-n>" : "\<PageDown>"
  27. inoremap <expr> <PageUp> pumvisible() ? "\<PageUp>\<C-p>\<C-n>" : "\<PageUp>"
  28.  
  29. let g:autotagTagsFile='./tags'
  30. let g:autotagCtagsCmd='C:/ctags.exe'
  31. set tags+=./tag
  32.  
  33. set guifont=Inconsolata:h14
  34. set guioptions-=T
  35. set guioptions-=m
  36. set guioptions-=r
  37. set guioptions-=L
  38.  
  39. set noswapfile
  40.  
  41. let g:ctrlp_working_path_mode = 'rw'
  42. let g:ctrlp_use_caching = 0
  43. let g:ctrlp_root_markerns = ['make.bat', '.old']
  44.  
  45. let g:AutoPairsMultilineClose = 0
  46.  
  47. "General
  48. set history=500
  49. set autoread
  50. let mapleader = "\<Space>"
  51. let g:mapleader = "\<Space>"
  52.  
  53. nmap <leader>w :w!<cr>
  54.  
  55. " User Interface
  56. let $LANG='en'
  57.  
  58. set wildmenu
  59.  
  60. set wildignore=*.o,*~,*.pyc,*.pdb,*.obj,*.exe,*.dll,*.dat,*.exp,*.lib,*.ase,*.mlt,tags,*.bdf
  61. if has("win16") || has("win32")
  62. set wildignore+=.git\*,.hg\*,.svn\*,msvc_libs\*
  63. else
  64. set wildignore+=*/.git/*,*/.hg/*,*/.svn/*,*/.DS_Store,*/msvc_libs/*,*/usr/*
  65. endif
  66.  
  67. set ruler
  68.  
  69. set backspace=eol,start,indent
  70. set whichwrap+=<,>,h,l
  71.  
  72. set linebreak
  73. nnoremap <CR> a<CR><Esc>k$
  74.  
  75. let delimitMate_jump_expansion = 1
  76. let delimitMate_expand_cr = 1
  77.  
  78. set switchbuf=useopen,split
  79.  
  80. set ignorecase
  81. set smartcase
  82. set hlsearch
  83. set incsearch
  84. set magic
  85. set showmatch
  86. set mat=2
  87. set cursorline
  88.  
  89. set noerrorbells
  90. set vb t_vb=
  91. autocmd GUIEnter * set vb t_vb=
  92. set tm=500
  93.  
  94. syntax enable
  95. try
  96. colorscheme molokai
  97. catch
  98. endtry
  99. set encoding=utf8
  100. set ffs=unix,dos,mac
  101.  
  102. set nobackup
  103. set nowb
  104. set noswapfile
  105.  
  106. set smarttab
  107. set shiftwidth=4
  108. set tabstop=4
  109. set ai
  110. set si
  111. set cindent
  112. set wrap
  113.  
  114. set cc=84
  115.  
  116. map j gj
  117. map k gk
  118.  
  119. map <silent> <leader><cr> :noh<cr>
  120. noremap <silent> <leader>m :wa<cr>:silent make<cr>
  121. noremap <silent> <leader>r :wa<cr>:silent make run<cr>
  122. noremap <silent> <leader>n :wa<cr>:silent make meta<cr>
  123. noremap <silent> <leader>h :wa<cr>:silent make release run<cr>
  124.  
  125. map <C-j> <C-W>j
  126. map <C-k> <C-W>k
  127. map <C-h> <C-W>h
  128. map <C-l> <C-W>l
  129.  
  130. map 0 ^
  131. set laststatus=2
  132. set number
  133.  
  134. " set completeopt-=preview
  135.  
  136. map <MiddleMouse> <Nop>
  137. imap <MiddleMouse> <Nop>
  138. map <2-MiddleMouse> <Nop>
  139. imap <2-MiddleMouse> <Nop>
  140. map <3-MiddleMouse> <Nop>
  141. imap <3-MiddleMouse> <Nop>
  142. map <4-MiddleMouse> <Nop>
  143. imap <4-MiddleMouse> <Nop>
  144.  
  145. function WilliamStartIDE()
  146. vs
  147. cope
  148. endfunction
  149.  
  150. command IDE :call WilliamStartIDE()
  151. command CdCurrent :cd %:p:h
  152.  
  153. nnoremap Q <Nop>
Add Comment
Please, Sign In to add comment