1

Obsidian: Add .vimrc

This commit is contained in:
2025-03-09 13:38:40 +01:00
parent 45af918213
commit 26d0157790

20
config/obsidian/.vimrc Normal file
View File

@ -0,0 +1,20 @@
" 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<CR>
" Yank to system clipboard
set clipboard=unnamed
" 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<CR>
" exmap forward obcommand app:go-forward
" nmap <C-i> :forward<CR>