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

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
Microsoft Security Blog
Microsoft Security Blog
Recent Announcements
Recent Announcements
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Last Week in AI
Last Week in AI
罗磊的独立博客
腾讯CDC
云风的 BLOG
云风的 BLOG
月光博客
月光博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
宝玉的分享
宝玉的分享
U
Unit 42
I
InfoQ
D
DataBreaches.Net
Blog — PlanetScale
Blog — PlanetScale
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
V2EX
美团技术团队
IT之家
IT之家
Stack Overflow Blog
Stack Overflow Blog
F
Fortinet All Blogs
GbyAI
GbyAI
S
SegmentFault 最新的问题

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