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.891 packer/provisioners/vim.sh
pwn-0.4.890 packer/provisioners/vim.sh
pwn-0.4.889 packer/provisioners/vim.sh
pwn-0.4.888 packer/provisioners/vim.sh
pwn-0.4.887 packer/provisioners/vim.sh
pwn-0.4.886 packer/provisioners/vim.sh
pwn-0.4.885 packer/provisioners/vim.sh
pwn-0.4.884 packer/provisioners/vim.sh
pwn-0.4.883 packer/provisioners/vim.sh
pwn-0.4.882 packer/provisioners/vim.sh
pwn-0.4.880 packer/provisioners/vim.sh
pwn-0.4.879 packer/provisioners/vim.sh
pwn-0.4.878 packer/provisioners/vim.sh
pwn-0.4.877 packer/provisioners/vim.sh
pwn-0.4.876 packer/provisioners/vim.sh
pwn-0.4.875 packer/provisioners/vim.sh
pwn-0.4.874 packer/provisioners/vim.sh
pwn-0.4.873 packer/provisioners/vim.sh
pwn-0.4.872 packer/provisioners/vim.sh
pwn-0.4.871 packer/provisioners/vim.sh