Last active
May 18, 2020 23:50
-
-
Save tommystanton/dae715b2c21d459f72ad to your computer and use it in GitHub Desktop.
Set up Vim with reasonable defaults
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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