惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
T
Threatpost
Latest news
Latest news
N
News | PayPal Newsroom
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Help Net Security
Help Net Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
AI
AI
Simon Willison's Weblog
Simon Willison's Weblog
TaoSecurity Blog
TaoSecurity Blog
The Last Watchdog
The Last Watchdog
L
LINUX DO - 热门话题
Google DeepMind News
Google DeepMind News
T
Threat Research - Cisco Blogs
O
OpenAI News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
The Exploit Database - CXSecurity.com
NISL@THU
NISL@THU
Application and Cybersecurity Blog
Application and Cybersecurity Blog
S
Securelist
小众软件
小众软件
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Martin Fowler
Martin Fowler
S
SegmentFault 最新的问题
Cisco Talos Blog
Cisco Talos Blog
云风的 BLOG
云风的 BLOG
AWS News Blog
AWS News Blog
GbyAI
GbyAI
N
News and Events Feed by Topic
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
美团技术团队
Engineering at Meta
Engineering at Meta
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
S
Schneier on Security
博客园 - 聂微东
V2EX - 技术
V2EX - 技术
T
Troy Hunt's Blog
SecWiki News
SecWiki News
S
Secure Thoughts
B
Blog RSS Feed
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
腾讯CDC
H
Heimdal Security Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Apple Machine Learning Research
Apple Machine Learning Research
月光博客
月光博客
www.infosecurity-magazine.com
www.infosecurity-magazine.com
P
Privacy International News Feed

博客园 - liuzhikun-cn

[Z]论意志与毅力 实模式、保护模式和虚拟8086模式 好习惯改变一生 给IT人——谈谈IT人的发展 经典故事86:只要弯一弯腰 qmail常见错误标志 人生有时如开车--CR-V 7个好习惯 人生的十二句经典领悟 经典故事83 Qmail 常用资料 makefile error:missing separator mysql4.1.7 密码认证 Client does not support authentication protocol Linux下添加硬盘 ◆[转天极网]C++大师Stan Lippman:我对中国程序员的忠告 - liuzhikun-cn - 博客园 crontab 续 ◆[转CSDN]学编程,决不可心浮气燥。 Fly With Your Dream 未整理
VI操作技巧
liuzhikun-cn · 2005-07-12 · via 博客园 - liuzhikun-cn

VI真是个超级强大玩意,使用的时间长了,习惯他之后,用Editplus都企图想使用hjkl移动了:)

VI手册的中文版本:
http://vimcdoc.sourceforge.net/doc/usr_toc.html#usr_toc.txt

建议经常翻阅,温故而知新!

下面是我使用VI的时候,积累的一些小经验,其实都是从网上找来的,为了记住,特作积累。

1、批量替换:
:%s/from/to/g

2、批量添加行注释#
:.,+10 s/^/#/g

3、VI中汉字显示成xc8xf0字样的解决办法
FreeBSD : 
在 /etc/profile 中加入下面两行即可 
LANG=it_IT.ISO_8859-1 
export LANG 

SCO UNIX 略有不同,该加入这两行: 
LANG=english_us.8859 
export LANG    


文章来源:http://srni.qmailcn.org/plog/post/1/8