Install vim text editor

Manila service image has old "vi" that provides very narrow set of
functionality. So, install better text editor - "vim".

Change-Id: I06443c7c9a3585c65b58b20919eb63727ffbeb62
Closes-Bug: #1535807
This commit is contained in:
vponomaryov 2016-01-19 18:53:18 +02:00 committed by Valeriy Ponomaryov
parent 9304f97ec8
commit 6fcc0179c5
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