From 26d01577909c4667389a25230792af2d287b7382 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Sun, 9 Mar 2025 13:38:40 +0100 Subject: [PATCH] Obsidian: Add .vimrc --- config/obsidian/.vimrc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 config/obsidian/.vimrc 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