# VIM Mode - Quality of Life Improvements

**URL:** <https://forum.obsidian.md/t/vim-mode-quality-of-life-improvements/429>\
**Category:** Workflows & Templates\
**Tags:** vim\
**Created:** [May 25, 2020, 10:15am UTC](https://forum.obsidian.md/t/vim-mode-quality-of-life-improvements/429 "2020-05-25T10:15:16Z")\
**Posts on this page:** 18\
**Page:** 4

<div class="post-metadata">

**Author:** ![santi](https://forum.obsidian.md/user_avatar/forum.obsidian.md/santi/32/93240_2.png) [@santi](https://forum.obsidian.md/u/santi)\
**Post date:** [February 4, 2021, 5:18pm UTC](https://forum.obsidian.md/t/vim-mode-quality-of-life-improvements/429/62 "2021-02-04T17:18:23Z")

</div>

I found a fix for this on Mac, In Linux it worked without any issue, but with Mac there needs to be something done first

[Here’s the solution](https://www.howtogeek.com/267463/how-to-enable-key-repeating-in-macos/) if you are in mac

---

<div class="post-metadata">

**Author:** ![PhucLe](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/p/3da27b/32.png) [@PhucLe](https://forum.obsidian.md/u/PhucLe)\
**Post date:** [February 5, 2021, 12:01am UTC](https://forum.obsidian.md/t/vim-mode-quality-of-life-improvements/429/63 "2021-02-05T00:01:41Z")

</div>

Thanks. That fixes it. Though the vim cursor is not responsive when hold down and only take effect when the key is released.  
What even more weird is that I thought I have fixed this a while ago for my vim and terminal and stuff.

---

<div class="post-metadata">

**Author:** ![santi](https://forum.obsidian.md/user_avatar/forum.obsidian.md/santi/32/93240_2.png) [@santi](https://forum.obsidian.md/u/santi)\
**Post date:** [February 5, 2021, 2:38pm UTC](https://forum.obsidian.md/t/vim-mode-quality-of-life-improvements/429/64 "2021-02-05T14:38:24Z")

</div>

that’s really strange I never had that kind of issue, is the cursor delay only happening in Obsidian is it an issue in your terminal / vim as well?

---

<div class="post-metadata">

**Author:** ![PhucLe](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/p/3da27b/32.png) [@PhucLe](https://forum.obsidian.md/u/PhucLe)\
**Post date:** [February 6, 2021, 3:13pm UTC](https://forum.obsidian.md/t/vim-mode-quality-of-life-improvements/429/65 "2021-02-06T15:13:45Z")

</div>

Oh sorry, now it worked perfectly. Not sure why but I have restart Obsidian a few time since then. Thank again.  
Edit: The vim cursor run smoothly on small file, but stutter and delay on large file  
As in this GIF, at first the cursor move line by line smoothly on the note on the right, but only jump when I release the key on note on the left.  
 ![Screen Recording 2021-02-06 at 16.20.22](https://forum.obsidian.md/uploads/default/original/2X/3/3edea297f4441e6e53d8f7146cdc4d54308b8336.gif)

---

<div class="post-metadata">

**Author:** ![santi](https://forum.obsidian.md/user_avatar/forum.obsidian.md/santi/32/93240_2.png) [@santi](https://forum.obsidian.md/u/santi)\
**Post date:** [February 6, 2021, 8:34pm UTC](https://forum.obsidian.md/t/vim-mode-quality-of-life-improvements/429/66 "2021-02-06T20:34:56Z")

</div>

hey my pleasure, happy to help! It’s a bit hard to see in the gif, but I think I know what you mean.

That’s strange though I’ve never had that problem, hope someone else can suggest solutions since I’m really not sure what might be causing that lag.

---

<div class="post-metadata">

**Author:** ![Evgeniy](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/e/ecccb3/32.png) [@Evgeniy](https://forum.obsidian.md/u/Evgeniy)\
**Post date:** [February 18, 2021, 12:07pm UTC](https://forum.obsidian.md/t/vim-mode-quality-of-life-improvements/429/67 "2021-02-18T12:07:22Z")

</div>

Please implement possibility to scroll page in rendered Preview mode with `j` and `k` keys.  
I scroll pages in browser, IDE, pdf readers this way

---

<div class="post-metadata">

**Author:** ![santi](https://forum.obsidian.md/user_avatar/forum.obsidian.md/santi/32/93240_2.png) [@santi](https://forum.obsidian.md/u/santi)\
**Post date:** [February 22, 2021, 11:41pm UTC](https://forum.obsidian.md/t/vim-mode-quality-of-life-improvements/429/68 "2021-02-22T23:41:49Z")

</div>

that’d be amazing I also use j an k everywhere to scroll, this would be great!

---

<div class="post-metadata">

**Author:** ![JasonXU](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/j/73ab20/32.png) [@JasonXU](https://forum.obsidian.md/u/JasonXU)\
**Post date:** [March 9, 2021, 1:08pm UTC](https://forum.obsidian.md/t/vim-mode-quality-of-life-improvements/429/69 "2021-03-09T13:08:42Z")

</div>

> [@aldanor](#):
>
> 1. Have an option to remap j=gj, k=gk, $=g$, ^=g^, 0=g^, etc

I managed to achieve these using the “Obsidian Vimrc Support” plugin:

```auto
nmap j gj
nmap k gk
nmap $ 69|
nmap ^ 0|

```

**CORRECT** : ignore me, the last 2 are wrong!

---

<div class="post-metadata">

**Author:** ![bruab](https://forum.obsidian.md/user_avatar/forum.obsidian.md/bruab/32/12859_2.png) [@bruab](https://forum.obsidian.md/u/bruab)\
**Post date:** [April 8, 2021, 1:42pm UTC](https://forum.obsidian.md/t/vim-mode-quality-of-life-improvements/429/70 "2021-04-08T13:42:10Z")

</div>

Another way to reproduce the “unexpected unfold” behavior is to create a heading that’s long enough to wrap to a second line

```auto
# This is a very long heading that will most likely wrap to two lines in the editor

This is content inside the heading

# This is a second heading

```

If you fold the first heading, then use `J` to move from that heading to the second heading, the first one unfolds.

---

<div class="post-metadata">

**Author:** ![rouma](https://forum.obsidian.md/user_avatar/forum.obsidian.md/rouma/32/19477_2.png) [@rouma](https://forum.obsidian.md/u/rouma)\
**Post date:** [September 9, 2021, 1:56am UTC](https://forum.obsidian.md/t/vim-mode-quality-of-life-improvements/429/71 "2021-09-09T01:56:22Z")

</div>

has anyone figured out how to implement the `ctrl + d` half page down and `ctrl + u` half page up? i keep deleting paragraphs because of muscle memory

---

<div class="post-metadata">

**Author:** ![Artefice](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/a/7ea924/32.png) [@Artefice](https://forum.obsidian.md/u/Artefice)\
**Post date:** [September 9, 2021, 1:02pm UTC](https://forum.obsidian.md/t/vim-mode-quality-of-life-improvements/429/72 "2021-09-09T13:02:53Z")

</div>

I just unmapped the delete paragraph shortcut , works like a charm 😉

---

<div class="post-metadata">

**Author:** ![nnhoang](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/n/e95f7d/32.png) [@nnhoang](https://forum.obsidian.md/u/nnhoang)\
**Post date:** [September 12, 2021, 12:14pm UTC](https://forum.obsidian.md/t/vim-mode-quality-of-life-improvements/429/73 "2021-09-12T12:14:47Z")

</div>

> [@PhucLe](#):
>
> Edit: The vim cursor run smoothly on small file, but stutter and delay on large file

Not sure if you already found it. For me, it comes from the ‘Relative line number’ plugin. No stuttering after disabling it. v0.12.15.

---

<div class="post-metadata">

**Author:** ![Kosmos](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/k/43a26b/32.png) [@Kosmos](https://forum.obsidian.md/u/Kosmos)\
**Post date:** [October 4, 2021, 1:35pm UTC](https://forum.obsidian.md/t/vim-mode-quality-of-life-improvements/429/74 "2021-10-04T13:35:49Z")

</div>

I was wonder why the following commands does not work.

```auto
imap <C-f> <Right>
imap <C-f> <Left>
imap <C-e> <Home>
imap <C-[> <Esc>

```

---

<div class="post-metadata">

**Author:** ![WolfSage](https://forum.obsidian.md/user_avatar/forum.obsidian.md/wolfsage/32/31344_2.png) [@WolfSage](https://forum.obsidian.md/u/WolfSage)\
**Post date:** [June 21, 2022, 4:28pm UTC](https://forum.obsidian.md/t/vim-mode-quality-of-life-improvements/429/75 "2022-06-21T16:28:16Z")

</div>

love this idea; lit up a happy part of my brain to realize I might be able to follow links w `gd` in obsidian. I have cmd-enter set to follow links, and that works well enough for me. If you wanna use that, I’d bet `exmap` commands in the vimrc plugin would work. Have you tried that?

---

<div class="post-metadata">

**Author:** ![WolfSage](https://forum.obsidian.md/user_avatar/forum.obsidian.md/wolfsage/32/31344_2.png) [@WolfSage](https://forum.obsidian.md/u/WolfSage)\
**Post date:** [June 21, 2022, 4:30pm UTC](https://forum.obsidian.md/t/vim-mode-quality-of-life-improvements/429/76 "2022-06-21T16:30:46Z")

</div>

I made this mistake. it’s the capital E in `Esc`. I never understood how vim, neovim, or any other program knew how to interpret key IDs like these ¯\_(ツ)\_/¯.

I’m on obsidian v0.15.2, in case that’s relevant.

---

<div class="post-metadata">

**Author:** ![WolfSage](https://forum.obsidian.md/user_avatar/forum.obsidian.md/wolfsage/32/31344_2.png) [@WolfSage](https://forum.obsidian.md/u/WolfSage)\
**Post date:** [June 21, 2022, 6:28pm UTC](https://forum.obsidian.md/t/vim-mode-quality-of-life-improvements/429/77 "2022-06-21T18:28:21Z")

</div>

> [@liam](#):
>
> But my biggest VIM-grievance right now is I can’t set it to **use the System Clipboard**.

In case you’ve not seen this yet, the [vimrc extension](https://github.com/esm7/obsidian-vimrc-support) has an option for this, add `clipboard=unnamed` to your vimrc. Also thanks for your plugins! really really changed my life! I’ll grab u a coffee once I manifest a new income stream.

* * *

@Caketray regarding vim-surround, vimrc has a `surround` command that takes care of the ‘create’ part of this problem. Have you considered a mapping that would cut and paste via “[a]round” or “[i]nside” that could account for the edit/delete portions of the vim-surround toolset?

---

<div class="post-metadata">

**Author:** ![zhouenting](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/z/91b2a8/32.png) [@zhouenting](https://forum.obsidian.md/u/zhouenting)\
**Post date:** [November 10, 2022, 2:17pm UTC](https://forum.obsidian.md/t/vim-mode-quality-of-life-improvements/429/78 "2022-11-10T14:17:41Z")

</div>

latest [obsidian-vimrc-support](https://github.com/esm7/obsidian-vimrc-support) version 0.8.0 has improved the surround functionality, bringing it pretty in line with what vim-surround offers.

There is also `nunmap` and `vunmap` command, which is able to address the need to remap `j` to `gj`, etc.

---

<div class="post-metadata">

**Author:** ![Cleancookie](https://forum.obsidian.md/user_avatar/forum.obsidian.md/cleancookie/32/45620_2.png) [@Cleancookie](https://forum.obsidian.md/u/Cleancookie)\
**Post date:** [March 31, 2023, 9:51am UTC](https://forum.obsidian.md/t/vim-mode-quality-of-life-improvements/429/79 "2023-03-31T09:51:24Z")

</div>

Got here from Googling the same thing

For those who do the same, I managed to get this working by doing:

```auto
exmap followlink :obcommand editor:follow-link
nmap gd :followlink

```

[Previous page](https://forum.obsidian.md/t/vim-mode-quality-of-life-improvements/429.md?page=3)
