Thursday, February 19, 2009

Install basic development document under ubuntu

In order to query usage document of C library, it's convenient to install following two packages:

sudo apt-get install glibc-doc
sudo apt-get install manpages-dev


Then, we can use 'K' in vim to query the document. It needs a little configuration.
  1. At first, add following configuration to .vimrc

  2. set keywordprg=manall



  3. Secondly, create a script named "manall"
  4. #!/bin/sh

    man -a $1


0 comments: