Vim常用命令:移动 跳转 到 文档开头或末尾
来源:互联网 发布:linux开发语言 编辑:程序博客网 时间:2024/06/04 19:04
http://outofmemory.cn/code-snippet/4016/go-to-bottom-of-file-in-vim-editor
gg:命令将光标移动到文档开头
G:命令将光标移动到文档末尾
vi编辑器中在命令行模式下输入G
可以直接跳转到页面的底部
在命令行模式下输入1G
可以跳转到页面的头部位置
更多在vi中移动编辑位置的命令说明如下:
- 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常用编辑命令:移动、跳转到文档中某位置
- PHP去除字符串开头或末尾逗号
- PHP去除字符串开头或末尾逗号
- 移动光标到末尾
- 移动数组中的‘0’到数组末尾
- Android EditText光标移动到文本框末尾
- Android EditText光标移动到文本框末尾
- Android EditText光标移动到文本框末尾
- .NET C# 如何将光标置于 TextBox 控件中的文本的开头或末尾或当前位置
- .NET C# 如何将光标置于 TextBox 控件中的文本的开头或末尾或当前位置
- vi如何删除到文档开头(首行)
- VIM到帮助文档
- php去除字符串开头或末尾的字符(例如逗号)
- vim跳转到指定行
- vim跳转到指定行
- vim 跳转到某一行
- [转载].NET C# 如何将光标置于 TextBox 控件中的文本的开头或末尾或当前位置
- 8939sbl部分关闭LDO6电源延迟120ms之后再打开
- Nsdate 的扩展
- RtlFreeUnicodeString routine
- android用数组保存输出流的数据包的问题(最后等到的所有的都变成最后一个包)
- MySQL 入门 之 表 的 创建、修改与删除
- Vim常用命令:移动 跳转 到 文档开头或末尾
- 静态代码块
- Win7下Android native code的编译和调试
- 蛇形填数
- Solr基础教程之环境搭建(一)
- HDU4786(生成树)
- Qt核心剖析:信息隐藏
- 【IOS自定义工具类之缓存助手类】CacheHelper
- 2015百度招聘