automatically install plugins, add qol changes

This commit is contained in:
Marty Oehme 2019-03-20 16:09:48 +01:00
parent 4198c155a1
commit 54b0f0d4ee

View file

@ -21,6 +21,12 @@ if empty(glob('~/.vim/autoload/plug.vim'))
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
" automatically install any missing plugins
autocmd VimEnter *
\ if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
\| PlugInstall --sync | q
\| endif
" defines plugin directory
" Install plugins from vim with :PlugInstall
silent! if plug#begin('~/.local/share/nvim/plugged')
@ -115,10 +121,7 @@ let g:ale_fixers = {
" set truecolor (neovim)
set termguicolors
" many of these come from
" http://stevelosh.com/blog/2010/09/coming-home-to-vim/
" sets tabs to be 4 characters, expanded into spaces, but still removable with
" sets tabs to be 2 characters, expanded into spaces, but still removable with
" one press of backspace.
" great explanation: http://vimcasts.org/transcripts/2/en/
set tabstop=2
@ -126,9 +129,13 @@ set shiftwidth=2
set softtabstop=2
set expandtab
" set cursor line highlighting, esp useful when using with bracket
" highlighting and you don't know which side of the brace the cursor is on
set cursorline
" shows linenumbers relative to the one you are on, for easy movement and
" dNUMBERd deletions
set relativenumber
set number relativenumber
" keeps an undofile next to files so that you can even undo if vim is closed
" in between