Showing posts with label vim. Show all posts
Showing posts with label vim. Show all posts

Saturday, January 9, 2010

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

    Monday, August 3, 2009

    趣味のエディタ評価

    Emacs

    => light~heavy,comfortable when know many short-cuts.But no need do it all in Emacs.

    Vim

    => light,comfortable,better to know vim when working.

    Editra

    => sometime feel heavy,good editor.

    Geany

    => light,good editor.

    notepad++

    => light,good editor for windows

    Eclipse

    => Heavy,nice editor on super machine.

    Xcode

    => light,nice editor,But only mac

    My sets:
    *Geany for main job
    *Vim for git
    *Meld for git
    *Mutt for email
    *twidge for twit
    *FireFox for google apps
    need some calendar client? need some RSS reader?,Browser is enough for that.