PortValhalla/scripts/Common/Config/vim/install.sh

9 lines
274 B
Bash
Executable file

#!/bin/bash
indicator="set clipboard";
configFile="/etc/vimrc";
if ! grep "\b$indicator\b" "$configFile" > /dev/null
then
# As described in https://wiki.archlinux.org/title/Vim#Clipboard
echo "$indicator+=unnamed,unnamedplus" | sudo tee /etc/vimrc > /dev/null;
fi;