Advertisement
Guest User

Untitled

a guest
Jul 26th, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. set nocompatible " required
  2. filetype off " required
  3.  
  4. " set the runtime path to include Vundle and initialize
  5. set rtp+=~/.vim/bundle/Vundle.vim
  6. call vundle#begin()
  7.  
  8. " alternatively, pass a path where Vundle should install plugins
  9. "call vundle#begin('~/some/path/here')
  10.  
  11. " let Vundle manage Vundle, required
  12. " Add all your plugins here (note older versions of Vundle used Bundle instead of Plugin)
  13. Plugin 'vim-scripts/indentpython.vim'
  14. Plugin 'scrooloose/syntastic'
  15. Plugin 'nvie/vim-flake8'
  16. Plugin 'scrooloose/nerdtree'
  17. Plugin 'tpope/vim-fugitive'
  18. Plugin 'valloric/youcompleteme'
  19.  
  20. " All of your Plugins must be added before the following line
  21. call vundle#end() " required
  22. filetype plugin indent on " required
  23.  
  24. " Enable folding
  25. set foldmethod=indent
  26. set foldlevel=99
  27.  
  28. " Enable folding with the spacebar
  29. nnoremap <space> za
  30.  
  31. set splitbelow
  32. set splitright
  33.  
  34. "split navigations
  35. nnoremap <C-J> <C-W><C-J>
  36. nnoremap <C-K> <C-W><C-K>
  37. nnoremap <C-L> <C-W><C-L>
  38. nnoremap <C-H> <C-W><C-H>
  39.  
  40. au BufNewFile,BufRead *.py
  41. \ set tabstop=4 |
  42. \ set softtabstop=4 |
  43. \ set shiftwidth=4 |
  44. \ set textwidth=79 |
  45. \ set expandtab |
  46. \ set autoindent |
  47. \ set fileformat=unix |
  48.  
  49. au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
  50.  
  51. set encoding=utf-8
  52.  
  53.  
  54. let g:ycm_autoclose_preview_window_after_completion=1
  55. map <leader>g :YcmCompleter GoToDefinitionElseDeclaration<CR>
  56.  
  57. set nu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement