From cda7ff36e318f37d9fe2ecb8119598e931c250b4 Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Fri, 8 Dec 2023 14:25:14 +0100 Subject: [PATCH] markdown: enable autowriteall for markdown files - Enables `autowriteall` for markdown files (pandoc filteype, as I use the vim-pandoc plugin). - Modify the rules to ignore spell files. Co-Authored-by: iGor milhit --- .gitignore | 5 +++-- .gitignore.orig | 20 ++++++++++++++++++++ after/ftplugin/pandoc.lua | 5 +++++ 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 .gitignore.orig create mode 100644 after/ftplugin/pandoc.lua diff --git a/.gitignore b/.gitignore index 7a5340e..6530568 100644 --- a/.gitignore +++ b/.gitignore @@ -5,8 +5,9 @@ autoload # netrw .netrwhist -# spell *.spl -spell/ +# spell +*.spl +spell/* tags test.sh diff --git a/.gitignore.orig b/.gitignore.orig new file mode 100644 index 0000000..35fe8cd --- /dev/null +++ b/.gitignore.orig @@ -0,0 +1,20 @@ +# `vim-plug` plugins +plugged/* +autoload + +# netrw +.netrwhist + +<<<<<<< HEAD +# spell *.spl +======= +# spell +*.spl +>>>>>>> c47fcd7 (gitignore: try to improve the spell rule) +spell/* + +tags +test.sh +.luarc.json +nvim +lazy-lock.json diff --git a/after/ftplugin/pandoc.lua b/after/ftplugin/pandoc.lua new file mode 100644 index 0000000..8a2ff02 --- /dev/null +++ b/after/ftplugin/pandoc.lua @@ -0,0 +1,5 @@ +-- Specific settings for markdown files (pandoc filetype) +-- Enable the autowrite feature for all commands +-- See :h awa + +vim.opt.awa=true