Add my vimrc
This commit is contained in:
parent
53a5b7ab4d
commit
1fd553517b
101
.vimrc
Normal file
101
.vimrc
Normal file
@ -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 <C-f> :NERDTreeToggle<CR>
|
||||
nnoremap <C-p> :<C-u>FZF<CR>
|
||||
inoremap jk <Esc>
|
Loading…
Reference in New Issue
Block a user