首页 > 其他分享 > Vim 模式 All In One

Vim 模式 All In One

时间:2023-04-13 13:12:34浏览次数:33  
标签:Insert -- 模式 Vim mode pi

Vim 模式 All In One

Vim 模式

normal mode 正常模式

visual mode 可视化模式

command mode 命令模式

insert mode 插入模式 i/ eidt mode 编辑模式

select mode 选择模式

ex mode 扩展模式

Vim modes

https://vimdoc.sourceforge.net/htmldoc/intro.html#vim-modes-intro

5. Modes, introduction				*vim-modes-intro* *vim-modes*

Vim has six BASIC modes:


					*Normal* *Normal-mode* *command-mode*
Normal mode		In Normal mode you can enter all the normal editor
			commands.  If you start the editor you are in this
			mode (unless you have set the 'insertmode' option,
			see below).  This is also known as command mode.

Visual mode		This is like Normal mode, but the movement commands
			extend a highlighted area.  When a non-movement
			command is used, it is executed for the highlighted
			area.  See |Visual-mode|.
			If the 'showmode' option is on "-- VISUAL --" is shown
			at the bottom of the window.

Select mode		This looks most like the MS-Windows selection mode.
			Typing a printable character deletes the selection
			and starts Insert mode.  See |Select-mode|.
			If the 'showmode' option is on "-- SELECT --" is shown
			at the bottom of the window.

Insert mode		In Insert mode the text you type is inserted into the
			buffer.  See |Insert-mode|.
			If the 'showmode' option is on "-- INSERT --" is shown
			at the bottom of the window.

Command-line mode	In Command-line mode (also called Cmdline mode) you
Cmdline mode		can enter one line of text at the bottom of the
			window.  This is for the Ex commands, ":", the pattern
			search commands, "?" and "/", and the filter command,
			"!".  |Cmdline-mode|

Ex mode			Like Command-line mode, but after entering a command
			you remain in Ex mode.  Very limited editing of the
			command line.  |Ex-mode|

There are six ADDITIONAL modes.  These are variants of the BASIC modes:


				*Operator-pending* *Operator-pending-mode*
Operator-pending mode	This is like Normal mode, but after an operator
			command has started, and Vim is waiting for a {motion}
			to specify the text that the operator will work on.

Replace mode		Replace mode is a special case of Insert mode.  You
			can do the same things as in Insert mode, but for
			each character you enter, one character of the existing
			text is deleted.  See |Replace-mode|.
			If the 'showmode' option is on "-- REPLACE --" is
			shown at the bottom of the window.

Virtual Replace mode	Virtual Replace mode is similar to Replace mode, but
			instead of file characters you are replacing screen
			real estate.  See |Virtual-Replace-mode|.
			If the 'showmode' option is on "-- VREPLACE --" is
			shown at the bottom of the window.

Insert Normal mode	Entered when CTRL-O given in Insert mode.  This is
			like Normal mode, but after executing one command Vim
			returns to Insert mode.
			If the 'showmode' option is on "-- (insert) --" is
			shown at the bottom of the window.

Insert Visual mode	Entered when starting a Visual selection from Insert
			mode, e.g., by using CTRL-O and then "v", "V" or
			CTRL-V.  When the Visual selection ends, Vim returns
			to Insert mode.
			If the 'showmode' option is on "-- (insert) VISUAL --"
			is shown at the bottom of the window.

Insert Select mode	Entered when starting Select mode from Insert mode.
			E.g., by dragging the mouse or <S-Right>.
			When the Select mode ends, Vim returns to Insert mode.
			If the 'showmode' option is on "-- (insert) SELECT --"
			is shown at the bottom of the window.


Vim 模式转换

mode-switching

https://vimdoc.sourceforge.net/htmldoc/intro.html#mode-switching

image

Vim 6 种基本模式

Normal mode

https://vimdoc.sourceforge.net/htmldoc/intro.html#Normal

Visual mode

https://vimdoc.sourceforge.net/htmldoc/visual.html#Visual

Select mode

https://vimdoc.sourceforge.net/htmldoc/visual.html#Select

Insert mode

https://vimdoc.sourceforge.net/htmldoc/insert.html#Insert

Command-line mode / Cmdline mode

https://vimdoc.sourceforge.net/htmldoc/cmdline.html#Command-line
https://vimdoc.sourceforge.net/htmldoc/cmdline.html#Cmdline

Ex mode

https://vimdoc.sourceforge.net/htmldoc/intro.html#Ex

Vim 6 种附加模式

There are six ADDITIONAL modes. These are variants of the BASIC modes:
有六种附加模式。 这些是 BASIC 模式的变体:

