If you use Obsidian and are missing some features or plugins from vim, there are a plugins or methods to get the same (or at least a similar) experience in Obsidian as well. I hope this collection may prove useful to vim users coming to Obsidian.
Vim Features #
- Configuring keymaps: vimrc support plugin
- Alternate File: Grappling Hook
- Highlighted Yank: obsidian-vim-yank-highlight
- Embedded Terminal: Terminal-Plugin
- Relative Line Numbers: this CSS Snippet from Shimmering Focus
- Grep Search (Live Grep): Another Quick Switcher (the ripgrep search command) or Omnisearch
- Goto Symbol: Quick Switcher++
- Persistent Undos: Obsidian Version History & File recovery (Core Plugin) (somewhat)
- Running External Commands: Obsidian Shell Commands, or Templater (following this guide)
- Advanced Folding: Creases
clipboard=unnamed
: vimrc support plugin<C-o>
/<C-i>
: Works out of the box, but there are are also Navigate Cursor History, or the undocumented builtin hotkeyscmd-U
/ctrl-U
- Neovide's Cursor Animations: Ninja Cursor or Dashing Cursor
scrolloff
: Obsidian Scroll Offsetg;
: Workaround: use the vimrc plugin and addnmap g; u<C-r>
z=
: addexmap contextMenu obcommand editor:context-menu
&nmap z= :contextMenu
- Remembering Cursor Position: Remember Cursor Position
- Skeletons: Templates (Core Plugin) or Templater
j
andk
in Reading View: obsidian-vim-reading-view-navigation
Vim Plugins #
- Fugitive / Neogit: obsidian-git
- vim-illuminate: Dynamic Highlights
- Harpoon: Grappling Hook
- Telescope: Another Quick Switcher
- Linters: Linter (only
--fix
, no visual emphasizing) - todo-comments: Dynamic Highlights
- Zen Mode: Focus Mode or ProZen (or use my theme, Shimmering Focus 😉)
- Tabout: Tabout
- vim-surround: Smarter Markdown Hotkeys (to a degree)
- Hop/Lightspeed/Leap: Jump-to-link
- better-gx: Shukuchi
- Diffview.nvim: Obsidian Version History
- ts-context-commentstring: Obsidian-Contextual-Comments
- lazy-loading of plugins: Obsidian Plugin Manager
- vim-visual-multi: Advanced Cursors
- cmp-emoji: Emoji Shortcodes
- cmp-buffer: Various Complements
- cmp-pandoc: Citations
- Luasnip/vim-vsnip/Ultisnips: Text Snippets
- presence.nvim: Discord Rich Presence
- Aerial/Symbols-Outline: Outline (Core Plugin)
- projects / sessions: Workspace (Core Plugin) or Workspaces Plus
- vim-markdown-toc: Table of Contents or Dynamic Table of Contents