Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- filetype off
- filetype plugin indent off
- set nocompatible
- set hlsearch
- call plug#begin('~/.vim/plugged')
- " originalrepos on github
- Plug 'vim-scripts/VimClojure'
- Plug 'Shougo/vimproc'
- Plug 'Shougo/vimshell'
- Plug 'Shougo/unite.vim'
- Plug 'Shougo/neosnippet'
- if has('nvim')
- Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
- else
- Plug 'Shougo/deoplete.nvim'
- Plug 'roxma/nvim-yarp'
- Plug 'roxma/vim-hug-neovim-rpc'
- endif
- Plug 'roxma/nvim-yarp'
- Plug 'roxma/vim-hug-neovim-rpc'
- Plug 'Shougo/neosnippet-snippets'
- Plug 'Shougo/vimfiler'
- Plug 'jpalardy/vim-slime'
- "Plug 'jmcantrell/vim-virtualenv'
- Plug 'nathanaelkane/vim-indent-guides'
- Plug 'pangloss/vim-javascript'
- Plug 'leafgarland/typescript-vim'
- Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
- Plug 'rust-lang/rust.vim'
- Plug 'altercation/vim-colors-solarized'
- Plug 'tpope/vim-endwise'
- "Plug 'plasticboy/vim-markdown'
- Plug 'kannokanno/previm'
- Plug 'tyru/open-browser.vim'
- Plug 'w0rp/ale'
- Plug 'Quramy/tsuquyomi'
- Plug 'elzr/vim-json'
- Plug 'posva/vim-vue'
- Plug 'stephpy/vim-yaml'
- Plug 'editorconfig/editorconfig-vim'
- call plug#end()
- "let g:jedi#popup_select_first = 0
- "let g:jedi#auto_vim_configuration = 1
- "autocmd FileType python setlocal omnifunc=jedi#completions
- let g:deoplete#enable_at_startup = 1
- "PlugLazy "lambdalisue/vim-pyenv", {
- " \ "depends": ['davidhalter/jedi-vim'],
- " \ "autoload": {
- " \ "filetypes": ["python", "python3", "djangohtml"]
- " \ }}
- "let g:syntastic_mode_map = {
- " \ 'mode': 'active',
- " \ 'active_filetypes': ['php', 'coffeescript', 'sh', 'vim'],
- " \ 'passive_filetypes': ['haskell', 'python']
- " \}
- let g:ale_linters = {
- \ 'javascript': ['eslint'],
- \ 'typescript': ['tslint'],
- \ 'vue': ['eslint'],
- \ 'python': ['flake8'],
- \ 'yaml': ['yamllint'],
- \ }
- let g:ale_python_flake8_options="--ignore=E501 --max-line-length=120"
- let g:ale_fixers = {
- \ 'javascript': ['prettier'],
- \ 'typescript': ['prettier'],
- \ 'json': ['prettier'],
- \ 'vue': ['prettier'],
- \ 'scss': ['prettier'],
- \ }
- " 'python': ['autopep8'],
- "let g:ale_statusline_format = ['⨉ %d', '⚠ %d', '⬥ ok']
- "
- let g:ale_fix_on_save = 1
- let g:ale_javascript_prettier_use_local_config = 1
- let g:ale_lint_on_save = 1
- let g:ale_lint_on_text_changed = 0
- nmap <silent> <C-k> <Plug>(ale_previous_wrap)
- nmap <silent> <C-j> <Plug>(ale_next_wrap)
- let g:typescript_indent_disable = 1
- " Plugins settings
- let g:go_fmt_command = "goimports"
- let g:go_list_type = "quickfix"
- "Golang
- "let g:go_auto_type_info = 1
- let g:go_gocode_unimported_packages = 1
- "Rust
- let g:rustfmt_autosave = 1
- "let g:syntastic_python_checkers=['flake8', 'python']
- "let g:syntastic_python_flake8_args='--max-line-length=120'
- "let g:syntastic_scss_checkers = ['sass_lint']
- """"for eslint
- "let g:syntastic_javascript_checkers=['eslint']
- "" エラー行に sign を表示
- "let g:syntastic_enable_signs = 1
- "" location list を常に更新
- "let g:syntastic_always_populate_loc_list = 0
- "" location list を常に表示
- "let g:syntastic_auto_loc_list = 0
- "" ファイルを開いた時にチェックを実行する
- "let g:syntastic_check_on_open = 0
- "" :wq で終了する時もチェックする
- "let g:syntastic_check_on_wq = 0
- """" end for eslint
- inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
- let g:flake8_max_line_length=200
- let g:flake8_ignore="E501,W293"
- cabbrev l call Flake8()
- let g:vim_json_syntax_conceal = 0
- "cabbrev E Explore
- if has("autocmd")
- augroup redhat
- " In text files, always limit the width of text to 78 characters
- autocmd BufRead *.txt set tw=78
- " When editing a file, always jump to the last cursor position
- autocmd BufReadPost *
- \ if line("'\"") > 0 && line ("'\"") <= line("$") |
- \ exe "normal! g'\"" |
- \ endif
- augroup END
- endif
- "syntax enable
- set background=dark
- colorscheme solarized
- "filetype on
- "filetype indent on
- "syntax enable
- syntax on
- set autoindent
- set smartindent
- set cindent
- set expandtab
- set tabstop=2
- set softtabstop=2
- set shiftwidth=2
- set viminfo='100,<1000,s100,h
- set list
- set listchars=tab:>.,trail:_,extends:>,precedes:<
- filetype plugin indent on " required!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement