From 1fd553517b42a0dbee8d0eacb8003c52e0e7049e Mon Sep 17 00:00:00 2001 From: "Eric D. Rohler" Date: Wed, 17 Oct 2018 14:20:35 +0000 Subject: [PATCH] Add my vimrc --- .vimrc | 101 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 .vimrc diff --git a/.vimrc b/.vimrc new file mode 100644 index 0000000..94b94b4 --- /dev/null +++ b/.vimrc @@ -0,0 +1,101 @@ +" 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 + +" Spell Checking +set spell spelllang=en_us + +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' } +else + Plug 'Shougo/deoplete.nvim' + Plug 'roxma/nvim-yarp' + Plug 'roxma/vim-hug-neovim-rpc' +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# + +" Snippets +Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets' + +" Powerline/Airline Styling +Plug 'vim-airline/vim-airline' + +" Syntax +Plug 'vim-syntastic/syntastic' + +" Editor Utils +Plug 'tpope/vim-surround' +Plug 'ctrlpvim/ctrlp.vim' +Plug 'mattn/emmet-vim' +Plug 'nathanaelkane/vim-indent-guides' + +" Linting +Plug 'neomake/neomake' + +" Comments +Plug 'tpope/vim-commentary' + +call plug#end() + +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 + +let g:deoplete#enable_at_startup = 1 + +let mapleder = ',' + + +map :NERDTreeToggle +nnoremap :FZF +inoremap jk \ No newline at end of file