vim find and replace

/\CApp		只匹配App
/\cApp		匹配App app

Markdown表格控制
:%s/^\(\w* *\)/\1|/g        在第一个空格前加|
:%s/^\(\w* *\|\w* *)/\1|/g  在第二组空格前加|
:%s/^/|/g                   在行首加|
:%s/$/|/g                   在行尾加|


/jo[ha]n	Search john or joan
/\<the		Search the, theatre or then
/the\>		Search the or breathe
/\<the\>	Search the
/fred\|joe	Search fred or joe

:%s/  */ /g				将多个空格换成一个空格
:%s/\([:.]\)  */\1 /g	使用空格替换句号或者冒号后面的一个或者多个空格
:g/^$/d					删除所有空行
:g/^[  ][  ]*$/d		删除所有的空白行和空行
:%s/^/>  /				在每行的开始插入两个空白
:.,5/$/./				在接下来的6行末尾加入.
:g/.*/m0O  <=> :g/^/m0O	颠倒文件的行序
:g!/^[0-9]/m$ <=> g/^[^0-9]/m$	寻找不是数字的开始行,并将其移到文件尾部
:1,10g/^/12,17t$		将文件的第12到17行内容复制10词放到当前文件的尾部

行当前的Python脚本
map <F12> :!python.exe %

自动开启行号
:set nu	

普通模式输入
:!ctags -R
普通模式下输入
:ta func_name
就可以直接将光标定位到func_name函数处