Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 2.08 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. Plugin 'gmarik/Vundle.vim'
  13.  
  14. Plugin 'tmhedberg/SimpylFold'
  15. Plugin 'vim-scripts/indentpython.vim'
  16. Bundle 'Valloric/YouCompleteMe'
  17. Plugin 'vim-syntastic/syntastic'
  18. Plugin 'nvie/vim-flake8'
  19. Plugin 'jnurmine/Zenburn'
  20. Plugin 'altercation/vim-colors-solarized'
  21. Plugin 'scrooloose/nerdtree'
  22. Plugin 'jistr/vim-nerdtree-tabs'
  23. Plugin 'kien/ctrlp.vim'
  24. Plugin 'tpope/vim-fugitive'
  25. Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
  26.  
  27. " add all your plugins here (note older versions of Vundle
  28. " used Bundle instead of Plugin)
  29.  
  30. " ...
  31.  
  32. " All of your Plugins must be added before the following line
  33. call vundle#end()            " required
  34. filetype plugin indent on    " required
  35.  
  36. function SetPythonOptions()
  37.         set tabstop=4
  38.         set softtabstop=4
  39.         set shiftwidth=4
  40.         set textwidth=79
  41.         set expandtab
  42.         set autoindent
  43.         set fileformat=unix
  44. endfunction
  45.  
  46. " Python specific configs:
  47.  
  48. set encoding=utf-8
  49. set nu
  50. " Use system clipboard
  51. set clipboard=unnamed
  52.  
  53. "colorscheme solarized
  54. "set background=dark
  55. let python_highlight_all=1
  56. syntax on
  57.  
  58. " Enable folding
  59. set foldmethod=indent
  60. set foldlevel=99
  61.  
  62. " Fold with space
  63. nnoremap <space> za
  64.  
  65. " Show docstring for folded indents
  66. let g:SimpylFold_docstring_preview=1
  67.  
  68. au BufNewFile,BufRead *.py call SetPythonOptions()
  69.  
  70. au BufNewFile,BufRead *.js, *.html, *.css set tabstop=2
  71. au BufNewFile,BufRead *.js, *.html, *.css set softtabstop=2
  72. au BufNewFile,BufRead *.js, *.html, *.css set shiftwidth=2
  73.  
  74. " Flagging Unnecessary Whitespace
  75. " au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
  76.  
  77. " For you complete me plugin
  78. let g:ycm_autoclose_preview_window_after_completion=1
  79. map <leader>g  :YcmCompleter GoToDefinitionElseDeclaration<CR>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement