]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

make markdown formatting available in mail
authormartin f. krafft <madduck@madduck.net>
Thu, 14 Oct 2021 00:36:52 +0000 (13:36 +1300)
committermartin f. krafft <madduck@madduck.net>
Thu, 14 Oct 2021 01:55:45 +0000 (14:55 +1300)
.vim/after/ftplugin/mail.vim
.vim/after/syntax/mail.vim [deleted file]

index bc98dd542deb0615a52fb292c0b835e403c95da0..45b54922824642f40b7ba366823951137c90c0b6 100644 (file)
@@ -197,3 +197,6 @@ fun! DelegateCompletion(next)
 endfun
 
 autocmd BufWritePost <buffer> exe 'write ' . fnameescape((exists('$TMPDIR') ? expand('$TMPDIR') : '/tmp') . '/mail.backup.' . strftime('%Y-%m-%d-%H%M%S'))
 endfun
 
 autocmd BufWritePost <buffer> exe 'write ' . fnameescape((exists('$TMPDIR') ? expand('$TMPDIR') : '/tmp') . '/mail.backup.' . strftime('%Y-%m-%d-%H%M%S'))
+
+let g:markdown_in_mail = 1
+runtime! ftplugin/markdown.vim
diff --git a/.vim/after/syntax/mail.vim b/.vim/after/syntax/mail.vim
deleted file mode 100644 (file)
index 2250d96..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-"syntax region mailBody start="^$" end="^--\s"me=s-1 skip=">.*$" keepend contains=@Markdown
-"syntax include @Markdown syntax/markdown.vim