Yank to system clipboard in Obsidian (with Vim keybindings)

If you use Obsidian, and you are used to using Vim, then you’ve probably enabled Vim key bindings in Obsidian’s settings. And everything was fine until you wanted to yank (copy with y) something from your notes, and paste in a different place (for example, in a browser). Your system clipboard didn’t paste yanked text, right? Well, you should expect that it won’t work - Yanking to system clipboard is not configured by default in Vim, and apparently, it’s not configured in Obsidian either. ...

April 3, 2024

Spell checking in Vim

Is it possible to have spell checking in vim? No, it’s not. EOP (End Of Post). I’m joking of course. It is! How to do it? The only thing you need to type is: :set spell spelllang=en or if you want spell checking for Polish language: :set spell spelllang=pl Note: when you set spelllang for language different than English, file with stuff for that language will be downloaded (if one is not already in ~/.vim/spell directory), so vim will prompt you some question like where to save that file (answering with default/only one option worked for me). ...

October 28, 2020