zoukankan      html  css  js  c++  java
  • 一步一步将Vim打造成C++超级IDE

      文/嶽永鹏

      最近从MS Windows 转到了Liunx,花了一段时间熟悉和学习Liunx环境。有时候,真的很是怀念MS Vistual Studio那种超级智能的开发环境,总是想在Vim拾起那些曾进熟悉的符号,因此决定把捣鼓很久的东西写下来。本文具体的实践环境为:linux centos 6.4。

      本文最终可以实现的Vim功能:

    • Centos YUM Install Vim;
    • Installing Ctags
    • Installing Cvim
    • InstallingOmniCppComplete
    • Installing Autocomplpop

      终极桌面

    • YUM 安装 Vim
    $su
    $type your pwd
    $yum install vim 
    View Code
    •  Installing Ctags

        下载地址:

    http://ctags.sourceforge.net/

       最简单的方式是下载Source RPM 格式,直接单击就可以安装。

    • Installing Cvim

      下载地址:

    http://www.vim.org/scripts/script.php?script_id=213

      安装步骤 :(详细可以参见:vim /usr/share/vim/vimfiles/doc/templatesupport.txt 官方文档)

    1. 解压软件;
    2. 进入解压的文件夹,打开终端。& mv 文件名 / /usr/share/vim/vimfiles/ 子文件夹;
    3. 如过移动不成功,则需要权限,输入命令$ su 以后再执行第二步的操作。
    4. 设置vimrc 文件 ,$ sudo vim /etc/vimrc 加入
    5. $ filetype plugin on
    • 安装 OmniCppComplete

      下载地址

    http://www.vim.org/scripts/script.php?script_id=1520

      安装步骤:

    1. 解压软件;
    2. 进入解压的文件夹,打开终端。& mv 文件名 / /usr/share/vim/vimfiles/ 子文件夹;
    3. 如过移动不成功,则需要权限,输入命令$ su 以后再执行第二步的操作。

      详细可以参见:vim /usr/share/vim/vimfiles/doc/omnicppcomplete.txt官方文档

    • Installing Autocomplpop

       下载地址:

    http://www.vim.org/scripts/script.php?script_id=213


      安装步骤:

    1. 解压软件;
    2. 进入解压的文件夹,打开终端。& mv 文件名 / /usr/share/vim/vimfiles/ 子文件夹;
    3. 如过移动不成功,则需要权限,输入命令$ su 以后再执行第二步的操作。

      详细安装步骤:vim  /usr/share/vim/vimfiles/doc/acp.txt 官方文档

  • 相关阅读:
    apache phoenix查询缓慢问题
    hbase replication原理分析
    ServerSocketChannel实现多Selector高并发server
    hbase hmaster故障分析及解决方案:Timedout 300000ms waiting for namespace table to be assigned
    mapreduce出现类似死锁情况
    【转】How-to: Enable User Authentication and Authorization in Apache HBase
    最近的一些杂念思考
    我究竟该成为什么样的一个人
    解决linux下 使用netcore生成图片报错的问题:The type initializer for 'Gdip' threw an exception
    linux 编译安装nginx
  • 原文地址:https://www.cnblogs.com/YUEYongpeng/p/3656045.html
Copyright © 2011-2022 走看看