# Ctrl+w closes the note, rather than deleting the previous word (Vim mode)

**URL:** <https://forum.obsidian.md/t/ctrl-w-closes-the-note-rather-than-deleting-the-previous-word-vim-mode/41140>\
**Category:** Help\
**Tags:** vim, editor\
**Created:** [July 29, 2022, 10:06pm UTC](https://forum.obsidian.md/t/ctrl-w-closes-the-note-rather-than-deleting-the-previous-word-vim-mode/41140 "2022-07-29T22:06:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hubro](https://forum.obsidian.md/user_avatar/forum.obsidian.md/hubro/32/32760_2.png) [@hubro](https://forum.obsidian.md/u/hubro)\
**Post date:** [July 29, 2022, 10:06pm UTC](https://forum.obsidian.md/t/ctrl-w-closes-the-note-rather-than-deleting-the-previous-word-vim-mode/41140/1 "2022-07-29T22:06:11Z")

</div>

When editing in Vim mode, pressing Ctrl+w will close the note I’m on, rather than deleting the previous word as I would expect from Vim mode.

I also have several other issues, in normal mode Ctrl+d will delete the current line rather than scroll half a page down, Ctrl+f will enter “Find” mode rather that scrolling a whole page down.

Why are Obsidian keybinds prioritized over Vim? Is there anything I can do to fix that?

I was unable to find anything about “vim” at [https://help.obsidian.md](https://help.obsidian.md).

---

<div class="post-metadata">

**Author:** ![hubro](https://forum.obsidian.md/user_avatar/forum.obsidian.md/hubro/32/32760_2.png) [@hubro](https://forum.obsidian.md/u/hubro)\
**Post date:** [August 3, 2022, 9:45am UTC](https://forum.obsidian.md/t/ctrl-w-closes-the-note-rather-than-deleting-the-previous-word-vim-mode/41140/2 "2022-08-03T09:45:34Z")

</div>

rather than deleting the previous **word** \*

How annoying that I can’t edit the post to fix typos…

---

<div class="post-metadata">

**Author:** ![gaurangtandon](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/g/58f4c7/32.png) [@gaurangtandon](https://forum.obsidian.md/u/gaurangtandon)\
**Post date:** [August 12, 2022, 5:53pm UTC](https://forum.obsidian.md/t/ctrl-w-closes-the-note-rather-than-deleting-the-previous-word-vim-mode/41140/3 "2022-08-12T17:53:57Z")

</div>

+1. The Ctrl+W closing my current note is the very annoying.  
Other editors that offer Vim modes (like VS Code or Jetbrain) allow us to configure if a particular keybinding should be handled by Vim or by the editor itself.  
Is there any solution to this yet?

---

<div class="post-metadata">

**Author:** ![rigmarole](https://forum.obsidian.md/user_avatar/forum.obsidian.md/rigmarole/32/29973_2.png) [@rigmarole](https://forum.obsidian.md/u/rigmarole)\
**Post date:** [August 12, 2022, 6:06pm UTC](https://forum.obsidian.md/t/ctrl-w-closes-the-note-rather-than-deleting-the-previous-word-vim-mode/41140/4 "2022-08-12T18:06:54Z")

</div>

> [@hubro](#):
>
> How annoying that I can’t edit the post to fix typos…

I just edited it. Sorry it’s a setting to fight a wave of retroactive-post-edit spam we experienced.

> [@gaurangtandon](#):
>
> Is there any solution to this yet?

You can unbind or remap the command `Close active pane`. And there is some kind of vimrc plugin I’ve seen users using. You might be able to configure some of this yourself. Bearing in mind that CodeMirror’s Vim is not a full implementation, and there may be limitations.

---

<div class="post-metadata">

**Author:** ![system](https://forum.obsidian.md/uploads/default/original/3X/b/e/bec35fbd23ab28909bb6bfe62cb32eb82dd34019.png) [@system](https://forum.obsidian.md/u/system)\
**Post date:** [November 10, 2022, 6:07pm UTC](https://forum.obsidian.md/t/ctrl-w-closes-the-note-rather-than-deleting-the-previous-word-vim-mode/41140/5 "2022-11-10T18:07:37Z")

</div>

Closed on November 10, 2022, 6:07pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
