![]() It should be possible to open a file in a running instance of Neovim, but due to a bug in macOS I can’t test that right now. : As a sidenote: I would recommend using the “relative paths” settings in Obisdian, if you want to use vimwiki as a second (or future fallback) edit environment, because this allows you to follow the links in vimwiki. In case you use Linux, you have to replace the open command with the equivalent command (e.g. You can then press io (for “in Obsidian”) to open the currently opened note in Vim in Obsidian. You just have to replace VAULTNAME with the actual name of your vault. vimrc / init.vim: " Open file in Obsidian vaultĬommand IO execute "silent !open 'obsidian://open?vault=VAULTNAME&file=". With the URL feature of Obsidian, this is now also possible. Open Preferences and head to Profiles Keys. After following all steps, you can open a note from within Obsidian with the “Open in default app” feature (you can create a shortcut in the settings). iTerm allows us to add custom key bindings in our profile. If you use Neovim, just replace “vim” with “nvim”. Write text ("vim " & quote & POSIX path of input & quote & " exit") Set newWindow to (create window with default profile) In that window you can set TerminalVim as a default In the Finder, right click on a file and select "Open With". Save the application as TerminalVim.app in your Applications folder Paste this script into the Run Applescript section Open Automator and create a new Application This creates a shim Application that will enable you to open files from the Finder in vim using iTerm ![]() If you use Vim in iTerm, you can just create an App with Automator: - TerminalVim.app vimwiki) side by side as two different viewports on the same notebase, this might be useful (the following describes solutions for macOS maybe someone else could provide infos on how to do this on Linux or Windows): Open note in Vim from within Obsidian Hi, in case some of you also use or plan to use Obsidian and Vim (resp.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |