2018-10-17 22:15:07 -04:00
|
|
|
" disable compatability
|
|
|
|
set nocompatible
|
|
|
|
|
2018-10-17 10:20:35 -04:00
|
|
|
" enable syntax highlighting
|
|
|
|
syntax enable
|
|
|
|
|
|
|
|
" show relative line numbers
|
|
|
|
set number relativenumber
|
|
|
|
|
|
|
|
" tabspaces = 4
|
|
|
|
set ts=4
|
|
|
|
|
|
|
|
" indent to the next line
|
|
|
|
set autoindent
|
|
|
|
|
|
|
|
" expand tabs into spaces
|
|
|
|
set expandtab
|
|
|
|
|
|
|
|
" when using the >> or << shift lines by 4 spaces
|
|
|
|
set shiftwidth=4
|
|
|
|
|
|
|
|
" show visual line under the cursor's current line
|
|
|
|
set cursorline
|
|
|
|
|
|
|
|
" show the matching part of the pair for [] {} and ()
|
|
|
|
set showmatch
|
|
|
|
|
|
|
|
" enable all Python syntax highlighting features
|
|
|
|
let python_highlight_all = 1
|
2018-10-17 22:15:07 -04:00
|
|
|
autocmd FileType python set sw=4
|
|
|
|
autocmd FileType python set ts=4
|
|
|
|
autocmd FileType python set sts=4
|
2018-10-17 10:20:35 -04:00
|
|
|
|
|
|
|
" Spell Checking
|
2018-10-18 22:29:36 -04:00
|
|
|
autocmd BufRead,BufNewFile *.md set spell spelllang=en_us
|
2018-10-17 10:20:35 -04:00
|
|
|
|
|
|
|
call plug#begin('.vim/plugged')
|
|
|
|
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
|
|
|
|
Plug 'tpope/vim-unimpaired'
|
|
|
|
Plug 'junegunn/fzf.vim'
|
|
|
|
Plug 'tpope/vim-scriptease', {'type': 'opt'}
|
|
|
|
Plug 'jeffkreeftmeijer/vim-numbertoggle'
|
|
|
|
|
|
|
|
" Git integration
|
|
|
|
Plug 'tpope/vim-fugitive'
|
|
|
|
Plug 'airblade/vim-gitgutter'
|
|
|
|
|
|
|
|
" Code Completion
|
|
|
|
if has('nvim')
|
|
|
|
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
2018-10-18 20:36:43 -04:00
|
|
|
Plug 'zchee/deoplete-jedi'
|
2018-10-17 10:20:35 -04:00
|
|
|
else
|
2018-10-17 22:15:07 -04:00
|
|
|
Plug 'Shougo/deoplete.nvim'
|
|
|
|
Plug 'roxma/nvim-yarp'
|
|
|
|
Plug 'roxma/vim-hug-neovim-rpc'
|
2018-10-18 20:36:43 -04:00
|
|
|
Plug 'zchee/deoplete-jedi'
|
2018-10-17 10:20:35 -04:00
|
|
|
endif
|
|
|
|
|
|
|
|
" Terminal Utils
|
|
|
|
Plug 'mklabs/split-term.vim'
|
|
|
|
|
|
|
|
" Languages
|
|
|
|
Plug 'pangloss/vim-javascript'
|
|
|
|
Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' }
|
|
|
|
Plug 'vim-ruby/vim-ruby'
|
|
|
|
Plug 'OmniSharp/omnisharp-vim' " C#
|
|
|
|
|
2018-10-17 22:15:07 -04:00
|
|
|
" Frameworks
|
|
|
|
Plug 'tpope/vim-rails'
|
|
|
|
|
2018-10-17 10:20:35 -04:00
|
|
|
" Snippets
|
2018-10-18 20:36:43 -04:00
|
|
|
Plug 'SirVer/ultisnips'
|
2018-10-17 10:20:35 -04:00
|
|
|
|
|
|
|
" Powerline/Airline Styling
|
|
|
|
Plug 'vim-airline/vim-airline'
|
|
|
|
|
|
|
|
" Syntax
|
|
|
|
Plug 'vim-syntastic/syntastic'
|
|
|
|
|
|
|
|
" Editor Utils
|
|
|
|
Plug 'tpope/vim-surround'
|
2019-04-27 11:36:22 -04:00
|
|
|
" Plug 'ctrlpvim/ctrlp.vim'
|
2018-10-17 10:20:35 -04:00
|
|
|
Plug 'mattn/emmet-vim'
|
|
|
|
Plug 'nathanaelkane/vim-indent-guides'
|
|
|
|
|
|
|
|
" Linting
|
|
|
|
Plug 'neomake/neomake'
|
|
|
|
|
|
|
|
" Comments
|
|
|
|
Plug 'tpope/vim-commentary'
|
|
|
|
|
|
|
|
call plug#end()
|
|
|
|
|
2018-10-17 22:28:42 -04:00
|
|
|
let NERDTreeShowHidden=1
|
2018-10-17 10:20:35 -04:00
|
|
|
let g:airline#extensions#tabline#enabled = 1
|
|
|
|
let g:airline#extensions#syntastic#enabled = 1
|
|
|
|
let g:airline#extensions#syntastic#error_symbol = 'E:'
|
|
|
|
let g:airline#extensions#syntastic#stl_format_err = '%E{[%e(#%fe)]}'
|
|
|
|
let g:airline#extensions#syntastic#error_symbol = 'W:'
|
|
|
|
let g:airline#extensions#syntastic#stl_format_warn = '%W{[%w(#%fw)]}'
|
|
|
|
let g:syntastic_always_populate_loc_list = 1
|
|
|
|
let g:syntastic_auto_loc_list = 1
|
|
|
|
let g:syntastic_check_on_open = 1
|
|
|
|
let g:syntastic_check_on_wq = 0
|
2018-10-17 22:15:07 -04:00
|
|
|
let g:python_host_prog = '/home/eric/.pyenv/versions/nvimpy2/bin/python'
|
|
|
|
let g:python3_host_prog = '/home/eric/.pyenv/versions/nvimpy3/bin/python'
|
2018-10-17 10:20:35 -04:00
|
|
|
let g:deoplete#enable_at_startup = 1
|
|
|
|
|
|
|
|
let mapleder = ','
|
|
|
|
|
|
|
|
map <C-f> :NERDTreeToggle<CR>
|
|
|
|
nnoremap <C-p> :<C-u>FZF<CR>
|
2018-10-17 22:15:07 -04:00
|
|
|
inoremap jk <Esc>
|