安装vim

打开终端
输入sudo apt-get install vim-gtk
输入登陆密码
等待安装完成

编译C

创建.c文件:vim helloworld.c
编写代码,保存并退出

在ubuntu编写helloworld

编译:gcc helloworld.c -o helloworld
运行:./helloworld

在ubuntu编写helloworld

命令 说明
:q! 强制退出,不保存
:q 退出
:wq! 强制保存并退出
:w <文件路径> 另存为
:saveas 文件路径 另存为
:x 保存并退出
:wq 保存并退出

linux直接编译helloworld

 #bin/Bash
echo "hello world"

在ubuntu编写helloworld

相关文章:

  • 2021-11-08
  • 2021-11-08
  • 2022-12-23
  • 2021-08-21
  • 2021-09-01
  • 2021-12-09
  • 2021-08-02
  • 2021-04-11
猜你喜欢
  • 2021-09-27
  • 2021-09-09
  • 2022-12-23
  • 2022-12-23
  • 2021-05-07
  • 2021-06-23
  • 2022-12-23
相关资源
相似解决方案