###vim编辑器(插入模式、命令模式、低行模式)
* vim的配置 vim /etc/vim/vimrc
* set autoindent:自动缩进
* set shiftwidth=4
* set tabstop=4 :tab长度为4
* set number:设置标号
* vim操作指令(esc进入命令模式)
* g: 至最顶行
* x:删除一个字符
* dd:删除本行/剪切本行
* 【3】dd:剪切光标后三行
* G:至最底行
* p:粘贴
* 【3】yy:复制光标下三行
* vim。。。(shift+;进入底行模式)
* :%s/main/xxx 将main替换为xxx
* /关键字查找
###编译过程
* 1预处理:处理#字开头的代码
gcc -E test.c -o test.i
* 2编译:语法检查、c=>汇编
gcc -S test.i -o test.s
* 3汇编:汇编=>二进制
gcc -c test.s -o test.o
* 4链接
gcc test.o -o test
###make&Makefile
* 1Makefile规则
target:dependence
(tab) commend
* 伪目标文件
.PHONY xxx
xxx:(....)
(tab) commend
###<gdb>
* list l 列出源码
* break b 设置断点
* delete x 删除断点
* run r 运行
* continue c 继续运行
* next n 向下 前进一句(不进入方法)
* step s 向下前进一句(进入方法)
* print p 显示参数的值
###shell
* 格式:
#!/bin/bash
。。。。。
。。。。。
echo“。。。”
。。。。。
* vim的配置 vim /etc/vim/vimrc
* set autoindent:自动缩进
* set shiftwidth=4
* set tabstop=4 :tab长度为4
* set number:设置标号
* vim操作指令(esc进入命令模式)
* g: 至最顶行
* x:删除一个字符
* dd:删除本行/剪切本行
* 【3】dd:剪切光标后三行
* G:至最底行
* p:粘贴
* 【3】yy:复制光标下三行
* vim。。。(shift+;进入底行模式)
* :%s/main/xxx 将main替换为xxx
* /关键字查找
###编译过程
* 1预处理:处理#字开头的代码
gcc -E test.c -o test.i
* 2编译:语法检查、c=>汇编
gcc -S test.i -o test.s
* 3汇编:汇编=>二进制
gcc -c test.s -o test.o
* 4链接
gcc test.o -o test
###make&Makefile
* 1Makefile规则
target:dependence
(tab) commend
* 伪目标文件
.PHONY xxx
xxx:(....)
(tab) commend
###<gdb>
* list l 列出源码
* break b 设置断点
* delete x 删除断点
* run r 运行
* continue c 继续运行
* next n 向下 前进一句(不进入方法)
* step s 向下前进一句(进入方法)
* print p 显示参数的值
###shell
* 格式:
#!/bin/bash
。。。。。
。。。。。
echo“。。。”
。。。。。