Browse Source

setup.sh: add vimrc setup

pull/1/head
10sr 10 years ago
parent
commit
cbb0582505
1 changed files with 22 additions and 0 deletions
  1. +22
    -0
      setup.sh

+ 22
- 0
setup.sh View File

@@ -331,6 +331,28 @@ __EOC__
setup_dotfiles emacs.el
}

##################################
# setup vim

setup_vim(){
_msg "Setup vimrc"
_vimrc="$HOME"/.vimrc

if test -f "$_vimrc"
then
_warn "Vim rcfile found. Skipping"
else
cat <<__EOC__ >>"$_vimrc"
if filereadable(expand('$DOTFILES_DIR/vimrc'))
source $DOTFILES_DIR/vimrc
endif
__EOC__

fi

setup_dotfiles vimrc
}

##############################
# setup scripts



Loading…
Cancel
Save