Skip to content

Instantly share code, notes, and snippets.

@umiyosh
Last active February 8, 2024 01:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save umiyosh/093d33c1737444766350678d7d430abf to your computer and use it in GitHub Desktop.
Save umiyosh/093d33c1737444766350678d7d430abf to your computer and use it in GitHub Desktop.
.obsidian.vimrc
" Yank to system clipboard
set clipboard=unnamed
" keymap
" Moving to the end and beginning of a line
noremap <C-e> $
noremap <C-a> ^
" Notebook Link Related
exmap followLinkUnderCursor obcommand editor:follow-link
nmap gd :followLinkUnderCursor
exmap openlink obcommand editor:open-link-in-new-leaf
nma gx :openlink
" easymotion-like behavior
nunmap s
vunmap s
exmap jumpToAnywhere obcommand mrj-jump-to-link:activate-jump-to-anywhere
nmap sw :jumpToAnywhere
exmap jumpToLink obcommand mrj-jump-to-link:activate-jump-to-link
nmap sl :jumpToLink
" Folding toggle
exmap foldtoggle obcommand editor:toggle-fold
nmap za :foldtoggle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment