<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>导航键位 on ICE345のBLOG</title><link>https://myblog.050626.xyz/tags/%E5%AF%BC%E8%88%AA%E9%94%AE%E4%BD%8D/</link><description>Recent content in 导航键位 on ICE345のBLOG</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><copyright>© 2026 ICE345</copyright><lastBuildDate>Sat, 14 Sep 2024 20:47:20 +0000</lastBuildDate><atom:link href="https://myblog.050626.xyz/tags/%E5%AF%BC%E8%88%AA%E9%94%AE%E4%BD%8D/index.xml" rel="self" type="application/rss+xml"/><item><title>vim_command</title><link>https://myblog.050626.xyz/notes/vim/vim-command/</link><pubDate>Sat, 14 Sep 2024 20:47:20 +0000</pubDate><guid>https://myblog.050626.xyz/notes/vim/vim-command/</guid><description>&lt;p&gt;在 Vim 中，常用的命令和导航键位对初学者和高级用户都非常有帮助。以下是一些常用命令、移动方向的键位以及如何快速移动到某个行内的位置。&lt;/p&gt;

&lt;h3 class="relative group"&gt;常用命令模式命令
 &lt;div id="常用命令模式命令" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e5%b8%b8%e7%94%a8%e5%91%bd%e4%bb%a4%e6%a8%a1%e5%bc%8f%e5%91%bd%e4%bb%a4" aria-label="锚点"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;进入命令模式&lt;/strong&gt;：按 &lt;code&gt;Esc&lt;/code&gt; 键进入命令模式。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;退出 Vim&lt;/strong&gt;：
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;:q&lt;/code&gt; 退出&lt;/li&gt;
&lt;li&gt;&lt;code&gt;:q!&lt;/code&gt; 强制退出（不保存）&lt;/li&gt;
&lt;li&gt;&lt;code&gt;:wq&lt;/code&gt; 保存并退出&lt;/li&gt;
&lt;li&gt;&lt;code&gt;:x&lt;/code&gt; 保存并退出（等同于 &lt;code&gt;:wq&lt;/code&gt;）&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;保存文件&lt;/strong&gt;：
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;:w&lt;/code&gt; 保存文件&lt;/li&gt;
&lt;li&gt;&lt;code&gt;:w new_filename&lt;/code&gt; 另存为新文件&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h3 class="relative group"&gt;移动方向的键位
 &lt;div id="移动方向的键位" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e7%a7%bb%e5%8a%a8%e6%96%b9%e5%90%91%e7%9a%84%e9%94%ae%e4%bd%8d" aria-label="锚点"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;基本方向移动&lt;/strong&gt;：&lt;/p&gt;</description></item></channel></rss>