Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set nocompatible " be iMproved, required
- filetype off " required
- " set the runtime path to include Vundle and initialize
- set rtp+=~/.vim/bundle/Vundle.vim
- call vundle#begin()
- " alternatively, pass a path where Vundle should install plugins
- "call vundle#begin('~/some/path/here')
- " let Vundle manage Vundle, required
- Plugin 'VundleVim/Vundle.vim'
- " The following are examples of different formats supported.
- " Keep Plugin commands between vundle#begin/end.
- " plugin on GitHub repo
- Plugin 'tpope/vim-fugitive'
- " plugin from http://vim-scripts.org/vim/scripts.html
- " Plugin 'L9'
- " Git plugin not hosted on GitHub
- Plugin 'git://git.wincent.com/command-t.git'
- " git repos on your local machine (i.e. when working on your own plugin)
- " Plugin 'file:///home/gmarik/path/to/plugin'
- " The sparkup vim script is in a subdirectory of this repo called vim.
- " Pass the path to set the runtimepath properly.
- Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
- " Install L9 and avoid a Naming conflict if you've already installed a
- " different version somewhere else.
- " Plugin 'ascenator/L9', {'name': 'newL9'}
- Plugin 'flazz/vim-colorschemes'
- Plugin 'tpope/vim-commentary'
- Plugin 'jeetsukumaran/vim-pythonsense'
- Plugin 'scrooloose/nerdtree'
- Plugin 'ryanoasis/vim-devicons'
- Plugin 'Vimjas/vim-python-pep8-indent'
- Plugin 'dense-analysis/ale'
- Plugin 'davidhalter/jedi-vim'
- Plugin 'klen/python-mode'
- Plugin 'majutsushi/tagbar'
- Plugin 'rosenfeld/conque-term'
- Plugin 'garbas/vim-snipmate'
- " All of your Plugins must be added before the following line
- call vundle#end() " required
- filetype plugin indent on " required
- " To ignore plugin indent changes, instead use:
- "filetype plugin on
- "
- " Brief help
- " :PluginList - lists configured plugins
- " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
- " :PluginSearch foo - searches for foo; append `!` to refresh local cache
- " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
- "
- " see :h vundle for more details or wiki for FAQ
- " Put your non-Plugin stuff after this line
- syntax on
- filetype plugin indent on
- nnoremap <C-n> :NERDTree<CR>
- autocmd VimEnter * NERDTree
- set tabstop=4
- set shiftwidth=4
- set smarttab
- set expandtab
- set softtabstop=4
- set autoindent
- let python_hightlight_all=1
- set t_Co=256
- syntax on
- set mousehide
- set mouse=a
- set termencoding=utf-8
- set showtabline=1
- set nobackup
- set noswapfile
- set encoding=utf-8
- set fileencodings=utf-8,cp125
- set guifont=Monaco:h21
- colorscheme OceanicNext
- let g:ale_linters = {'python': 'all'}
- let g:ale_fixers = {'python': ['isort', 'yapf', 'remove_trailing_lines', 'trim_whitespace']}
- let g:ale_lsp_suggestions = 1
- let g:ale_fix_on_save = 1
- let g:ale_go_gofmt_options = '-s'
- let g:ale_go_gometalinter_options = '— enable=gosimple — enable=staticcheck'
- let g:ale_completion_enabled = 1
- let g:ale_echo_msg_error_str = 'E'
- let g:ale_echo_msg_warning_str = 'W'
- let g:ale_echo_msg_format = '[%linter%] [%severity%] %code: %%s'
- "=====================================================
- " Python-mode settings
- "=====================================================
- " отключаем автокомплит по коду (у нас вместо него используется jedi-vim)
- let g:pymode_rope = 0
- let g:pymode_rope_completion = 0
- let g:pymode_rope_complete_on_dot = 0
- " документация
- let g:pymode_doc = 0
- let g:pymode_doc_key = 'K'
- " проверка кода
- let g:pymode_lint = 1
- let g:pymode_lint_checker = "pyflakes,pep8"
- let g:pymode_lint_ignore="E501,W601,C0110"
- " провека кода после сохранения
- let g:pymode_lint_write = 1
- " поддержка virtualenv
- let g:pymode_virtualenv = 1
- " установка breakpoints
- let g:pymode_breakpoint = 1
- let g:pymode_breakpoint_key = '<leader>b'
- " подстветка синтаксиса
- let g:pymode_syntax = 1
- let g:pymode_syntax_all = 1
- let g:pymode_syntax_indent_errors = g:pymode_syntax_all
- let g:pymode_syntax_space_errors = g:pymode_syntax_all
- " отключить autofold по коду
- let g:pymode_folding = 0
- " возможность запускать код
- let g:pymode_run = 0
- "=====================================================
- " User hotkeys
- "=====================================================
- " ConqueTerm
- " запуск интерпретатора на F5
- nnoremap <F5> :ConqueTermSplit python3<CR>
- " а debug-mode на <F6>
- nnoremap <F6> :exe "ConqueTermSplit python3 " . expand("%")<CR>
- let g:ConqueTerm_StartMessages = 0
- let g:ConqueTerm_CloseOnEnd = 0
- " проверка кода в соответствии с PEP8 через <leader>8
- autocmd FileType python map <buffer> <leader>8 :PymodeLint<CR>
- " автокомплит через <Ctrl+Space>
- inoremap <C-space> <C-x><C-o>
- " переключение между синтаксисами
- nnoremap <leader>Th :set ft=htmljinja<CR>
- nnoremap <leader>Tp :set ft=python<CR>
- nnoremap <leader>Tj :set ft=javascript<CR>
- nnoremap <leader>Tc :set ft=css<CR>
- nnoremap <leader>Td :set ft=django<CR>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement