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

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
Help Net Security
Help Net Security
P
Privacy International News Feed
T
Threat Research - Cisco Blogs
C
Cisco Blogs
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
L
LINUX DO - 热门话题
Security Latest
Security Latest
A
Arctic Wolf
G
GRAHAM CLULEY
月光博客
月光博客
S
Securelist
D
Docker
J
Java Code Geeks
T
Troy Hunt's Blog
T
Tenable Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
SecWiki News
SecWiki News
S
Security @ Cisco Blogs
量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
L
LINUX DO - 最新话题
Recent Commits to openclaw:main
Recent Commits to openclaw:main
aimingoo的专栏
aimingoo的专栏
博客园 - 【当耐特】
H
Heimdal Security Blog
The Hacker News
The Hacker News
博客园 - 三生石上(FineUI控件)
Application and Cybersecurity Blog
Application and Cybersecurity Blog
N
Netflix TechBlog - Medium
Vercel News
Vercel News
Forbes - Security
Forbes - Security
B
Blog RSS Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
IT之家
IT之家
B
Blog
MongoDB | Blog
MongoDB | Blog
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
S
Secure Thoughts
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Check Point Blog
云风的 BLOG
云风的 BLOG
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
The Blog of Author Tim Ferriss
L
Lohrmann on Cybersecurity
F
Full Disclosure
D
Darknet – Hacking Tools, Hacker News & Cyber Security
P
Proofpoint News Feed

博客园 - 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] ---- 跳转到给定标签的位置

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

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