Skip to content

Commit

Permalink
Fix vim issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aburgel committed Jun 4, 2020
1 parent 6a01922 commit 5ee3665
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 5 additions & 3 deletions hooks/post-up
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
#!/bin/bash
#!/bin/sh

touch "$HOME"/.psqlrc.local

if [ ! -e "$HOME"/.vim/autoload/plug.vim ]; then
if [ -e "$HOME"/.vim/autoload/plug.vim ]; then
vim -E -s +PlugUpgrade +qa
else
curl -fLo "$HOME"/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
fi
vim -u "$HOME"/.vimrc.bundles +PlugInstall +PlugClean! +qa -
vim -u "$HOME"/.vimrc.bundles +PlugUpdate +PlugClean! +qa

reset -Q

Expand Down
5 changes: 4 additions & 1 deletion vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,10 @@ set spellfile=$HOME/.vim-spell-en.utf-8.add
set complete+=kspell

" Always use vertical diffs
set diffopt+=vertical
if &diff
set diffopt-=internal
set diffopt+=vertical
endif

" Local config
if filereadable($HOME . "/.vimrc.local")
Expand Down

0 comments on commit 5ee3665

Please sign in to comment.