2010-01-09

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

    0 件のコメント:

    BCM4321 on Latitude D430

    At kernel 3 find wireless hardware lspci | grep -i wireless  check using current kernel module with PCI bus address lspci -vv -s 0c:...