惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
博客园 - 司徒正美
WordPress大学
WordPress大学
爱范儿
爱范儿
小众软件
小众软件
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
罗磊的独立博客
博客园_首页
V
V2EX
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Tailwind CSS Blog
大猫的无限游戏
大猫的无限游戏
The Cloudflare Blog
MyScale Blog
MyScale Blog
IT之家
IT之家
H
Help Net Security
Blog — PlanetScale
Blog — PlanetScale
Microsoft Security Blog
Microsoft Security Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
人人都是产品经理
人人都是产品经理

博客园 - .net's

SSH 服务器与客户端配置最佳实践 在Kubernetes中探索Pod多容器模式 特性:定义共享行为 译:Zed 解码:为什么不直接嵌入 Neovim? 9大关于生产力的错误认知 如何用费曼技巧快速学习任何东西 如何高效使用 Todoist — 完整指南 译:Building a Text Editor in the Times of AI 在AI时代构建文本编辑器 Combine and Conquer in Vim aa babel new Parse import.meta.url Installing Yarn on WSL wsl 2安装 vim备忘录 -- 可视模式 Windows Terminal PowerShell智能提示 安装配置Oh My Posh windows 10安装和配置NeoVim 0.8.2 Search and replace
vim 备忘录 -- 插入模式
.net's · 2023-02-02 · via 博客园 - .net's

插入模式

Make Corrections Instantly from Insert Mode

Meet Insert Normal Mode


e.g. <C-o>zz

Get Back to Normal Mode

Paste from a Register Without Leaving Insert Mode

The <C-r><C-p>{register} command is smarter. It inserts text literally and fixes
any unintended indentation (see :h i_CTRL-R_CTRL-P ).

Do Back-of-the-Envelope Calculations in Place

Insert Unusual Characters by Character Code


例子:
<C-v>{code}: <C-v>065
<C-v>u{1234}: <C-v>u00bf
See :h i_CTRL-V_digit for more details.

Insert Unusual Characters by Digraph

Digraphs are easy to use. From Insert mode, we just type <C-k>{char1}{char2}.
So if we wanted to insert the “¿” character, which is represented by the digraph
?I, we would simply type <C-k>?I.

The character pairs that make up a digraph are chosen to be descriptive,
making them easier to remember or even guess. For example, the doubleangle quotation marks « and » are represented by the digraphs << and >>;
the vulgar (or common) fractions ½, ¼, and ¾ are represented by the digraphs
12, 14, and 34, respectively. The default set of digraphs that ship with Vim
follows certain conventions, which are summarized under :h digraphs-default .
We can view a list of the available digraphs by running :digraphs, but the output
of this command is difficult to digest. A more usable list can be found by
looking up :h digraph-table .