Advertisement
Guest User

Untitled

a guest
Jun 8th, 2018
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 2.83 KB | None | 0 0
  1. set nocompatible
  2.  
  3. if empty(glob("~/.vim/autoload/plug.vim"))
  4.     silent !curl -fLso ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  5.     autocmd VimEnter * PlugInstall
  6. end
  7.  
  8. call plug#begin("~/.vim/plugged/")
  9.  
  10. " Language
  11. Plug 'elzr/vim-json'
  12. Plug 'chr4/nginx.vim'
  13.  
  14. " Adds
  15. Plug 'kien/ctrlp.vim'
  16. Plug 'amiorin/vim-project'
  17. Plug 'vim-syntastic/syntastic'
  18. Plug 'Valloric/YouCompleteMe'
  19. Plug 'python-mode/python-mode'
  20.  
  21. " Interface
  22. Plug 'scrooloose/nerdtree'
  23. Plug 'majutsushi/tagbar'
  24. Plug 'airblade/vim-gitgutter'
  25. Plug 'SirVer/ultisnips'
  26. Plug 'honza/vim-snippets'
  27.  
  28. " Visual
  29. Plug 'chriskempson/base16-vim'
  30. Plug 'vim-airline/vim-airline'
  31. Plug 'vim-airline/vim-airline-themes'
  32.  
  33. " Code
  34. Plug 'chiel92/vim-autoformat'
  35. Plug 'jiangmiao/auto-pairs'
  36. Plug 'tpope/vim-surround'
  37. Plug 'tpope/vim-commentary'
  38.  
  39. call plug#end()
  40.  
  41. " General
  42. syntax on
  43. set t_Co=256
  44. colorscheme base16-default-dark
  45. set termguicolors
  46. set number
  47. set laststatus=2
  48. set noshowmode
  49. set nofoldenable
  50.  
  51. " Disable aditional files.
  52. set noswapfile
  53. set nobackup
  54. set encoding=utf-8
  55. set backspace=indent,eol,start
  56.  
  57. " Indent settings
  58. set autoindent cindent smartindent
  59. set expandtab
  60. set shiftwidth=4
  61. set softtabstop=4
  62.  
  63. " Buffer settings
  64. set hidden
  65. set nowrap
  66. set showmatch
  67.  
  68. " Markdown
  69. let g:vim_markdown_no_extensions_in_markdown = 1
  70.  
  71. " Copy and Paste
  72. nmap <C-V> "+gP
  73. imap <C-V> <ESC><C-V>i
  74. vmap <C-C> "+y
  75.  
  76. " Json and JS config
  77. autocmd FileType json set sw=2
  78. autocmd FileType json set ts=2
  79. autocmd FileType json set sts=2
  80.  
  81. " Vim-Json
  82. let g:vim_json_syntax_conceal = 0
  83.  
  84. " Tagbar
  85. nmap <F2> :TagbarToggle<CR>
  86.  
  87. " NerdTree
  88. nmap <F1> :NERDTreeToggle<CR>
  89.  
  90. " Tabs
  91. nmap <C-Left> :tabprevious<CR>
  92. nmap <C-Right> :tabnext<CR>
  93. imap <C-Left> <ESC>:tabprevious<CR>
  94. imap <C-Right> <ESC>:tabnext<CR>
  95.  
  96. " Project
  97. let g:project_use_nerdtree = 1
  98. set rtp+=~/.vim/plugged/vim-Project/
  99. call project#rc()
  100. try
  101.     source ~/.projects.vim
  102. catch
  103.     " Ignore
  104. endtry
  105.  
  106. " Syntastic
  107. let g:syntastic_python_checkers = ['pylint', 'pep8', 'pyflakes']
  108.  
  109. " Airline
  110. let g:airline#extensions#tabline#enabled = 1
  111. let g:airline_powerline_fonts = 1
  112.  
  113. " YouCompleteMe
  114. let g:ycm_python_binary_path = 'python'
  115. let g:ycm_server_python_interpreter = 'python'
  116.  
  117. " PyMode
  118. let g:pymode_options_max_line_length = 119
  119. let g:pymode_lint = 1
  120. let g:pymode_lin_on_write = 1
  121. let g:pymode_lint_unmodified = 1
  122. let g:pymode_lint_message = 1
  123. let g:pymode_lint_checkers = ['pylint', 'pep8', 'pyflakes']
  124. let g:pymode_lint_cwindow = 0
  125. let g:pymode_python = 'python3'
  126. let g:pymode_virtualenv = 1
  127.  
  128. " Pep8
  129. let g:pymode_lint_options_pep8 =
  130.         \ {'max_line_length': g:pymode_options_max_line_length}
  131.  
  132. let g:UltiSnipsExpandTrigger="<c-m>"
  133. let g:UltiSnipsJumpForwardTrigger="<c-b>"
  134. let g:UltiSnipsJumpBackwardTrigger="<c-z>"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement