<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>book/src/from-vim.md - fork/helix @ 23.05</title>
<meta name="description" content="book/src/from-vim.md in fork/helix at 23.05.">
<meta property="og:title" content="book/src/from-vim.md - fork/helix @ 23.05">
<meta property="og:description" content="book/src/from-vim.md in fork/helix at 23.05.">
<meta property="og:type" content="website">
<meta property="og:site_name" content="git.julia.blue">
<link rel="stylesheet" href="/css/style.css?v=62">
<script type="module" src="/js/main.js?v=62"></script>
</head>
<body>
<main data-ref="23.05" data-tip="7f5940be80eaa3aec7903903072b7108f41dd97b">
<noscript>
  <div class="callout">
    <p>
      hey! this is a static git repo viewer. commit diffs, file history,
      older commits and other revisions won't load without javascript.
    </p>
    <p>
      you are still able to view source files on branch/tag tips,
      but the experience is degraded.
    </p>
  </div>
</noscript>
<header class="repo"><div>
<h1>fork/helix</h1>
</div>
<pre class="clone">git clone https://git.julia.blue/fork/helix</pre>
</header>
<p class="snapshot-commit"><span class="commit-author">Alireza Alavi</span><span class="commit-message" data-commit="78b516430adcfb68e5a0989c5af6b9a096175674">Fix minor grammar issue in 'from-vim' docs (#6667)</span><span class="snapshot-sha sha" data-commit="78b516430adcfb68e5a0989c5af6b9a096175674">78b51643</span><time datetime="2023-04-09T22:53:57+03:30" title="2023-04-09 22:53:57 +0330">2023-04-09</time></p>
<header class="topbar"><details class="switcher"><summary>23.05</summary><div class="menu"><strong>branches</strong><a href="/fork/helix/ref/master/">master</a><strong>tags</strong><a class="current" href="/fork/helix/ref/23.05/">23.05</a><a href="/fork/helix/ref/23.10/">23.10</a><a href="/fork/helix/ref/24.03/">24.03</a><a href="/fork/helix/ref/24.07/">24.07</a><a href="/fork/helix/ref/25.01/">25.01</a><a href="/fork/helix/ref/25.01.1/">25.01.1</a><a href="/fork/helix/ref/25.07/">25.07</a><a href="/fork/helix/ref/25.07.1/">25.07.1</a><a class="all" href="/fork/helix/refs">all refs →</a></div></details><nav class="crumbs"><a href="/fork/helix/">helix</a> / <a href="/fork/helix/ref/23.05/tree/book/">book</a> / <a href="/fork/helix/ref/23.05/tree/book/src/">src</a> / <span class="cur">from-vim.md</span></nav>
<span class="view-stats"><span>682 B</span><span>12 lines</span></span><span class="actions"><a class="raw" href="/fork/helix/raw/ffd5addc65fddd65380dde8e621d1531da52f1c8/book/src/from-vim.md">raw</a></span></header>
<div class="markdown-view"><input type="radio" name="markdown-view" id="markdown-rendered" checked><label for="markdown-rendered">rendered</label><input type="radio" name="markdown-view" id="markdown-code"><label for="markdown-code">code</label><section class="readme rendered"><h1>Migrating from Vim</h1>
<p>Helix's editing model is strongly inspired from Vim and Kakoune, and a notable
difference from Vim (and the most striking similarity to Kakoune) is that Helix
follows the <code>selection → action</code> model. This means that whatever you are
going to act on (a word, a paragraph, a line, etc.) is selected first and the
action itself (delete, change, yank, etc.) comes second. A cursor is simply a
single width selection.</p>
<p>See also Kakoune's <a href="https://github.com/mawww/kakoune/wiki/Migrating-from-Vim">Migrating from Vim</a> and Helix's <a href="https://github.com/helix-editor/helix/wiki/Migrating-from-Vim">Migrating from Vim</a>.</p>
<blockquote>
<p>TODO: Mention textobjects, surround, registers</p>
</blockquote>
</section><div class="code-panel"><pre class="code src language-markdown"><span class="code-line"><a class="ln" id="L1" href="#L1">1</a><span class="code-text"><a-p>#</a-p> <a-tt>Migrating from Vim</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L2" href="#L2">2</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L3" href="#L3">3</a><span class="code-text">Helix&#39;s editing model is strongly inspired from Vim and Kakoune, and a notable</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L4" href="#L4">4</a><span class="code-text">difference from Vim (and the most striking similarity to Kakoune) is that Helix</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L5" href="#L5">5</a><span class="code-text">follows the `selection → action` model. This means that whatever you are</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L6" href="#L6">6</a><span class="code-text">going to act on (a word, a paragraph, a line, etc.) is selected first and the</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L7" href="#L7">7</a><span class="code-text">action itself (delete, change, yank, etc.) comes second. A cursor is simply a</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L8" href="#L8">8</a><span class="code-text">single width selection.</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L9" href="#L9">9</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L10" href="#L10">10</a><span class="code-text">See also Kakoune&#39;s [Migrating from Vim](https://github.com/mawww/kakoune/wiki/Migrating-from-Vim) and Helix&#39;s [Migrating from Vim](https://github.com/helix-editor/helix/wiki/Migrating-from-Vim).</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L11" href="#L11">11</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L12" href="#L12">12</a><span class="code-text"><a-p>&gt; </a-p>TODO: Mention textobjects, surround, registers</span></span></pre></div></div>
</main>
</body>
</html>