Operator-pending mode

https://vimdoc.sourceforge.net/htmldoc/intro.html#Operator-pending

Replace mode
https://vimdoc.sourceforge.net/htmldoc/insert.html#Replace

Virtual Replace mode

https://vimdoc.sourceforge.net/htmldoc/visual.html#Visual
https://vimdoc.sourceforge.net/htmldoc/insert.html#Replace

Insert Normal mode

https://vimdoc.sourceforge.net/htmldoc/insert.html#Insert
https://vimdoc.sourceforge.net/htmldoc/intro.html#Normal

Insert Visual mode

https://vimdoc.sourceforge.net/htmldoc/insert.html#Insert
https://vimdoc.sourceforge.net/htmldoc/visual.html#Visual

Insert Select mode

https://vimdoc.sourceforge.net/htmldoc/insert.html#Insert
https://vimdoc.sourceforge.net/htmldoc/visual.html#Select

(

标签:Insert,--,模式,Vim,mode,pi
From: https://www.cnblogs.com/xgqfrms/p/17314361.html

相关文章

  • NETCORE - IdentityServer4 密码验证模式
    NETCORE-IdentityServer4密码验证模式                    引用:(60条消息)IdentityServer4密码模式(ResourceOwnerPasswordCredentials)_ids4hybridpassword_哀莫离裳的博客-CSDN博客 ......
  • 77、混合模式—变暗组
    例子一:将手机图片放到另一张图片里面,让手机融合到另一张图片中1、先把手机用套索工具大概扣取出来,然后放到另一张图片里面。  2、把步骤1复制一份出来,然后用钢笔工具把手机细抠出来,然后添加蒙版(这时手机缺少阴影),按【shift+点击图层】,暂时关闭图层  3、选中步骤1的图层,......
  • Debian下解决vim不能安装问题
    新安装的一个Debian系统,无法安装vim编辑器找到问题是系统自带了一个依赖包vim-common。。。。。。 卸载这个依赖包apt-getremovevim-common 重新安装vimapt-getinstallvim 成功解决 ......
  • vim编辑器的使用
    vim是vi的升级版本,vim默认不安装,vi默认安装命令模式:   yy复制当前行   5yy向下复制5行 copy   dd删除(剪切)当前行   5dd向下删除5行delete、   p粘贴paste   u撤销 undo   ctrl+r 恢复 redo   1G 第1行 go   10G 10行......
  • 观察者模式
    概述《设计模式》一书中对于观察者模式的意图描述如下:>定义对象中的一种一对多的依赖关系,当一个对象的状态发生改变时,所有依赖于它的对象都能得到通知并被更新观察者模式的UML图如下所示:一般在以下情况下使用观察者模式:一个抽象模型有两个方面,其中一个方面依赖于另一个......
  • 【Visual Leak Detector】Release 模式下使用 VLD
    说明使用VLD内存泄漏检测工具辅助开发时整理的学习笔记。本篇介绍如何在Release模式下使用VLD。同系列文章目录可见《内存泄漏检测工具》目录目录说明1.思路概述2.在QT中实践1.思路概述要在RELEASE模式下使用VLD,必须在包含头文件vld.h前预先定义VLD_FORCE_E......
  • 02观察者模式
    让对象保持消息灵通需求一个WeatherData对象负责追踪目前的天气状况(温度,湿度,气压)。希望你们能建立一个应用,有三种布告板,分别显示目前的状况、气象统计及简单的预报。当WeatherObject对象获得最新的测量数据时,三种布告板必须实时更新。而且,这是一个可以扩展的气象站,Weather-O-Ra......
  • 74、混合模式—滤色
    原图   把两张图片选择【滤色】就可以了如果想把点点更加的明显,那么就对点点的图片进行【色阶】处理,并对【色阶】右键添加【剪切蒙版】,让它只对点点图片有影响,然后调节,让黑的更黑,白的更白 ......
  • 行为型:迭代器模式
    定义  迭代器模式提供一种方法按顺序访问一个聚合对象中的各个元素,而又不暴露该对象的内部表示。迭代器模式是目的性极强的模式,它主要是用来解决遍历问题。es6中的迭代器  JS原生的集合类型数据结构,有Array(数组)和Object(对象),在ES6中,又新增了Map和Set。四种数据结构各自有......
  • openEuler 单机部署 Hadoop SingleNode 模式
    openEuler单机部署HadoopSingleNode模式升级操作系统和软件yum-yupdate升级后建议重启安装常用软件yum-yinstallgccgcc-c++autoconfautomakecmakemakersyncopenssh-servervimmanzipunzipnet-toolszlibzlib-developensslopenssl-develpcre-devel......