九鼎创展论坛中文版English
登录 | 立即注册 设为首页收藏本站 切换到宽版
查看: 3432|回复: 1
打印 上一主题 下一主题

【转】实用的vim配置(已测试)

[复制链接]
跳转到指定楼层
楼主
发表于 2014-4-8 21:32:33 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 以书入法 于 2014-4-8 21:39 编辑

转自http://www.cnblogs.com/ma6174/archive/2011/12/10/2283393.html
进入https://github.com/ma6174/vim

简易安装方法:

打开终端,执行下面的命令就自动安装好了:

wget https://raw.github.com/ma6174/vim/master/setup.sh -O ma6174_vim_setup.sh && bash ma6174_vim_setup.sh

或者自己手动安装:(以ubuntu为例)
  • 安装vim sudo apt-get install vim
  • 安装ctags:sudo apt-get install ctags
  • 安装一些必备程序:sudo apt-get install python-twisted xclip vim-gnome astyle python-setuptools
  • python代码格式化工具:sudo easy_install -ZU autopep8
  • sudo ln -s /usr/bin/ctags /usr/local/bin/ctags
  • clone配置文件:cd ~/ && git clone git://github.com/ma6174/vim.git
  • mv ~/vim ~/.vim
  • mv ~/.vim/.vimrc ~/
  • clone bundle 程序:git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
  • 打开vim并执行bundle程序:BundleInstall
  • 重新打开vim即可看到效果


------------------------------------------------

附:本人在网上偶然发现的,在ubuntu12.04,ubuntu13.10,fedora19,fedora20上都安装过,效果很好...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|深圳市九鼎创展科技官方论坛 ( 粤ICP备11028681号-2  

GMT+8, 2024-5-3 08:59 , Processed in 0.017122 second(s), 18 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表