【Ubuntu】vimコンパイルcプログラム

415 ワード

1.  gcc 
sudo apt-get install gcc
2.       
vim test.c 
    vim   ,    a ,      ,      C    :

#include int main() { printf("hello world!
"); }
  , esc       ,       (shift +        ),      wq ,    

  :wq

    ,   vim           (  xp      ),

    

  gcc test.c  ,     

  ./a.out  ,     ,     hello world!