Posted on:
Last modified:
格式化 xml/html
:!tidy -mi -xml -wrap 0 %
:!tidy -mi -html -wrap 0 %
gq<motion>
:verbose map <Key>
using map may cause infinite recursion!
# vim: set filetype=javascript
使用 Ctrl-C 而不是 esc 使用 ZZ 而不是 :wq
use ctrl-w r to swap pane
`{selection}zf` or `zf{motion}` for manual folding
Ctrl-O to go back to files
Ctrl-I to go to new files
:%s/pattern//gn
:g/^$/d
:w !python
使用 i 和 s 分别在 split 中打开文件
不要使用 chardet 来检测过长的网页,可以检测前一千个字符 chardet.detect(text[:1000])
:%!awk '{print $2, $1}'
:set fileencoding=utf8
:w myfilename
:set bomb # add BOMB
© 2016-2022 Yifei Kong. Powered by ynotes
All contents are under the CC-BY-NC-SA license, if not otherwise specified.
Opinions expressed here are solely my own and do not express the views or opinions of my employer.
友情链接: MySQL 教程站