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

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>*
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值