您的位置:首页 > 其它

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

2016-12-10 00:44 387 查看
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>*
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""


尽情享受终端带来的乐趣吧!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: