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

推荐订阅源

WordPress大学
WordPress大学
V
Visual Studio Blog
P
Privacy International News Feed
月光博客
月光博客
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
L
Lohrmann on Cybersecurity
N
News and Events Feed by Topic
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Apple Machine Learning Research
Apple Machine Learning Research
阮一峰的网络日志
阮一峰的网络日志
Webroot Blog
Webroot Blog
T
Threatpost
宝玉的分享
宝玉的分享
The Last Watchdog
The Last Watchdog
小众软件
小众软件
L
LINUX DO - 最新话题
C
Cisco Blogs
T
Troy Hunt's Blog
Schneier on Security
Schneier on Security
酷 壳 – CoolShell
酷 壳 – CoolShell
www.infosecurity-magazine.com
www.infosecurity-magazine.com
雷峰网
雷峰网
G
GRAHAM CLULEY
有赞技术团队
有赞技术团队
Know Your Adversary
Know Your Adversary
博客园 - 叶小钗
罗磊的独立博客
V
V2EX
博客园 - Franky
P
Proofpoint News Feed
SecWiki News
SecWiki News
腾讯CDC
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Jina AI
Jina AI
博客园 - 三生石上(FineUI控件)
S
Secure Thoughts
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Google DeepMind News
Google DeepMind News
Attack and Defense Labs
Attack and Defense Labs
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
PCI Perspectives
PCI Perspectives
V2EX - 技术
V2EX - 技术
Google DeepMind News
Google DeepMind News
Last Week in AI
Last Week in AI
aimingoo的专栏
aimingoo的专栏
Cisco Talos Blog
Cisco Talos Blog
N
News and Events Feed by Topic
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
S
SegmentFault 最新的问题

博客园 - JackieHan

ubuntu i3 xterm中文输入显示问题解决 ubuntu vim markdown 实时预览 ubuntu docker方式部署docker registry v2 docker 安装 gogs(go git server) 及问题解决 ubuntu14.04 server 安装docker Ubuntu Tomcat Ubuntu ssh 代理 全网访问速度优化 git 操作 vim使用指北 ---- Multiple Windows in Vim vim使用指北 ---- Advanced Editing vim使用指北 ---- Global Replacement vi/vim使用指北 ---- Introducting the ex Editor ubuntu 点点滴滴 vi/vim使用指北 ---- Learning the vi and Vim Editors 读书 笔记 vi/vim使用指北 ---- Moving Around in a Hurry vi/vim使用指北 ---- Sample Editing linux权威指南 简记 idea 使用
vi/vim使用指北 ---- Beyond the Basic
JackieHan · 2014-09-09 · via 博客园 - JackieHan

2014-09-09 01:38  JackieHan  阅读(385)  评论()    收藏  举报

更多的组合命令

[number]-[command]-[test object]

number:   数字

comand:  c,d,y  (修改,删除,复制)

test object: 移动光标的命令

例如 "-"为连接字符,不是命令组成部分

[c,d,y]-[H,L,M]  ----  (修改,删除,复制)到屏幕的(首行,尾行,中间)

[c,d,y]-[+,-]  ----  (修改,删除,复制)到(上一行,下一行)

[c,d,y]-5|     -----   (修改,删除,复制)到当前行的第5列

[c,d,y]-/-pattern  -----   (修改,删除,复制)到第一个匹配所在位子

[c,d,y]-n   ----  (修改,删除,复制)到下一个匹配所在位置

打开vim时的参数介绍

vim +n file ----  打开文件,光标所在位置指定到n指定的行

vim + file  ---- 打开文件,光标指定到文件的最后一行

vim +/pattern  ---- 打开文件,光标指定到第一个匹配的位置

vim -R file or view file  -----  以只读的方式打开文件

vim -r  ----   显示已保存的缓冲区

vim -r file  ----  从已保存的缓冲区恢复文件

粘帖时缓冲区用法

”-[number]-p  ----  粘帖第几个缓冲区的内容

vim默认会保存9个缓冲区,删除或者复制的内容一次写到这几个缓冲区中,最近的一个为1,一次类推,如果你不知道使用哪一个缓冲区的花,你可以使用"1pu.u.u来选择缓冲区("1p使用最后一个缓冲区的内容,发现不是先回撤,再用重复执行命令.来选择下一个缓冲区)直到你想要的那个缓冲区。

”-[a-z]-[y,d]  -----把复制或删除的内容保存以字母[a-z]命名的缓冲区内容

"-[A-Z]-[y,d]  -----  追加内容到已存在的缓冲区

“-[a-z]-[P,p]    -----   用字母命名的缓冲区内容粘帖到光标前/后

在编辑过程中使用书签

m-[a-zA-Z]  ---- 使用字母标识当前 位置,当前位置的书签为给定字母

'(单引号)-[a-zA-Z] ---- 跳转到给定标签的行首字符位置

`(反单引号)-[a-zA-Z] ---- 跳转到给定标签的位置

‘’(两个单引号)  -----  跳转到上一个标签的行首

``(两个反单引号)----- 跳转到上一个标签的位置