当前位置:网站首页>vim常用命令
vim常用命令
2022-06-22 03:12:00 【风华浪浪】
VIM
工作五年了,虽然说一直在用,但是用的比较肤浅, 查找关键词、跳转到首页、结页、插入等,其他命令过多好像并没有用到,但是现在又用到了一部分,还是总结一下吧,留个查找的库。
一、保存文件
| :q | 退出 |
|---|---|
| :wq | 保存并退出 |
| :q! | 不保存并退出 |
| :w | 保存 |
| :w! | 强行保存 |
| :wq! | 强行保存并退出| |
二、跳转
vim中跳到第一行和最后一行
底线命令模式
:0或:1跳到文件第一行
:$跳到文件最后一行
命令模式
gg跳到第一行
#G:跳转至第#行
shift+g跳到文件最后一行
+#: 向下的#行
删除命令: d
d命令跟跳转命令组合使用 #dw, #de, #db
dd: 删除当前光标所在行
#dd: 删除包括当前光标所在行在内的#行;
边栏推荐
- Sword finger offer 37 Serialized binary tree
- Implementation of synchronization and atomic operation by mutex mutex in golang concurrent programming
- 【NVMe2.0b 11】NVMe Reset
- The most popular massive Alibaba cloud disk resource sharing
- eu5,eu7,ex3,ex5安装第三方app
- NXP imx8mp learning records
- Wechat applet onpagescroll is invalid
- 工厂模式
- Mysql 字段类型以及对应的长度 & 字节
- Library management system (PHP final report)
猜你喜欢

Configuration and optimization of redis cache database

Fastdfs-5.0.5 installation

table标签的不规则布局

On the auto increment of int type primary key in MySQL

eu5,eu7,ex3,ex5安装第三方app

图数据库ONgDB Release v-1.0.2

Hosting environment, components, APIs, collaboration and publishing of applets

关于mysql的int型主键自增问题

NXP imx8mp学习记录

【NVMe2.0b 9】控制器初始化过程
随机推荐
【NVMe2.0b 8】NVMe 队列仲裁机制
selenium入门级项目 - 豆豆玩竞猜
关于mysql的int型主键自增问题
【NVMe2.0b 11】NVMe Reset
Wxml template syntax, wxss template style, global configuration, page configuration, and network data request
Redis configuration and optimization
NXP imx8mp learning records
从根儿上理解虚拟内存
torch. Max() explanation
CMD view the console output of hearts, diamonds, spades and clubs to solve the garbled code
调度功能:splunk-operator-controller-manager
克隆的vmware虚拟主机网卡无法启动解决办法
图数据库ONgDB Release v-1.0.2
JS操作节点经典案例(三级联动)
高考后网上查询信息,注意防范没有 SSL证书的网站
Harmonyos Hongmeng uses ORM bee to access database instances
360edr planing
策略模式
Unity3d C # generates non repeated random numbers in the interval
uv_ loop_ Init() process