Sha256: 9a89a83ceb5ea09ae49862ea8169aa87db5528452b1de5ebee1419ea6694810d

Contents?: true

Size: 716 Bytes

Versions: 275

Compression:

Stored size: 716 Bytes

Contents

#!/bin/bash
source /etc/profile.d/globals.sh

default_vimrc='/usr/share/vim/vim90/defaults.vim'
global_vimrc='/etc/vim/vimrc'

$screen_cmd "${apt} install -y vim ${assess_update_errors}"
grok_error

sudo cp $global_vimrc $global_vimrc.dpkg-ORIG
sudo /bin/bash --login -c "cat ${default_vimrc} > ${global_vimrc}"
# Disable auto-indent
sudo /bin/bash --login -c "sed -i 's/  filetype plugin indent on/  filetype plugin indent off/g' ${global_vimrc}"

# Disable visual mode when highlighting text with mouse
sudo /bin/bash --login -c "sed -i 's/  set mouse=a/  set mouse-=a/g' ${global_vimrc}"

# Ensure Global vimrc overrides default vimrc
sudo /bin/bash --login -c "echo 'let skip_defaults_vim=1' >> ${global_vimrc}"

Version data entries

275 entries across 275 versions & 1 rubygems

Version Path
pwn-0.5.236 packer/provisioners/vim.sh
pwn-0.5.235 packer/provisioners/vim.sh
pwn-0.5.234 packer/provisioners/vim.sh
pwn-0.5.233 packer/provisioners/vim.sh
pwn-0.5.232 packer/provisioners/vim.sh
pwn-0.5.231 packer/provisioners/vim.sh
pwn-0.5.230 packer/provisioners/vim.sh
pwn-0.5.229 packer/provisioners/vim.sh
pwn-0.5.228 packer/provisioners/vim.sh
pwn-0.5.227 packer/provisioners/vim.sh
pwn-0.5.226 packer/provisioners/vim.sh
pwn-0.5.225 packer/provisioners/vim.sh
pwn-0.5.224 packer/provisioners/vim.sh
pwn-0.5.223 packer/provisioners/vim.sh
pwn-0.5.222 packer/provisioners/vim.sh
pwn-0.5.221 packer/provisioners/vim.sh
pwn-0.5.220 packer/provisioners/vim.sh
pwn-0.5.219 packer/provisioners/vim.sh
pwn-0.5.217 packer/provisioners/vim.sh
pwn-0.5.216 packer/provisioners/vim.sh