From b2bb2a5090cb25009895680576ec97948e6269d6 Mon Sep 17 00:00:00 2001 From: Andrew Conlin Date: Fri, 31 May 2024 14:55:10 +0100 Subject: [PATCH] [2024-05-31] gj and gk only in markdown --- vim/.vimrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vim/.vimrc b/vim/.vimrc index 67319de..625fd50 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -14,9 +14,9 @@ set relativenumber set termguicolors colo tokyonight -" have j and k navigate visual lines rather than logical ones -nmap j gj -nmap k gk +" have j and k navigate visual lines rather than logical ones in markdown +autocmd FileType markdown nmap j gj +autocmd FileType markdown nmap k gk " use H and L for beginning/end of line nmap H ^