Skip to content

Instantly share code, notes, and snippets.

@tommystanton
Last active May 18, 2020 23:50
Show Gist options
  • Save tommystanton/dae715b2c21d459f72ad to your computer and use it in GitHub Desktop.
Save tommystanton/dae715b2c21d459f72ad to your computer and use it in GitHub Desktop.
Set up Vim with reasonable defaults
#!/bin/sh
vimrc="$HOME/.vimrc"
vim_plugin_dir="$HOME/.vim/plugin"
sensible_plugin='https://raw.githubusercontent.com/tpope/vim-sensible/master/plugin/sensible.vim'
mkdir -p "$vim_plugin_dir"
wget -P "$vim_plugin_dir" "$sensible_plugin"
cat << "EOT" - >> "$vimrc"
set modeline
set background=dark
set number
set ignorecase
""" Default spacing behavior """
set expandtab
set softtabstop=4
set shiftwidth=4
EOT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment