Merge "Install vim text editor"

This commit is contained in:
Jenkins 2016-01-28 18:00:46 +00:00 committed by Gerrit Code Review
commit 8687a1cd01
2 changed files with 24 additions and 1 deletions

View File

@ -0,0 +1,17 @@
#!/bin/bash
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
# Add useful config options for vim config
vim_config="/etc/vim/vimrc"
echo "set hls is" >> $vim_config
echo "set tabstop=4" >> $vim_config
echo "set shiftwidth=4" >> $vim_config
echo "set expandtab" >> $vim_config
echo "set nu" >> $vim_config
echo "set background=dark" >> $vim_config
echo "set cc=80" >> $vim_config

View File

@ -10,4 +10,10 @@ sudo sed -i -E "s/#\s(deb.+universe)$/\1/g" /etc/apt/sources.list
apt-get update
apt-get upgrade -y
apt-get install python sudo openssh-server rpcbind -y
apt-get install \
python \
sudo \
openssh-server \
rpcbind \
vim \
-y