Vim bundle
2016-04-29 10:05
281 查看
1、 .vimrc配置
2、下载并安装bundle:
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
3、在.vimrc的命令模式下执行:BundleInstall命令,等待插件的安装
4、拷贝颜色:
安装了这么牛逼的东西,不会用?(me,too)
那就慢慢看帮助文档吧,vi命令模式下:
" 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 插件名
相关文章推荐
- C语言字符串结束符
- 使用C#的HttpWebRequest模拟登陆网站
- 1. windows下作为应用程序启动apache的方法
- zabbix 界面翻译不完全的处理
- 开根号几种写法
- 佩尔方程的最小解
- JavaScript函数柯里化详解
- 线程中sleep和wait的区别
- POJ_2392_Space_Elevator_(动态规划,背包)
- URLEncode和URLDecode的注意事项
- JAVA回调机制(CallBack)详解
- 记录一次多线程死锁的问题
- Maven学习之利用mvn deploy命令上传包
- 线上服务 静态html CMS 发布rsync 同步
- java程序的工作原理
- MySQL数据查询
- Execution failed for task ':app:clean' Unable to delete directory: ..\app\build\outputs\apk
- 分析JVM gc日志
- 用openssl为苹果开发者账号gerneate证书申请
- 使用Jackson转换带下划线的属性为驼峰属性