1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 23:00:04 +08:00

docs(iedit): add article for iedit

This commit is contained in:
Wang Shidong 2022-04-09 08:13:05 +08:00 committed by GitHub
parent e1aba6d16e
commit 6200d7085d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 77 additions and 0 deletions

View File

@ -0,0 +1,39 @@
---
title: "Vim 多光标支持"
categories: [blog_cn, feature_cn]
description: ""
image: https://user-images.githubusercontent.com/13142418/162548036-2598a705-4834-4332-9b55-fc49eae80f99.gif
commentsID: "Vim 多光标支持"
comments: true
permalink: /cn/:title/
lang: zh
---
# [Blogs](../blog/) >> Vim 多光标支持
{{ page.date | date_to_string }}
<!-- vim-markdown-toc GFM -->
- [起因](#起因)
- [模式介绍](#模式介绍)
- [关于文档](#关于文档)
<!-- vim-markdown-toc -->
## 起因
很多时候为了能够快速编辑多个相同的内容,因此 SpaceVim 实现了一个叫做 `iedit` 的功能,
有些类似于 emacs 的 iedit-mode 插件。
## 模式介绍
启动 iedit 后目前支持2种模式叫做 iedit-normal 和 iedit-insert 模式,
这两种模式有点类似于常规的 Normal 和 Insert 模式。在 iedit-normal 模式下,
可以已启动光标删除内容,粘贴内容。而在 iedit-insert 模式下,主要是输入字符。
配合 `core#statusline` 模块,在状态栏上面可以看见 `IEDIT-NORMAL` 或者 `IEDIT-INSERT` 标识。
## 关于文档
可以在线阅读[Iedit-多光标编辑](../#iedit-多光标编辑),或者在 SpaceVim 内阅读 `:h SpaceVim-plugins-iedit`

View File

@ -0,0 +1,38 @@
---
title: "Multiple cursor support for Vim"
categories: [blog, feature]
description: ""
image: https://user-images.githubusercontent.com/13142418/162548036-2598a705-4834-4332-9b55-fc49eae80f99.gif
commentsID: "Multiple cursor support for Vim"
comments: true
permalink: /cn/:title/
---
# [Blogs](../blog/) >> Multiple cursor support for Vim
{{ page.date | date_to_string }}
<!-- vim-markdown-toc GFM -->
- [Design causes](#design-causes)
- [Mode introduction](#mode-introduction)
- [About documentation](#about-documentation)
<!-- vim-markdown-toc -->
## Design causes
Many times in order to quickly edit multiple pieces of the same content, SpaceVim implements a feature called `iedit`,
which is same as the `iedit-mode` of emacs.
## Mode introduction
With `iedit` enabled, there are two modes currently, called iedit-normal and iedit-insert.
These two modes are somewhat similar to the regular Normal and Insert modes. In iedit-normal mode,
you can move the cursor, delete content and paste content. In iedit-insert mode, you can input characters.
With the `core#statusline` layer, the `IEDIT-NORMAL` or `IEDIT-INSERT` modu text can be seen on the statusline.
## About documentation
You can read online doc: [Replace text with iedit](../documentation/#replace-text-with-iedit), or read `:h spacevim-plugins-iedit` in SpaceVim