Obsidian: Add .vimrc
This commit is contained in:
20
config/obsidian/.vimrc
Normal file
20
config/obsidian/.vimrc
Normal 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>
|
Reference in New Issue
Block a user