From a608cb12417e1f098ed15188773adadcf80f76af Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Thu, 14 Oct 2021 15:13:29 +1300 Subject: [PATCH] Special markdown configuration for in mail mode --- .vim/after/ftplugin/markdown.vim | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .vim/after/ftplugin/markdown.vim diff --git a/.vim/after/ftplugin/markdown.vim b/.vim/after/ftplugin/markdown.vim new file mode 100644 index 0000000..0382d5d --- /dev/null +++ b/.vim/after/ftplugin/markdown.vim @@ -0,0 +1,19 @@ +if !exists("g:markdown_in_mail") + setlocal wrap + setlocal linebreak + setlocal textwidth=0 + + " treat wrapped lines normally + nnoremap k gk + nnoremap gk + inoremap gk + nnoremap j gj + nnoremap gj + inoremap gj + nnoremap 0 g0 + nnoremap g0 + inoremap g0 + nnoremap $ g$ + nnoremap g$ + inoremap g$ +end -- 2.39.5