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:
parent
9304f97ec8
commit
6fcc0179c5
elements/manila-ubuntu-core
17
elements/manila-ubuntu-core/post-install.d/50-update-vim-config
Executable file
17
elements/manila-ubuntu-core/post-install.d/50-update-vim-config
Executable 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
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user