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 ^