All Projects → barretlee → Autoconfig Mac Vimrc

barretlee / Autoconfig Mac Vimrc

autoconfig mac vimrc with bundle

Projects that are alternatives of or similar to Autoconfig Mac Vimrc

Vimrc
💺 Options for my preferred text editor.
Stars: ✭ 43 (-91.43%)
Mutual labels:  viml, vimrc
Learn Vim
无废话极简版Vim学习笔记!文章按主题分拆为多个章节,并尽量控制每节的信息量;通过文字色彩和字体,将命令、快捷键突出显示;在每节结尾,提供一个命令列表,以便回顾文中介绍的重要命令。如果这些文章能对喜欢Vim的朋友有所益处,我将不胜荣幸。
Stars: ✭ 83 (-83.47%)
Mutual labels:  viml, vimrc
Vimconf
Extensive vimrc with super easy install and everything in the vimrc is explained!
Stars: ✭ 175 (-65.14%)
Mutual labels:  viml, vimrc
Paperless Desktop
🍃 macOS app that uses the paperless API to manage your document scans.
Stars: ✭ 431 (-14.14%)
Mutual labels:  mac
Mater
🍅 A simple and purty menubar Pomodoro app written in Electron
Stars: ✭ 433 (-13.75%)
Mutual labels:  mac
Vim Taskwarrior
vim interface for taskwarrior
Stars: ✭ 456 (-9.16%)
Mutual labels:  viml
Vim Autoclose
This plugin for Vim enable an auto-close chars feature for you. For instance if you type an '(', ``autoclose`` will automatically insert a ')' and put the cursor between than.
Stars: ✭ 497 (-1%)
Mutual labels:  viml
Dotvim
lean & mean vim distribution
Stars: ✭ 425 (-15.34%)
Mutual labels:  viml
Vim Init
轻量级 Vim 配置框架,全中文注释
Stars: ✭ 478 (-4.78%)
Mutual labels:  vimrc
Vim Seek
Seek makes navigating long lines effortless, acting like f but taking two characters.
Stars: ✭ 452 (-9.96%)
Mutual labels:  viml
Wildfire.vim
Smart selection of the closest text object
Stars: ✭ 448 (-10.76%)
Mutual labels:  viml
Vim Ruby Debugger
Vim plugin for debugging Ruby applications (using ruby-debug-ide gem)
Stars: ✭ 434 (-13.55%)
Mutual labels:  viml
Flutter Assetsaudioplayer
Play simultaneously music/audio from assets/network/file directly from Flutter, compatible with android / ios / web / macos, displays notifications
Stars: ✭ 458 (-8.76%)
Mutual labels:  mac
Vim Golang
Github mirror of Go vimscripts, synced with main repository
Stars: ✭ 432 (-13.94%)
Mutual labels:  viml
Git Peek
git repo to local editor instantly
Stars: ✭ 485 (-3.39%)
Mutual labels:  vimrc
Paper For Mac
🖥 Unofficial Dropbox Paper client for macOS
Stars: ✭ 427 (-14.94%)
Mutual labels:  mac
Kotlin Vim
Kotlin plugin for Vim. Featuring: syntax highlighting, basic indentation, Syntastic support
Stars: ✭ 479 (-4.58%)
Mutual labels:  viml
Vim Bufferline
super simple vim plugin to show the list of buffers in the command bar
Stars: ✭ 448 (-10.76%)
Mutual labels:  viml
Neovim Init.vim
🏮 The perfect Neovim configuration for productive people who wants to level up their Vim experience with a clean, minimal-looking aesthetic, as well as a highly extensible, easily customizable set of popular tools and shortcuts to boost productivity. 🏮
Stars: ✭ 440 (-12.35%)
Mutual labels:  vimrc
Yunocommit.vim
Y U NO commit after so many writes???
Stars: ✭ 456 (-9.16%)
Mutual labels:  viml

autoconfig-mac-vimrc

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.

pic

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

Install

The first approach:

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

The second approach:

git clone https://github.com/barretlee/autoconfig-mac-vimrc.git;
cd autoconfig-mac-vimrc;
chmod +x install;
./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

#!/bin/bash
# @author Barret Lee<[email protected]>

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

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

# .vimrc
cd ~/v-tmp;
[[ -d ~/v-tmp/rc ]] || git clone https://github.com/barretlee/autoconfig-mac-vimrc.git;

# 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 https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim;

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

# fonts for airline
cd  ~/v-tmp;
[[ -d ~/v-tmp/fonts ]] || git clone https://github.com/powerline/fonts.git;
cd fonts;
sh ./install.sh;

if type brew > /dev/null; then
  echo "Homebrew Exists";
else
  /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)";
fi;

# ack supported
brew install ack ag;

# YouCompleteMe supported
if [[ -d ~/.vim/bundle/YouCompleteMe ]]; then
  echo "YouCompleteMe Exists";
else
  git clone https://github.com/Valloric/YouCompleteMe.git ~/.vim/bundle/YouCompleteMe;
  cd ~/.vim/bundle/YouCompleteMe;
  # for nodejs
  ./install.py --tern-completer;
fi;

# 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.

MIT LICENSE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].