{"id":13623477,"url":"https://github.com/barretlee/autoconfig-mac-vimrc","last_synced_at":"2025-04-05T17:06:45.122Z","repository":{"id":146464601,"uuid":"56170860","full_name":"barretlee/autoconfig-mac-vimrc","owner":"barretlee","description":"autoconfig mac vimrc with bundle","archived":false,"fork":false,"pushed_at":"2016-04-21T05:19:31.000Z","size":35,"stargazers_count":515,"open_issues_count":7,"forks_count":127,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-03-29T16:06:47.311Z","etag":null,"topics":["autoconfig-mac-vimrc","mac","vimrc"],"latest_commit_sha":null,"homepage":null,"language":"VimL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/barretlee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-04-13T17:06:55.000Z","updated_at":"2025-03-23T03:41:25.000Z","dependencies_parsed_at":"2023-06-19T13:17:55.154Z","dependency_job_id":null,"html_url":"https://github.com/barretlee/autoconfig-mac-vimrc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barretlee%2Fautoconfig-mac-vimrc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barretlee%2Fautoconfig-mac-vimrc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barretlee%2Fautoconfig-mac-vimrc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barretlee%2Fautoconfig-mac-vimrc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barretlee","download_url":"https://codeload.github.com/barretlee/autoconfig-mac-vimrc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247369952,"owners_count":20927928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autoconfig-mac-vimrc","mac","vimrc"],"created_at":"2024-08-01T21:01:32.248Z","updated_at":"2025-04-05T17:06:45.100Z","avatar_url":"https://github.com/barretlee.png","language":"VimL","readme":"# autoconfig-mac-vimrc\n\nI'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:\n\n- install brew if not exist.\n- install fonts\n- install colorschemes\n- install ack \n- install all listed bundle plugins, if exist, try update.\n- install YouComplete for nodejs\n- and so on.\n\n![pic](http://ww3.sinaimg.cn/large/6c0378f8gw1f2vlasl7e5j21kw0zkanh.jpg)\n\nThe `\u003cleader\u003e` key is `,`，use `,ne` open folders, use `,bg` toggle background (light/dark).\n\n## Install \n\nThe first approach:\n\n- copy the bash code at the bottom to `install.sh`\n- run command `chmod +x install.sh`\n- run command `./install.sh`\n\nThe second approach:\n\n```bash\ngit clone https://github.com/barretlee/autoconfig-mac-vimrc.git;\ncd autoconfig-mac-vimrc;\nchmod +x install;\n./install;\n```\n\n\u003ci\u003e__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.\u003c/i\u003e\n\n__bash code__\n```bash\n#!/bin/bash\n# @author Barret Lee\u003cbarret.china@gmail.com\u003e\n\n[[ -d ~/.vim ]] || mkdir ~/.vim;\n\n# tmp dir\n[[ -d ~/v-tmp ]] || mkdir ~/v-tmp;\n\n# .vimrc\ncd ~/v-tmp;\n[[ -d ~/v-tmp/rc ]] || git clone https://github.com/barretlee/autoconfig-mac-vimrc.git;\n\n# backup origin vimrc file\n[[ -f ~/.vimrc-bak ]] || cp ~/.vimrc ~/.vimrc-bak;\nmv ~/v-tmp/autoconfig-mac-vimrc/.vimrc ~/.vimrc;\n\n# vim pulgin controller - vundle\n[[ -d ~/.vim/bundle/Vundle.vim ]] || git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim;\n\n# colors schemes\ncd ~/v-tmp;\n[[ -d ~/v-tmp/vim-colorschemes ]] || git clone https://github.com/flazz/vim-colorschemes.git;\n[[ -d ~/.vim/colors ]] || mv ~/v-tmp/vim-colorschemes/colors ~/.vim/;\n\n# fonts for airline\ncd  ~/v-tmp;\n[[ -d ~/v-tmp/fonts ]] || git clone https://github.com/powerline/fonts.git;\ncd fonts;\nsh ./install.sh;\n\nif type brew \u003e /dev/null; then\n  echo \"Homebrew Exists\";\nelse\n  /usr/bin/ruby -e \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)\";\nfi;\n\n# ack supported\nbrew install ack ag;\n\n# YouCompleteMe supported\nif [[ -d ~/.vim/bundle/YouCompleteMe ]]; then\n  echo \"YouCompleteMe Exists\";\nelse\n  git clone https://github.com/Valloric/YouCompleteMe.git ~/.vim/bundle/YouCompleteMe;\n  cd ~/.vim/bundle/YouCompleteMe;\n  # for nodejs\n  ./install.py --tern-completer;\nfi;\n\n# update vim, replace the origin \n# brew install vim --override-system-vi --with-lua --HEAD;\n\n# install vim plugins\nvim +PluginInstall! +qall;\n\n# rm tmp dir\n# rm -rf ~/v-tmp;\necho \"You can remove the temporary directory ~/v-tmp\";\n```\n\n## Thanks \u0026 LICENSE\n\nThanks for @noscripter.\n\nMIT LICENSE.\n\n","funding_links":[],"categories":["Vim Script"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarretlee%2Fautoconfig-mac-vimrc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarretlee%2Fautoconfig-mac-vimrc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarretlee%2Fautoconfig-mac-vimrc/lists"}