---
title: "💭 Support regex substitution command · Issue #2232 · helix-edito..."
description: "!https://github.com/helix-editor/helix/issues/2232"
date: 2024-10-08
published: true
tags:
  - helix
  - thought
template: link
---


<div class="embed-card embed-card-external">
  <a href="https://github.com/helix-editor/helix/issues/2232" class="embed-card-link" target="_blank" rel="noopener noreferrer">
    <div class="embed-card-image">
      <img src="https://opengraph.githubassets.com/6070a27597ac258b977bcb6e14aad6075dc9a5bba312a6b515fc74353a5b7731/helix-editor/helix/issues/2232" alt="Support regex substitution command  · Issue #2232 · helix-editor/helix — Support regex substitution, comparable to vim :s or VSCode search &amp; replace. I propose supporting regex replacements for selection s, files/, and the workspace scopes &lt;space&gt; + /. This could be acc..." loading="lazy">
    </div>
    <div class="embed-card-content">
      <div class="embed-card-title">Support regex substitution command  · Issue #2232 · helix-editor/helix</div>
      <div class="embed-card-description">Support regex substitution, comparable to vim :s or VSCode search &amp; replace. I propose supporting regex replacements for selection s, files/, and the workspace scopes &lt;space&gt; + /. This could be acc...</div>
      <div class="embed-card-meta">GitHub &middot; github.com</div>
    </div>
  </a>
</div>


I am a heavy user off substitutions in vim, helix does not substitutions built in, rather it leans on multicursor support.

to replace every instance of hello with world in vim

``` text
:%s/hello/world/g<CR>
```

and in helix you would

``` text
%shello<CR>cworld<ESC>,
```

!!! note

    This post is a <a href="/thoughts/" class="wikilink" data-title="Thoughts" data-description="These are generally my thoughts on a web page or some sort of url, except a rare few don&#39;t have a link. These are dual published off of my..." data-date="2024-04-01">thought</a>. It's a short note that I make
    about someone else's content online <a href="/tags/thoughts/" class="hashtag-tag" data-tag="thoughts" data-count=2 data-reading-time=3 data-reading-time-text="3 minutes">#thoughts</a>
