4

Linux学习笔记 3 Vim必背命令

 2 years ago
source link: https://changkun.de/blog/posts/learn-linux-3/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Linux学习笔记 3 Vim必背命令

Published at:

2013-11-20

  |  

Reading: 193 words ~1min

  |  

PV/UV: 5/5

命令模式:

	i 	在光标前插入文本
	o 	在当前行的下一行插入新行
	dd 	删除整行
	u	撤销上一个操作
	yy	将当前行内容放入缓冲区(复制当前行)
	nyy 将n行内容放入缓冲区
	p	将缓冲区的文本放入光标后
	r	替换当前字符
	/	查找关键字 n键进行切换

ex模式:

	: w	保存
	: q	退出
	: x      保存并退出
	: q!	强制退出
	: set number	显示行号
	: ! [系统命令] 执行一个系统命令并显示结果
	: sh	切换到命令行,ctrl+d切换回vim
  • Overview
© 2008 - 2022 Changkun Ou. All rights reserved. | PV/UV: 328189/66774

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK