您的位置:首页 > 其它

Vim bundle

2016-04-29 10:05 281 查看
1、 .vimrc配置

" Terry's Vimrc <terrysco@gmail.com>
" Based on Vundle

set nocompatible
set encoding=utf8
set fileencodings=utf-8,gb2312,gbk,gb18030,ucs-bom,default,chinese
set number
set ruler

set wrap
set tabstop=4
set shiftwidth=4
set expandtab

let mapleader=','
let g:mapleader=','

set hlsearch

filetype off
syntax on

set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

filetype plugin indent on     " required!

" let Vundle manage Vundle
Bundle 'gmarik/vundle'

Bundle 'scrooloose/nerdtree'
map <Leader>n :NERDTreeToggle<CR> :NERDTreeMirror<CR>
let NERDTreeShowBookmarks=1

Bundle 'jistr/vim-nerdtree-tabs'

Bundle 'majutsushi/tagbar'
map <leader>rt :TagbarToggle<CR>
let g:tagbar_type_php  = {
\ 'ctagstype' : 'php',
\ 'kinds'     : [
\ 'i:interfaces',
\ 'c:classes',
\ 'd:constants',
\ 'f:functions',
\ 'j:javascript functions:1'
\ ]
\ }

Bundle 'scrooloose/syntastic'

" Color Scheme
Bundle 'tomasr/molokai'
colorscheme molokai

Bundle 'ap/vim-css-color'
Bundle 'ervandew/supertab'

" vip-snipmate dependencies
"Bundle "MarcWeber/vim-addon-mw-utils"
"Bundle "tomtom/tlib_vim"
"Bundle "honza/vim-snippets"
"Bundle 'garbas/vim-snipmate'

Bundle 'scrooloose/nerdcommenter'
Bundle 'tpope/vim-surround'

Bundle 'jimenezrick/vimerl'

Bundle 'mileszs/ack.vim'
Bundle 'Lokaltog/vim-easymotion'

Bundle 'kien/ctrlp.vim'
let g:ctrlp_map = '<Leader>t'
nmap ; :CtrlPBuffer<CR>

Bundle 'godlygeek/tabular'
Plugin 'nsf/gocode', {'rtp': 'vim/'}
Bundle 'fatih/vim-go'

call vundle#end()

" map keys
map <Down> gj
map <Up> gk
map <leader>1 1gt
map <leader>2 2gt
map <leader>3 3gt
map <leader>4 4gt
map <leader>5 5gt
map <leader>6 6gt
map <leader>7 7gt
map <leader>8 8gt
map <leader>9 9gt

map <leader>w <C-w>w
set backupdir^=~/.vim/_backup//    " where to put backup files.
set directory^=~/.vim/_temp//      " where to put swap files.


2、下载并安装bundle:

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
3、在.vimrc的命令模式下执行:BundleInstall命令,等待插件的安装

4、拷贝颜色:

cd ~/.vim
cp bundle/molokai/colors/molokai.vim colors/


安装了这么牛逼的东西,不会用?(me,too)

那就慢慢看帮助文档吧,vi命令模式下:

help 插件名
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: