From e46f07b1d2942c7b5c08fca9a4cac735ee2c0c71 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Thu, 6 Mar 2025 22:50:41 +0100 Subject: vim-patch:9.1.1177: filetype: tera files not detected Problem: filetype: tera files not detected Solution: detect '*.tera' files as tera filetype, include a simple filetype plugin (MuntasirSZN) closes: vim/vim#16806 https://github.com/vim/vim/commit/5daaf2326800ff0683a5be9a7f475667a4fc09db Co-authored-by: MuntasirSZN --- runtime/ftplugin/tera.vim | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 runtime/ftplugin/tera.vim (limited to 'runtime/ftplugin') diff --git a/runtime/ftplugin/tera.vim b/runtime/ftplugin/tera.vim new file mode 100644 index 0000000000..47636f29fa --- /dev/null +++ b/runtime/ftplugin/tera.vim @@ -0,0 +1,13 @@ +" Vim filetype plugin file +" Language: Tera +" Maintainer: Muntasir Mahmud +" Last Change: 2025 Mar 06 + +if exists("b:did_ftplugin") + finish +endif +let b:did_ftplugin = 1 + +setlocal commentstring={#\ %s\ #} + +let b:undo_ftplugin = "setlocal commentstring<" -- cgit