autoconfig mac vimrc with bundle
Switch branches/tags
Nothing to show
Clone or download
Latest commit 0ce4a54 Apr 21, 2016
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore init Apr 13, 2016
.vimrc modify Apr 19, 2016 modify Apr 16, 2016
install submodules Apr 21, 2016


I'm a front-end engineer, and also a vimer, maybe the config file is suitable for you. This file did lots of things, such as:

  • install brew if not exist.
  • install fonts
  • install colorschemes
  • install ack
  • install all listed bundle plugins, if exist, try update.
  • install YouComplete for nodejs
  • and so on.


The <leader> key is ,,use ,ne open folders, use ,bg toggle background (light/dark).


The first approach:

  • copy the bash code at the bottom to
  • run command chmod +x
  • run command ./

The second approach:

git clone;
cd autoconfig-mac-vimrc;
chmod +x install;

Attention: This shell script contains lots of plugins and tools, if you have never installed, it may takes a little long time, about 15+ mins in good network.

bash code

# @author Barret Lee<>

[[ -d ~/.vim ]] || mkdir ~/.vim;

# tmp dir
[[ -d ~/v-tmp ]] || mkdir ~/v-tmp;

# .vimrc
cd ~/v-tmp;
[[ -d ~/v-tmp/rc ]] || git clone;

# backup origin vimrc file
[[ -f ~/.vimrc-bak ]] || cp ~/.vimrc ~/.vimrc-bak;
mv ~/v-tmp/autoconfig-mac-vimrc/.vimrc ~/.vimrc;

# vim pulgin controller - vundle
[[ -d ~/.vim/bundle/Vundle.vim ]] || git clone ~/.vim/bundle/Vundle.vim;

# colors schemes
cd ~/v-tmp;
[[ -d ~/v-tmp/vim-colorschemes ]] || git clone;
[[ -d ~/.vim/colors ]] || mv ~/v-tmp/vim-colorschemes/colors ~/.vim/;

# fonts for airline
cd  ~/v-tmp;
[[ -d ~/v-tmp/fonts ]] || git clone;
cd fonts;
sh ./;

if type brew > /dev/null; then
  echo "Homebrew Exists";
  /usr/bin/ruby -e "$(curl -fsSL";

# ack supported
brew install ack ag;

# YouCompleteMe supported
if [[ -d ~/.vim/bundle/YouCompleteMe ]]; then
  echo "YouCompleteMe Exists";
  git clone ~/.vim/bundle/YouCompleteMe;
  cd ~/.vim/bundle/YouCompleteMe;
  # for nodejs
  ./ --tern-completer;

# update vim, replace the origin 
# brew install vim --override-system-vi --with-lua --HEAD;

# install vim plugins
vim +PluginInstall! +qall;

# rm tmp dir
# rm -rf ~/v-tmp;
echo "You can remove the temporary directory ~/v-tmp";

Thanks & LICENSE

Thanks for @noscripter.