C++ and C setting for VIM

OmniCppComplete & C/C++ IDE


1.get src.


  • ctags

  • c.vim : C/C++ IDE

  • OmniCppComplete : C/C++ omni-completion with ctags database

  • 2.setup ctags


    # tar xzvf ctags-XXXX.tar.gz
    # cd ctags-xxxx
    # ./configure
    # make
    # make install
    when install,should be root or user has permission.

    3.setup vim plugin


    # mkdir ~/.vim
    # cd ~/.vim
    # unzip
    # unzip

    4.add .vimrc


    # vim ~/.vimrc
    ---add this below 2 lines---
    filetype plugin on
    set nocompatible

    5.activate OmniComplete


    # vim foo.cx
    :helptags ~/.vim/doc

    Then now able to do this functions.
    OmniComplete
    Adding file header
    Adding function/frame comment
    Including default code snippet
    Performing syntax check
    Reading documentation about a function
    Converting a code block to comment, and vice versa

    コメント

    このブログの人気の投稿

    git-archive by 7zip

    Skype mood to twitter by COM