How to make fish shell delete words like bash does
<p>I'm giving a second try to the fish shell. One thing that really annoys me is the "new" behaviour of <kbd>Ctrl</kbd>+<kbd>w</kbd> shortcut.</p>

<p>Consider following situation:</p>

<pre><code>$ vim ~/.config/fish/config.fish
</code></pre>

<p>...having the cursor at the end of the line.</p>

<p>When you press <kbd>Ctrl</kbd>+<kbd>w</kbd>, following happens:</p>

<ul>
<li>in bash: <code>~/.config/fish/config.fish</code> is deleted</li>
<li>in fish: only <code>config.fish</code> is deleted</li>
</ul>

<p>How can I make fish delete words that are separated by spaces only?</p>