It would be great if somebody picks this up and implements a bridge between libvim or neovim and CodeMirror 6.
Any clue whatās the timeline? When is CM6 expected to take over CM5 in desktop Obsidian?
There wonāt be a take over, theyāll coexist at least for a while.
This sounds to me like a long-term project that has many uses, but Obsidian is not a major one of them anytime soon (Iām assuming here that Vim mode on mobile is a niche).
But since there will be a switch eventually (CM6 is the future of CM, thatās for sure), it certainly needs long-term attention. I might be able to do that but only in a few months when other big free-time projects get cleared up.
I made this meme in hopes to capture the mixed feelings
I really hope thereās a way in which the new āLive Previewā WYSIWYG editor will somehow support vim-mode.
Iām not a programmer unfortunately so I donāt know the extent of what it would take for that to happen.
What Iād love to know is what do others think is the best way to make this happen.
Is a donation our only hope? and if so is it a good idea to encourage as many people interested to donate?
Mixed feelings
I personally have been looking forward to the new Obsidian Live Preview editor for so long. Iāve been waiting to release educational content for Obsidian with high hopes on this editor.
The importance of Vim in Obsidian
I also believe that learning vim can benefits all types of writers, to write efficiently and in a much more fun way.
Teaching Vim in Obsidian (project now on standby)
Iāve been working for months on an online course to teach people how to use Vim in Obsidian.
Iāve been waiting for the new editor to release this course (of course I now have to wait for a solution )
The new āLive Preview Editorā
The new live editor is the future of Obsidian.
Eventhough I highly recommend to learn Vim in Obisidian, using the old editor is a bad idea, when the much superior live preview editor is exists. So I personally donāt think sticking to the old editor is the best way forward.
Finding solutions
I totally understand this goes beyond the control of the Obsidian devs. If anything Iām super grateful for the new amazing ālive previewā editor. but as you can image I have mixed feelings #happy-sad
I really hope that those of us who value Vim in Obsidian can find a way to make it happen in the new editor somehow.
If you guys think donating to the bountysource is the best way forward, then letās do it. If not Iād love to know what you guys think is the best way to bring Vim to the new Live Preview editor
Thanks
This CM6 vim mode experiment repo from the BountySource issue seems like the most up to date and promising effort thus far. Is there an up to date guide for integrating code for CM into Obsidian? I only just got started with Obsidian this last week, and donāt have the context of how CM fits in.
Following up on this, the recent changes in the repo (12 hours ago as of this post) have made great progress. Iām able to build and run a barebones CM6 editor with this new experimental Vim mode now
In my very light testing I havenāt had any issues with basic Vim usage. What is typically the next step for including CM changes into Obsidian when a new beta is being worked on, like v0.13 is now?
PS: I donāt know who to ping about this, so Iāll ping you given how Vim is blocking us from using Live Preview @santi
thanks for keeping up with this post, Like you said I havenāt been able to move to Live Preview, due to the lack of vim.
Iām not sure if I understood what you said correctly, did you manage to test vim in Obsidianās live preview with the updates done in that CM6 repo?
Really hope thereās a solution for us desperate vimers
licat is creating pulls against that cm6 vim mode experiment repo Add support for font family and font size on fat-cursor. by lishid Ā· Pull Request #1 Ā· nightwing/cm6-vim-mode-experiment Ā· GitHub
Oh weāve already gotten vim mode working in the upcoming release - licat
Yes vim mode is coming to live preview - licat
With this VIM Mode support, Is there a way to enable copy/paste from system clipboard to the note and vice versa?
Hi @shankarnakai I donāt know if that was fixed in Windows/Linux yet. (It always worked in MacOS.) If not, did you see this workaround? How to copy with vim mode? - #27 by santi
@shankarnakai @rigmarole
In legacy editor, install and enable the vimrc plugin and put this in your .obsidian.vimrc
file:
set clipboard=unnamed
ā¦and restart obsidian.
The vimrc plugin doesnāt work yet with the new editor.
At least on Mac, Cmd-c/x/v work in insert mode with the new CM6 editor too.
Whoops noted, sorry!
Didnāt see this - oops! Yes I was testing the experimental Vim repo, keeping up with their progress and testing in a stand alone CM6 editor. It got far enough to be included, which I was thrilled to see, and had nothing to do with my testing
This is awesome! Can I ask, is there a new method for defining ex commands with the new editor? Iām working on a plugin that listens for the codemirror
event, then calls CodeMirror.Vim.defineEx()
, but that doesnāt work with the new editor. The codemirror
event doesnāt fire, and even if I try calling defineEx()
in a long setTimeout
, it doesnāt work. Strangely, it doesnāt throw an error. CodeMirror.Vim.defineEx
does exist, but it doesnāt have any effect.