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.153 packer/provisioners/vim.sh
pwn-0.5.152 packer/provisioners/vim.sh
pwn-0.5.151 packer/provisioners/vim.sh
pwn-0.5.150 packer/provisioners/vim.sh
pwn-0.5.106 packer/provisioners/vim.sh
pwn-0.5.105 packer/provisioners/vim.sh
pwn-0.5.104 packer/provisioners/vim.sh
pwn-0.5.103 packer/provisioners/vim.sh
pwn-0.5.102 packer/provisioners/vim.sh
pwn-0.5.101 packer/provisioners/vim.sh
pwn-0.5.100 packer/provisioners/vim.sh
pwn-0.5.99 packer/provisioners/vim.sh
pwn-0.5.98 packer/provisioners/vim.sh
pwn-0.5.97 packer/provisioners/vim.sh
pwn-0.5.96 packer/provisioners/vim.sh
pwn-0.5.95 packer/provisioners/vim.sh
pwn-0.5.94 packer/provisioners/vim.sh
pwn-0.5.93 packer/provisioners/vim.sh
pwn-0.5.92 packer/provisioners/vim.sh
pwn-0.5.91 packer/provisioners/vim.sh