Linux常用的编辑工具vim
Linux常用的编辑工具vim
1.编写C语言文件(以hello文件为例 .c后缀)

启动vim 命名新文件hello Enter

进入编辑界面
输入i 开始编辑

编写完成 esc键 输入 :wq enter 保存文件 退出编辑模式
编译hello.c

gcc -o hello hello.c
./hello
指令完成编译
搜索
复制
Linux常用的编辑工具vim
1.编写C语言文件(以hello文件为例 .c后缀)

启动vim 命名新文件hello Enter

进入编辑界面
输入i 开始编辑

编写完成 esc键 输入 :wq enter 保存文件 退出编辑模式
编译hello.c

gcc -o hello hello.c
./hello
指令完成编译
搜索
复制