mac 终端配置iterm2 + oh-my-zsh + tmux + vim

来源:互联网 发布:格里芬数据 编辑:程序博客网 时间:2024/06/12 11:44

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 vimset modelines=0         " CVE-2007-2438" Normally we use vim-extensions. If you want true vi-compatibility" remove change the following statementsset nocompatible        " Use Vim defaults instead of 100% vi compatibilityset 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 offset 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 smartindentset tabstop=4set shiftwidth=4set autoreadset autowriteset hlsearchsyntax oncolor solarized"colorscheme molokaiset encoding=utf-8set termencoding=utf-8set fileencodings=utf-8,ucs-bom,gb18030,defaultset formatoptions+=mset formatoptions+=B"双击时高亮map <2-LeftMouse> *map! <2-LeftMouse> <c-o>*"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

尽情享受终端带来的乐趣吧!

0 0