zoukankan      html  css  js  c++  java
  • 超强vim配置

    在网上找vim的配置,自己配置的特别丑

    安装起来也超级方便。

    #!/bin/bash
    echo "安装将花费一定时间,请耐心等待直到安装完成^_^"
    if which apt-get >/dev/null; then
        sudo apt-get install -y vim vim-gnome ctags xclip astyle python-setuptools python-dev git
    elif which yum >/dev/null; then
        sudo yum install -y gcc vim git ctags xclip astyle python-setuptools python-devel    
    fi
    
    ##Add HomeBrew support on  Mac OS
    if which brew >/dev/null;then
        echo "You are using HomeBrew tool"
        brew install vim ctags git astyle
    fi
    
    sudo easy_install -ZU autopep8 
    sudo ln -s /usr/bin/ctags /usr/local/bin/ctags
    mv -f ~/vim ~/vim_old
    cd ~/ && git clone https://github.com/ma6174/vim.git
    mv -f ~/.vim ~/.vim_old
    mv -f ~/vim ~/.vim
    mv -f ~/.vimrc ~/.vimrc_old
    mv -f ~/.vim/.vimrc ~/
    git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
    echo "ma6174正在努力为您安装bundle程序" > ma6174
    echo "安装完毕将自动退出" >> ma6174
    echo "请耐心等待" >> ma6174
    vim ma6174 -c "BundleInstall" -c "q" -c "q"
    rm ma6174
    echo "安装完成"

    github:https://github.com/ma6174/vim

    手动:

    安装vim sudo apt-get install vim
    安装ctags:sudo apt-get install ctags
    安装一些必备程序:sudo apt-get install 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 https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
    打开vim并执行bundle程序:BundleInstall
    重新打开vim即可看到效果

    效果图:

     down:http://files.cnblogs.com/files/sevck/vim-master.zip

    我怕github哪天倒闭了

    转存一份,现在乌云一倒各种后悔之前爬的太少。。

  • 相关阅读:
    TextBox类的成员
    【VB.Net】字节数与字符数的取得
    限制文本框的输入类型
    【转】FxCop 设计规则
    【Spread Sheet 应用(三)】Enter移向下一个单元格
    【ASP.NET】打开关闭新窗体
    常用字符对应ASCII码值
    初识CodeSmith分享两个模板
    【VB.NET】自定义控件(一)属性说明
    LeetCode: Length of Last Word
  • 原文地址:https://www.cnblogs.com/sevck/p/5715911.html
Copyright © 2011-2022 走看看