From: martin f. krafft Date: Thu, 14 Oct 2021 02:13:29 +0000 (+1300) Subject: Special markdown configuration for in mail mode X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/a608cb12417e1f098ed15188773adadcf80f76af?ds=inline;hp=-c Special markdown configuration for in mail mode --- a608cb12417e1f098ed15188773adadcf80f76af 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