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.870 packer/provisioners/vim.sh
pwn-0.4.869 packer/provisioners/vim.sh
pwn-0.4.868 packer/provisioners/vim.sh
pwn-0.4.867 packer/provisioners/vim.sh
pwn-0.4.866 packer/provisioners/vim.sh
pwn-0.4.865 packer/provisioners/vim.sh
pwn-0.4.864 packer/provisioners/vim.sh
pwn-0.4.863 packer/provisioners/vim.sh
pwn-0.4.862 packer/provisioners/vim.sh
pwn-0.4.861 packer/provisioners/vim.sh
pwn-0.4.860 packer/provisioners/vim.sh
pwn-0.4.859 packer/provisioners/vim.sh
pwn-0.4.858 packer/provisioners/vim.sh
pwn-0.4.857 packer/provisioners/vim.sh
pwn-0.4.856 packer/provisioners/vim.sh
pwn-0.4.855 packer/provisioners/vim.sh
pwn-0.4.854 packer/provisioners/vim.sh
pwn-0.4.853 packer/provisioners/vim.sh
pwn-0.4.852 packer/provisioners/vim.sh
pwn-0.4.851 packer/provisioners/vim.sh