1. 安裝Brew
1 |
sudo xcodebuild -license |
1 |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
1 |
brew install wget |
1 |
brew update |
1 |
brew search #套件名稱 |
http://brew.sh/index_zh-tw.html
2. 安裝zsh
1 |
brew install zsh |
1 |
chsh -s /bin/zsh |
參考:http://icarus4.logdown.com/posts/177661-from-bash-to-zsh-setup-tips
即可把bash 換成zsh
3. 安裝oh-my-zsh
1 |
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" |
1 |
vim .zshrc |
設定theme
or
指令參考 https://github.com/robbyrussell/oh-my-zsh/wiki/themes
4. 安裝Vundle管理vim plugin
1 |
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim |
1 |
vim .vimrc |
貼上以下這段即可開始使用
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
set nocompatible " not compatible with the old-fashion vi mode filetype off " required! set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() " let Vundle manage Vundle " required! Plugin 'VundleVim/Vundle.vim' " My Bundles here: " " original repos on github Plugin 'JSON.vim' Plugin 'hail2u/vim-css3-syntax' Plugin 'cakebaker/scss-syntax.vim' Plugin 'othree/html5.vim' Plugin 'ap/vim-css-color' "css 顏色 Plugin 'evgenyzinoviev/vim-vendetta' "colorscheme Plugin 'itchyny/lightline.vim' "statusline Plugin 'ervandew/supertab' Plugin 'tpope/vim-fugitive' "status git branch Plugin 'junegunn/vim-easy-align' " 自動對齊工具 " All of your Plugins must be added before the following line call vundle#end() " required filetype plugin indent on " required " To ignore plugin indent changes, instead use: "filetype plugin on " " Brief help " :PluginList - lists configured plugins " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate " :PluginSearch foo - searches for foo; append `!` to refresh local cache " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal " " see :h vundle for more details or wiki for FAQ " Put your non-Plugin stuff after this line |
在vim 內執行 :PluginInstall 即可安裝所有的plugin
參考:
- https://github.com/VundleVim/Vundle.vim
- https://blog.othree.net/log/2011/06/05/vundle/
- http://blog.chh.tw/posts/vim-vundle/
- http://blogger.gtwang.org/2014/04/vundle-vim-bundle-plugin-manager.html
- http://erikzaadi.com/2012/03/19/auto-installing-vundle-from-your-vimrc/
- https://www.digitalocean.com/community/tutorials/how-to-use-vundle-to-manage-vim-plugins-on-a-linux-vps
- http://blog.leanote.com/post/zenglingshu/zsh
5. vim 套件安裝
- http://fukun.org/archives/02251795.html 幫php增加自動補全function
- http://vimawesome.com/ 找vim Plugin
- http://joelhooks.com/blog/2013/04/23/5-essential-vim-plugins/
- https://github.com/junegunn/vim-easy-align
- http://www.wklken.me/posts/2015/06/07/vim-plugin-easyalign.html
- http://joelhooks.com/blog/2013/04/23/5-essential-vim-plugins/