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

推荐订阅源

美团技术团队
Blog — PlanetScale
Blog — PlanetScale
阮一峰的网络日志
阮一峰的网络日志
M
MIT News - Artificial intelligence
月光博客
月光博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
U
Unit 42
博客园_首页
WordPress大学
WordPress大学
H
Hackread – Cybersecurity News, Data Breaches, AI and More
J
Java Code Geeks
F
Fortinet All Blogs
腾讯CDC
罗磊的独立博客
IT之家
IT之家
I
InfoQ
V
V2EX
博客园 - 叶小钗
A
About on SuperTechFans
Y
Y Combinator Blog
C
Check Point Blog
量子位
Martin Fowler
Martin Fowler
Vercel News
Vercel News

博客园 - .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 .