vi 中常用命令技巧
来源:互联网 发布:java输出换行代码 编辑:程序博客网 时间:2024/06/06 10:54
vi中的命令技巧
file copy in the diffrent file:
"a9yy @don't forget the ",a is variable name,9 is copy lines ,yy is copy
"ap @don't forget the ",a is variable name,p is paste
yy @copy the current line
p @paste
dd @delete the current line
nyy @copy n lines
ndd @delete n lines
d) @Delete the beginning of the next sentence
d} @Delete the beginning of the next paragraph
"
:set nu @don't forget the :,display line numbers
:set nonu @don't forget the :,undisplay line numbers
shift + g @jump to the last line
shift + u @return last state
“^”跳转:将光标快速跳转到本行的行首字符;
“$”跳转:将光标快速跳转到本行的行尾字符;
vi 有一条命令我在这里补充下:我也是一个偶然机会才发现,确实很好用。当我们使用yy命令在在这一个文件中复制,你不能复制到其他文件中,在这里用这个技巧比用剪切板那条命令还方便。
在hello1.c中按下nyy复制你想复制的文本,然后输入命令 :e ./hello2.c 这是就跳转到了hello2.c这个文件去了,然后按下p就可以粘贴到你想粘贴的地方了。(对文本操作必须文本是才保存状态下,e 后面可以根文件的目录)
2 0
- vi 中常用命令技巧
- Vi常用命令及技巧
- vi中常用命令
- vi中常用命令
- VI中常用命令
- vi中常用命令
- vi中常用命令
- vi中常用命令
- Linux中 vi常用命令
- gvim/vim/vi常用命令及技巧
- Vi/Vim常用命令及一些小技巧
- vi中一些常用技巧
- vi常用命令使用(不斷整理中)
- linux 常用命令: find tar vi 中查找
- Linux中vi工具的常用命令
- Vi/Vim/gVim 常用命令(完善中)
- linux中vim和vi的常用命令
- Linux系统中Vi编辑器的常用命令
- AES加密算法之列混合变换
- cocos2d 一个坑爹的内存泄露
- Openstack Mistral 工作流组件介绍
- Android SurfaceView 自定义 Animation
- 简述Android 百分比布局支持库(android-percent-support)
- vi 中常用命令技巧
- EditText+ListView实现从动态显示数据库数据
- Gson-----1、JSON简介
- 南大软院大神养成计划——关于DreamweaverCS6的一些基本使用方法
- LeetCode题解——Path Sum
- HashMap的工作原理
- HIHO_Disk Storage
- 关于mysql-5.7.9-winx64以及其他系列安装的问题解决
- C#读取配置(App.config)