Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.12 KB | None | 0 0
  1. filetype off
  2. filetype plugin indent off
  3.  
  4. set nocompatible
  5. set hlsearch
  6.  
  7. call plug#begin('~/.vim/plugged')
  8.  
  9. " originalrepos on github
  10. Plug 'vim-scripts/VimClojure'
  11. Plug 'Shougo/vimproc'
  12. Plug 'Shougo/vimshell'
  13. Plug 'Shougo/unite.vim'
  14. Plug 'Shougo/neosnippet'
  15.  
  16. if has('nvim')
  17. Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
  18. else
  19. Plug 'Shougo/deoplete.nvim'
  20. Plug 'roxma/nvim-yarp'
  21. Plug 'roxma/vim-hug-neovim-rpc'
  22. endif
  23. Plug 'roxma/nvim-yarp'
  24. Plug 'roxma/vim-hug-neovim-rpc'
  25. Plug 'Shougo/neosnippet-snippets'
  26.  
  27. Plug 'Shougo/vimfiler'
  28. Plug 'jpalardy/vim-slime'
  29. "Plug 'jmcantrell/vim-virtualenv'
  30. Plug 'nathanaelkane/vim-indent-guides'
  31. Plug 'pangloss/vim-javascript'
  32. Plug 'leafgarland/typescript-vim'
  33. Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
  34. Plug 'rust-lang/rust.vim'
  35. Plug 'altercation/vim-colors-solarized'
  36. Plug 'tpope/vim-endwise'
  37. "Plug 'plasticboy/vim-markdown'
  38. Plug 'kannokanno/previm'
  39. Plug 'tyru/open-browser.vim'
  40. Plug 'w0rp/ale'
  41. Plug 'Quramy/tsuquyomi'
  42. Plug 'elzr/vim-json'
  43. Plug 'posva/vim-vue'
  44. Plug 'stephpy/vim-yaml'
  45. Plug 'editorconfig/editorconfig-vim'
  46. call plug#end()
  47.  
  48. "let g:jedi#popup_select_first = 0
  49. "let g:jedi#auto_vim_configuration = 1
  50.  
  51. "autocmd FileType python setlocal omnifunc=jedi#completions
  52.  
  53. let g:deoplete#enable_at_startup = 1
  54.  
  55. "PlugLazy "lambdalisue/vim-pyenv", {
  56. " \ "depends": ['davidhalter/jedi-vim'],
  57. " \ "autoload": {
  58. " \ "filetypes": ["python", "python3", "djangohtml"]
  59. " \ }}
  60.  
  61. "let g:syntastic_mode_map = {
  62. " \ 'mode': 'active',
  63. " \ 'active_filetypes': ['php', 'coffeescript', 'sh', 'vim'],
  64. " \ 'passive_filetypes': ['haskell', 'python']
  65. " \}
  66.  
  67.  
  68. let g:ale_linters = {
  69. \ 'javascript': ['eslint'],
  70. \ 'typescript': ['tslint'],
  71. \ 'vue': ['eslint'],
  72. \ 'python': ['flake8'],
  73. \ 'yaml': ['yamllint'],
  74. \ }
  75. let g:ale_python_flake8_options="--ignore=E501 --max-line-length=120"
  76.  
  77. let g:ale_fixers = {
  78. \ 'javascript': ['prettier'],
  79. \ 'typescript': ['prettier'],
  80. \ 'json': ['prettier'],
  81. \ 'vue': ['prettier'],
  82. \ 'scss': ['prettier'],
  83. \ }
  84.  
  85. " 'python': ['autopep8'],
  86. "let g:ale_statusline_format = ['⨉ %d', '⚠ %d', '⬥ ok']
  87. "
  88. let g:ale_fix_on_save = 1
  89. let g:ale_javascript_prettier_use_local_config = 1
  90. let g:ale_lint_on_save = 1
  91. let g:ale_lint_on_text_changed = 0
  92. nmap <silent> <C-k> <Plug>(ale_previous_wrap)
  93. nmap <silent> <C-j> <Plug>(ale_next_wrap)
  94.  
  95. let g:typescript_indent_disable = 1
  96.  
  97. " Plugins settings
  98. let g:go_fmt_command = "goimports"
  99. let g:go_list_type = "quickfix"
  100. "Golang
  101. "let g:go_auto_type_info = 1
  102. let g:go_gocode_unimported_packages = 1
  103. "Rust
  104. let g:rustfmt_autosave = 1
  105.  
  106. "let g:syntastic_python_checkers=['flake8', 'python']
  107. "let g:syntastic_python_flake8_args='--max-line-length=120'
  108. "let g:syntastic_scss_checkers = ['sass_lint']
  109. """"for eslint
  110. "let g:syntastic_javascript_checkers=['eslint']
  111. "" エラー行に sign を表示
  112. "let g:syntastic_enable_signs = 1
  113. "" location list を常に更新
  114. "let g:syntastic_always_populate_loc_list = 0
  115. "" location list を常に表示
  116. "let g:syntastic_auto_loc_list = 0
  117. "" ファイルを開いた時にチェックを実行する
  118. "let g:syntastic_check_on_open = 0
  119. "" :wq で終了する時もチェックする
  120. "let g:syntastic_check_on_wq = 0
  121. """" end for eslint
  122.  
  123. inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
  124.  
  125. let g:flake8_max_line_length=200
  126. let g:flake8_ignore="E501,W293"
  127. cabbrev l call Flake8()
  128.  
  129. let g:vim_json_syntax_conceal = 0
  130.  
  131. "cabbrev E Explore
  132.  
  133. if has("autocmd")
  134. augroup redhat
  135. " In text files, always limit the width of text to 78 characters
  136. autocmd BufRead *.txt set tw=78
  137. " When editing a file, always jump to the last cursor position
  138. autocmd BufReadPost *
  139. \ if line("'\"") > 0 && line ("'\"") <= line("$") |
  140. \ exe "normal! g'\"" |
  141. \ endif
  142. augroup END
  143. endif
  144.  
  145. "syntax enable
  146. set background=dark
  147. colorscheme solarized
  148.  
  149. "filetype on
  150. "filetype indent on
  151. "syntax enable
  152.  
  153. syntax on
  154. set autoindent
  155. set smartindent
  156. set cindent
  157. set expandtab
  158. set tabstop=2
  159. set softtabstop=2
  160. set shiftwidth=2
  161.  
  162. set viminfo='100,<1000,s100,h
  163.  
  164. set list
  165. set listchars=tab:>.,trail:_,extends:>,precedes:<
  166.  
  167. filetype plugin indent on " required!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement