sudo apt-get install vim 安装vim
若不成功:网络连接问题 or sudo apt-get update更新之后再操作
cd ~ 回到根目录 尽量不要到root中操作
:sp max.c 在vi中 命令模式下
ctrl+w+下箭头 切换下面文件
:set nu 显示行号
9dd 剪切9行代码
ctrl+W+上箭头 切换上面文件
p 粘贴
:wqa 全部保存
gcc max.c hello.c -o main.out 编译并且输出main.out
./main.out 执行
gcc -c max.c -o max.o
gcc max.o hello.c