Vim

# 替换
:s/xxx/yy/g
# 启用行数
:set nu
# 关闭行数
:set nonu
# 格式化
gg=G
# 查询
?hello
# 删除
dd
# 拷贝
y
# 粘贴
p
# 撤销
u