Updated vimrc

This commit is contained in:
2016-01-29 19:29:48 +00:00
parent 73c9b26dea
commit a99baf2ee1
+78 -39
View File
@@ -6,42 +6,42 @@ filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
set rtp+=/usr/local/Cellar/fzf/HEAD
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
call plug#begin()
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Plugin 'Valloric/YouCompleteMe'
Plugin 'bling/vim-airline'
Plugin 'docunext/closetag.vim'
Plugin 'rizzatti/dash.vim'
Plugin 'terryma/vim-expand-region'
Plugin 'tpope/vim-fugitive'
Plugin 'othree/html5.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'klen/python-mode'
Plugin 'altercation/vim-colors-solarized'
Plugin 'rstacruz/sparkup'
Plugin 'scrooloose/syntastic'
Plugin 'majutsushi/tagbar'
Plugin 'christoomey/vim-tmux-navigator'
Plugin 'jelera/vim-javascript-syntax'
Plugin 'tpope/vim-obsession'
Plugin 'nvie/vim-togglemouse'
Plugin 'benmills/vimux'
Plugin 'julienr/vimux-pyutils'
Plugin 'embear/vim-localvimrc'
Plugin 'tpope/vim-surround'
Plugin 'easymotion/vim-easymotion'
Plugin 'Yggdroot/indentLine'
Plugin 'mindriot101/vim-yapf'
" Plugin 'vim-scripts/TaskList.vim'
Plugin 'vim-scripts/MatlabFilesEdition'
Plugin 'lervag/vimtex'
Plugin 'bjoernd/vim-ycm-tex'
Plugin 'mhinz/vim-startify'
call vundle#end() " required
" Plug 'Valloric/YouCompleteMe'
Plug 'bling/vim-airline'
Plug 'docunext/closetag.vim'
Plug 'rizzatti/dash.vim'
Plug 'terryma/vim-expand-region'
Plug 'tpope/vim-fugitive'
Plug 'othree/html5.vim'
Plug 'scrooloose/nerdtree'
Plug 'klen/python-mode'
Plug 'altercation/vim-colors-solarized'
Plug 'rstacruz/sparkup'
Plug 'scrooloose/syntastic'
Plug 'majutsushi/tagbar'
Plug 'christoomey/vim-tmux-navigator'
Plug 'jelera/vim-javascript-syntax'
Plug 'tpope/vim-obsession'
Plug 'nvie/vim-togglemouse'
Plug 'benmills/vimux'
Plug 'julienr/vimux-pyutils'
Plug 'embear/vim-localvimrc'
Plug 'tpope/vim-surround'
Plug 'easymotion/vim-easymotion'
Plug 'Yggdroot/indentLine'
Plug 'mindriot101/vim-yapf'
" Plug 'vim-scripts/TaskList.vim'
Plug 'vim-scripts/MatlabFilesEdition'
Plug 'lervag/vimtex'
Plug 'bjoernd/vim-ycm-tex'
Plug 'mhinz/vim-startify'
Plug 'Konfekt/FastFold'
Plug 'Shougo/deoplete.nvim'
" Plug 'benekastah/neomake'
call plug#end() " required
filetype on
filetype plugin on
filetype indent on
@@ -131,6 +131,28 @@ let g:tex_conceal = ""
nnoremap <silent> <leader>m :Startify<CR>
" ====================================
" Neomake Settings
" ====================================
"set errorformat=%f:%l:%m
"
"if has('autocmd')
" autocmd! BufWritePost * Neomake
"endif
"
"let g:neomake_open_list = 2
"
"let g:neomake_python_enabled_makers = ['pep8', 'pylint']
"
"let g:neomake_warning_sign = {
" \ 'text': '✹',
" \ 'texthl': 'WarningMsg',
" \ }
"
"let g:neomake_error_sign = {
" \ 'text': '✖',
" \ 'texthl': 'ErrorMsg',
" \ }
" ====================================
" Easymotion Settings
" ====================================
@@ -286,6 +308,11 @@ let g:prosession_load_on_startup = 1
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_mode_map = {
\ "mode": "passive",
\ "active_filetypes": [],
\ "passive_filetypes": [] }
let g:syntastic_always_populate_loc_list = 1
" Check for errors when opening a new file
@@ -294,8 +321,12 @@ let g:syntastic_check_on_open = 1
" Don't check for errors if quiting after writing
let g:syntastic_check_on_wq = 0
let g:syntastic_check_on_w = 0
map <leader>c :SyntasticCheck<CR>
" Set the checkers to be used for finding syntax errors
let g:syntastic_python_checkers = ['pylint', 'pep8', 'pyflakes', 'pep257']
let g:syntastic_python_checkers = ['pylint', 'pep8']
let g:syntastic_matlab_checkers = ['mlint']
@@ -325,12 +356,12 @@ function! ToggleErrors()
endif
endfunction
let g:syntastic_auto_loc_list = 0
let g:syntastic_auto_loc_list = 0
" Run all checkers and then create list of errors rather than showing error
" lists individually
let g:syntastic_aggregate_errors = 1
"
" Set JavaScript syntax checkers
let g:syntastic_javascript_checkers = ['jshint']
@@ -348,9 +379,17 @@ set completeopt=preview,preview
set pumheight=20"
" ====================================
" YouCompleteMe Settings
" DeoPlete Settings
" ====================================
let g:ycm_path_to_python_interpreter ='/usr/bin/python'
" Use deoplete.
let g:deoplete#enable_at_startup = 1
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<TAB>"
" ====================================
" YouCompleteMe Settings (Deprecated as of DeoPlete)
" ====================================
" let g:ycm_path_to_python_interpreter ='/usr/bin/python'
" ====================================
" VIMUX Commands