diff --git a/config/obsidian/.vimrc b/config/obsidian/.vimrc new file mode 100644 index 00000000..6ae3b4bb --- /dev/null +++ b/config/obsidian/.vimrc @@ -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 :nohl + +" 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 :back +" exmap forward obcommand app:go-forward +" nmap :forward