From 419ceed744d045ab84d7091bd484543af4992b6b Mon Sep 17 00:00:00 2001 From: Aditya Date: Thu, 12 Jan 2023 19:41:04 +0530 Subject: [PATCH] Configure vim --- scripts/chapter8/8.69-vim.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/scripts/chapter8/8.69-vim.sh b/scripts/chapter8/8.69-vim.sh index 1aefb58..014d975 100644 --- a/scripts/chapter8/8.69-vim.sh +++ b/scripts/chapter8/8.69-vim.sh @@ -35,3 +35,23 @@ ln -sv ../vim/vim90/doc /usr/share/doc/vim-9.0.0228 cd /sources rm -rf vim-9.0.0228 + +# Configure vim +cat > /etc/vimrc << "EOF" +" Begin /etc/vimrc + +" Ensure defaults are set before customizing settings, not after +source $VIMRUNTIME/defaults.vim +let skip_defaults_vim=1 + +set nocompatible +set backspace=2 +set mouse= +syntax on +if (&term == "xterm") || (&term == "putty") + set background=dark +endif + +" End /etc/vimrc +EOF +