Vim常用编辑命令:移动、跳转到文档中某位置
来源:互联网 发布:璟亦诚读屏软件 编辑:程序博客网 时间:2024/06/03 03:24
vi编辑器是Linux和Unix上最基本的文本编辑器,是visual editor的简称,工作在字符模式下。由于不需要图形界面,vi是效率很高的文本编辑器。它在Linux上的地位就像Edit程序在DOS上一样。它可以执行输出、删除、查找、替换、块操作等众多文本操作,而且用户可以根据自己的需要对其进行定制。Vim是vi的加强版,比vi更容易使用。vi的命令几乎全部都可以在vim上使用。常用基本命令如下有:
- gg:命令将光标移动到文档开头
- G:命令将光标移动到文档末尾
- vi编辑器中在命令行模式下输入G可以直接跳转到页面的底部在命令行模式下输入1G可以跳转到页面的头部位置
- h Move left
- j Move down
- k Move up
- l Move right
- w Move to next word
- W Move to next blank delimited word
- b Move to the beginning of the word
- B Move to the beginning of blank delimted word
- e Move to the end of the word
- E Move to the end of Blank delimited word
- ( Move a sentence back
- ) Move a sentence forward
- { Move a paragraph back
- } Move a paragraph forward
- 0 Move to the begining of the line
- $ Move to the end of the line
- 1G Move to the first line of the file
- G Move to the last line of the file
- nG Move to nth line of the file
- :n Move to nth line of the file
- fc Move forward to c
- Fc Move back to c
- H Move to top of screen
- M Move to middle of screen
- L Move to botton of screen
- % Move to associated ( ), { }, [ ]
0 0
- Vim常用编辑命令:移动、跳转到文档中某位置
- Vim常用编辑移动命令
- Vim常用命令:移动 跳转 到 文档开头或末尾
- vim常用编辑命令
- VIM常用编辑命令
- vi/vim 常用编辑命令
- VIM的常用编辑命令
- linux中常用的vim编辑文件命令
- Vim基本编辑和移动命令
- 总结一下vim常用编辑命令
- VI 光标移动及常用编辑命令
- VI 光标移动及常用编辑命令
- VI 光标移动及常用编辑命令
- 常用的VIM命令列表 移动光标
- VIM从入门到精通(插入、移动、编辑、撤销)
- Vim文档编辑
- vim文档编辑
- Vim文档编辑
- C++ Primer 总结之Chap4 Arrays and Pointers
- git使用小结
- 基于Spring开发——自定义标签及其解析
- 程序员的编程语言迁移路线
- 412.FizzBuzz
- Vim常用编辑命令:移动、跳转到文档中某位置
- windows 控制台cmd乱码的解决办法 chcp 65001
- ios命令行自助打包-使用xcodebuild和xcrun打包签名
- CSS Grid布局这样玩
- 五十行javascript代码实现简单的双向数据绑定
- Qt中获取字符串中的汉字
- POJ1067取石子游戏 威佐夫博弈
- 利用CI框架做一个随机的验证码识别
- LeetCode 之 Roman to Integer