Skip to content

Instantly share code, notes, and snippets.

@Alfred-Sun
Last active August 29, 2015 14:16
Show Gist options
  • Save Alfred-Sun/6377b2c2692641349470 to your computer and use it in GitHub Desktop.
Save Alfred-Sun/6377b2c2692641349470 to your computer and use it in GitHub Desktop.
missing h2 end tag when prasing with redcarpet 3.2.2

光标移动

h,j,k,l = ←, ↓, ↑, →
ctrl+f = 下一页(forward)
w = 跳下一个单词的开头
W = 跳到下一个单词(空白分隔)的开头
0 = 跳到本行行头
可以匹配 b,be,bee,beee 等

替换(测试)

:s/str1/str2/      " 用字符串 str2 替换当前行中第一次出现的字符串 str1
:n,$s/str1/str2/g   " 替换第 n 行开到一行所有 str1 为 str2
:10,0 s/^/ /g   " 从第 10 行到第 20 行,每行前面加空格,用于缩进

退出

:w = 保存

测试 测试 测试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment