Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set nocompatible
- if empty(glob("~/.vim/autoload/plug.vim"))
- silent !curl -fLso ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
- autocmd VimEnter * PlugInstall
- end
- call plug#begin("~/.vim/plugged/")
- " Language
- Plug 'elzr/vim-json'
- Plug 'chr4/nginx.vim'
- " Adds
- Plug 'kien/ctrlp.vim'
- Plug 'amiorin/vim-project'
- Plug 'vim-syntastic/syntastic'
- Plug 'Valloric/YouCompleteMe'
- Plug 'python-mode/python-mode'
- " Interface
- Plug 'scrooloose/nerdtree'
- Plug 'majutsushi/tagbar'
- Plug 'airblade/vim-gitgutter'
- Plug 'SirVer/ultisnips'
- Plug 'honza/vim-snippets'
- " Visual
- Plug 'chriskempson/base16-vim'
- Plug 'vim-airline/vim-airline'
- Plug 'vim-airline/vim-airline-themes'
- " Code
- Plug 'chiel92/vim-autoformat'
- Plug 'jiangmiao/auto-pairs'
- Plug 'tpope/vim-surround'
- Plug 'tpope/vim-commentary'
- call plug#end()
- " General
- syntax on
- set t_Co=256
- colorscheme base16-default-dark
- set termguicolors
- set number
- set laststatus=2
- set noshowmode
- set nofoldenable
- " Disable aditional files.
- set noswapfile
- set nobackup
- set encoding=utf-8
- set backspace=indent,eol,start
- " Indent settings
- set autoindent cindent smartindent
- set expandtab
- set shiftwidth=4
- set softtabstop=4
- " Buffer settings
- set hidden
- set nowrap
- set showmatch
- " Markdown
- let g:vim_markdown_no_extensions_in_markdown = 1
- " Copy and Paste
- nmap <C-V> "+gP
- imap <C-V> <ESC><C-V>i
- vmap <C-C> "+y
- " Json and JS config
- autocmd FileType json set sw=2
- autocmd FileType json set ts=2
- autocmd FileType json set sts=2
- " Vim-Json
- let g:vim_json_syntax_conceal = 0
- " Tagbar
- nmap <F2> :TagbarToggle<CR>
- " NerdTree
- nmap <F1> :NERDTreeToggle<CR>
- " Tabs
- nmap <C-Left> :tabprevious<CR>
- nmap <C-Right> :tabnext<CR>
- imap <C-Left> <ESC>:tabprevious<CR>
- imap <C-Right> <ESC>:tabnext<CR>
- " Project
- let g:project_use_nerdtree = 1
- set rtp+=~/.vim/plugged/vim-Project/
- call project#rc()
- try
- source ~/.projects.vim
- catch
- " Ignore
- endtry
- " Syntastic
- let g:syntastic_python_checkers = ['pylint', 'pep8', 'pyflakes']
- " Airline
- let g:airline#extensions#tabline#enabled = 1
- let g:airline_powerline_fonts = 1
- " YouCompleteMe
- let g:ycm_python_binary_path = 'python'
- let g:ycm_server_python_interpreter = 'python'
- " PyMode
- let g:pymode_options_max_line_length = 119
- let g:pymode_lint = 1
- let g:pymode_lin_on_write = 1
- let g:pymode_lint_unmodified = 1
- let g:pymode_lint_message = 1
- let g:pymode_lint_checkers = ['pylint', 'pep8', 'pyflakes']
- let g:pymode_lint_cwindow = 0
- let g:pymode_python = 'python3'
- let g:pymode_virtualenv = 1
- " Pep8
- let g:pymode_lint_options_pep8 =
- \ {'max_line_length': g:pymode_options_max_line_length}
- let g:UltiSnipsExpandTrigger="<c-m>"
- let g:UltiSnipsJumpForwardTrigger="<c-b>"
- let g:UltiSnipsJumpBackwardTrigger="<c-z>"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement