1, 下載下傳iterm2,并安裝, 官網http://www.iterm2.com/
然後去下載下傳iterm2主題http://ethanschoonover.com/solarized
下載下傳後輕按兩下solarized/iterm2-colors-solarized/ 輕按兩下裡面的檔案(修改終端配色)
和solarized/vim裡面檔案(修改vim配色)
2, 安裝home brew, 官網http://brew.sh/
3,安裝oh-my-zsh, iterm2下執行
sudo apt-fast install zsh
chsh -s /bin/zsh
…(還有其他強大功能google即可)
4,安裝tmux, iterm2下執行brew install tmux
5,安裝vim插件
git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
安裝插件指令如下:
:BundleList -列舉出清單中(.vimrc中)配置的所有插件
:BundleInstall -安裝清單中全部插件
:BundleInstall! -更新清單中全部插件
:BundleSearch foo -查找foo插件
:BundleSearch! foo -重新整理foo插件緩存
:BundleClean -清除清單中沒有的插件
:BundleClean! -清除清單中沒有的插件
然後修改~/.vimrc,
附上.vimrc(暫時如下,以後有更新):
" Configuration file for vim
set modelines=0 " CVE-2007-2438
" Normally we use vim-extensions. If you want true vi-compatibility
" remove change the following statements
set nocompatible " Use Vim defaults instead of 100% vi compatibility
set backspace=2 " more powerful backspacing
" Don't write backup file if vim is being called by "crontab -e"
au BufWrite /private/tmp/crontab.* set nowritebackup nobackup
" Don't write backup file if vim is being called by "chpass"
au BufWrite /private/etc/pw.* set nowritebackup nobackup
"""""""""""""""""""""""""""""插件""""""""""""""""""""""""""""""""""
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'AutoComplPop'
Bundle 'The-NERD-tree'
Bundle 'molokai'
Bundle 'ZenCoding.vim'
Bundle 'L9'
Bundle 'FuzzyFinder'
filetype plugin indent on
"Ctrl+p搜尋檔案
map <C-P> :FufCoverageFile<CR>
map! <C-B> :FufCoverageFile<CR>
"""""""""""""""""""""""""""""end"""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""功能""""""""""""""""""""""""""""""""""
set smartindent
set tabstop=4
set shiftwidth=4
set autoread
set autowrite
set hlsearch
syntax on
color solarized
"colorscheme molokai
set encoding=utf-8
set termencoding=utf-8
set fileencodings=utf-8,ucs-bom,gb18030,default
set formatoptions+=m
set formatoptions+=B
"輕按兩下時高亮
map <2-LeftMouse> *
map! <2-LeftMouse> <c-o>*
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
盡情享受終端帶來的樂趣吧!