Created
January 1, 2024 07:34
-
-
Save YuanLiou/c788753fedf802b82569e6c20d0e5df7 to your computer and use it in GitHub Desktop.
Ray's obsidien vimrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Have j and k navigate visual lines rather than logical ones | |
nmap j gj | |
nmap k gk | |
" I like using H and L for beginning/end of line | |
nmap H ^ | |
nmap L $ | |
" Quickly remove search highlights | |
nmap <F9> :nohl | |
" Yank to system clipboard | |
set clipboard=unnamed | |
set tabstop=4 | |
" Go back and forward with Ctrl+O and Ctrl+I | |
" (make sure to remove default Obsidian shortcuts for these to work) | |
exmap back obcommand app:go-back | |
nmap <C-o> :back | |
exmap forward obcommand app:go-forward | |
nmap <C-i> :forward |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment