vim 最基本操作

insert mode:               i

save :                        :w

save and quit:           :wq

move cursor:             H (left)     J(next line)      K(last row)     L(right)

open a new line:       o  (below current line)     O(above current line)

delete:                       d

copy:                         y

paste:                        p

undo:                      u

line-connection:         J

find and replace:       :%s/f/r/g               f:  texts to find     r: texts to replace f  /g:optional,means global

open several files:    vim file1 file2 ...

switch opened files:  :n (to the next one)    :N(to the previous one)

insert a whole file to another:   :r  file2           open file1 and use the command to insert content in file2   

 

posted @   黑凤梨  阅读(104)  评论(0编辑  收藏  举报
编辑推荐:
· Java 中堆内存和栈内存上的数据分布和特点
· 开发中对象命名的一点思考
· .NET Core内存结构体系(Windows环境)底层原理浅谈
· C# 深度学习:对抗生成网络(GAN)训练头像生成模型
· .NET 适配 HarmonyOS 进展
阅读排行:
· 手把手教你更优雅的享受 DeepSeek
· AI工具推荐:领先的开源 AI 代码助手——Continue
· 探秘Transformer系列之(2)---总体架构
· V-Control:一个基于 .NET MAUI 的开箱即用的UI组件库
· 乌龟冬眠箱湿度监控系统和AI辅助建议功能的实现
点击右上角即可分享
微信分享提示