Skip to content

Instantly share code, notes, and snippets.

@hammerill
Last active April 8, 2025 12:24
Show Gist options
  • Save hammerill/a93fc17d57547b9653a853961c33eecf to your computer and use it in GitHub Desktop.
Save hammerill/a93fc17d57547b9653a853961c33eecf to your computer and use it in GitHub Desktop.
Define global Vim config.

Define "/etc/vimrc" Config

VIMRC_PATH=/etc/vimrc

echo -e '\nset number\nset relativenumber\n\nset shiftwidth=4\nset smarttab\n\nsyntax on' | sudo tee -a "$VIMRC_PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment