Sha256: b996714dbfaa9ba5a8d3847388a02770e9609c7745b240aace881a55e7dab3d6

Contents?: true

Size: 716 Bytes

Versions: 538

Compression:

Stored size: 716 Bytes

Contents

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

default_vimrc='/usr/share/vim/vim82/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

538 entries across 538 versions & 1 rubygems

Version Path
pwn-0.4.911 packer/provisioners/vim.sh
pwn-0.4.910 packer/provisioners/vim.sh
pwn-0.4.909 packer/provisioners/vim.sh
pwn-0.4.908 packer/provisioners/vim.sh
pwn-0.4.907 packer/provisioners/vim.sh
pwn-0.4.906 packer/provisioners/vim.sh
pwn-0.4.905 packer/provisioners/vim.sh
pwn-0.4.904 packer/provisioners/vim.sh
pwn-0.4.903 packer/provisioners/vim.sh
pwn-0.4.902 packer/provisioners/vim.sh
pwn-0.4.901 packer/provisioners/vim.sh
pwn-0.4.900 packer/provisioners/vim.sh
pwn-0.4.899 packer/provisioners/vim.sh
pwn-0.4.898 packer/provisioners/vim.sh
pwn-0.4.897 packer/provisioners/vim.sh
pwn-0.4.896 packer/provisioners/vim.sh
pwn-0.4.895 packer/provisioners/vim.sh
pwn-0.4.894 packer/provisioners/vim.sh
pwn-0.4.893 packer/provisioners/vim.sh
pwn-0.4.892 packer/provisioners/vim.sh