vim插件安装
来源:互联网 发布:tensorflow graph 编辑:程序博客网 时间:2024/05/16 02:13
来自http://www.cnblogs.com/wangweiwen/p/6103744.html
1,先安装vim,用VIM --Version查看版本,注意vim必须7.4以上版本,因为下面的插件要求7.4以后的版本
2,安装git
3,mkdir -p ~/.vim && touch ~/.vimrc
4,git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
5,vi ~/.vimrc写入如下的内容
filetype off " required! set rtp+=~/.vim/bundle/vundle/ call vundle#rc() " let Vundle manage Vundle " required! Bundle 'gmarik/vundle' " My Bundles here: " " original repos on github Bundle 'tpope/vim-fugitive' Bundle 'rstacruz/sparkup', {'rtp': 'vim/'} Bundle 'tpope/vim-rails.git' Bundle 'scrooloose/nerdtree' Bundle 'kien/ctrlp.vim' Bundle 'c.vim' Bundle 'msanders/snipmate.vim' Bundle 'mileszs/ack.vim' Bundle 'Shougo/neocomplcache.vim' Bundle 'Townk/vim-autoclose' "Bundle 'Valloric/YouCompleteMe' 和neocomplache 功能一样,都是提示的 Bundle 'Lokaltog/vim-powerline' " vim-scripts repos Bundle 'L9' Bundle 'FuzzyFinder' " non github repos Bundle 'git://git.wincent.com/command-t.git' " git repos on your local machine (ie. when working on your own plugin) " ... filetype plugin indent on " required! " " Brief help " :BundleList - list configured bundles " :BundleInstall(!) - install(update) bundles " :BundleSearch(!) foo - search(or refresh cache first) for foo " :BundleClean(!) - confirm(or auto-approve) removal of unused bundles " " see :h vundle for more details or wiki for FAQ " NOTE: comments after Bundle command are not allowed.. " NERDTree config map <F2> :NERDTreeToggle<CR> let NERDTreeDirArrows=0 autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif "neocomplache config let g:neocomplcache_enable_at_startup = 1 let g:neocomplcache_force_overwrite_completefunc = 1 "other config set nu set mouse=a set tabstop=2 let mapleader = "," let g:mapleader = "," map Y "+y map P "+p "" "easymotion let g:EasyMotion_leader_key = '<Leader>' "powerline config set mouse=a set laststatus=2 set t_Co=256 set encoding=utf-8 set fillchars+=stl:\ ,stlnc:\ set nohlsearch noremap <Up> <Nop> noremap <Down> <Nop> noremap <Left> <Nop> noremap <Right> <Nop> " "" taglist " let Tlist_Show_One_File=1 "只显示当前文件的tags let Tlist_WinWidth=40 "设置taglist宽度 let Tlist_Exit_OnlyWindow=1 "tagList窗口是最后一个窗口,则退出Vim let Tlist_Use_Right_Window=1 "在Vim窗口右侧显示taglist窗口 " highlight CursorLine guibg=lightblue guifg=black ctermbg=lightgray ctermfg=black " highlight CursorColumn guibg=lightblue ctermbg=lightgray guifg=black ctermfg=black set cursorline hi CursorLine cterm=NONE ctermbg=lightgray ctermfg=black guibg=black guifg=lightblue set cursorcolumn hi CursorColumn cterm=NONE ctermbg=darkred ctermfg=white guibg=darkred guifg=white " fix the bug mac delete button do not work set backspace=2 " 光标停留在上次离开的位置 au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif
6,vim 然后在normal模式下面,输入 “:PluginInstall”,然后回车
0 0
- vim安装vim-airline插件
- vim插件 安装
- vim插件安装
- Vim插件DrawIt安装
- vim插件安装
- vim安装插件问题
- vim插件安装目录
- vim插件安装路径
- VIM插件安装路径
- 如何安装VIM插件
- vim插件安装
- vim ctags 插件安装
- vim插件cscope安装
- VIM插件安装
- VIM 插件安装路径
- vim插件安装
- linux vim插件安装
- vim插件安装
- 安卓四大程序组件+Intent讲解
- 翻转数组
- 防线Defense Lines
- 安卓开发者选项菜单里的动画选项都代表什么含义?
- Apache服务以及httpd.conf配置详解
- vim插件安装
- SQL基本操作
- Android CoordinatorLayout + AppBarLayout(向上滚动隐藏指定的View)
- 【小米澎湃 S1 芯片、小米5c 发布】
- 利用View自身的方法实现倒计时功能
- 安卓客户端带密码压缩或者解压zip文件
- MPLS简介
- python3-Django项目发布后通过ip地址不能访问
- 再论WGS84、ITRF2008及NavCom StarFire