Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@scmx
Last active April 24, 2022 11:47
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scmx/cb038764fcfa7e897698707e96e2e8f9 to your computer and use it in GitHub Desktop.
Save scmx/cb038764fcfa7e897698707e96e2e8f9 to your computer and use it in GitHub Desktop.
Simple git + vim setup on Mac OS with bash #git #vim #macos #bash

Simple git + vim setup on Mac OS with bash

Nice defaults

git config --global commit.verbose true
git config --global push.default current

Load up ~/.bashrc on Mac OS bash ~/.bash_profile

if [ -r ~/.bashrc ]; then
  source ~/.bashrc
fi

Configure Vim as editor ~/.bashrc

export EDITOR=vim
# Or brew install neovim and export EDITOR=nvim

Enable Syntax highlighting in Vim (no need for NeoVim) ~/.vimrc

syntax on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment