aboutsummaryrefslogtreecommitdiff
path: root/runtime/indent
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-02-25 17:20:44 +0800
committerGitHub <noreply@github.com>2025-02-25 09:20:44 +0000
commita31ccc3b1f65fd86780c03fec9c6e1bf56e30e35 (patch)
tree4155f1748264a86e8e2709a8ff9bcafbbf435513 /runtime/indent
parent0c650da7999d25d444b9cae83b32578c5a829807 (diff)
downloadrneovim-a31ccc3b1f65fd86780c03fec9c6e1bf56e30e35.tar.gz
rneovim-a31ccc3b1f65fd86780c03fec9c6e1bf56e30e35.tar.bz2
rneovim-a31ccc3b1f65fd86780c03fec9c6e1bf56e30e35.zip
vim-patch:9.1.1140: filetype: m17ndb files are not detected (#32618)
Problem: filetype: m17ndb files are not detected Solution: detect m17ndb files as m17ndb filetype, include filetype, syntax and indent files for the new filetype (David Mandelberg). References: https://www.nongnu.org/m17n/manual-en/m17nDBFormat.html describes the format. https://git.savannah.nongnu.org/cgit/m17n/m17n-db.git/tree/ has examples of the files. closes: vim/vim#16696 https://github.com/vim/vim/commit/ed7d8e55ac232758fc14fd132994b4a09b19350b Also adjust the xkb parent pattern according to dev_vimpatch.txt. Co-authored-by: David Mandelberg <david@mandelberg.org>
Diffstat (limited to 'runtime/indent')
-rw-r--r--runtime/indent/m17ndb.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/indent/m17ndb.vim b/runtime/indent/m17ndb.vim
new file mode 100644
index 0000000000..d25aafe135
--- /dev/null
+++ b/runtime/indent/m17ndb.vim
@@ -0,0 +1,14 @@
+" Vim indent file
+" Language: m17n database
+" Maintainer: David Mandelberg <david@mandelberg.org>
+" Last Change: 2025 Feb 21
+
+if exists("b:did_indent")
+ finish
+endif
+let b:did_indent = 1
+
+setlocal autoindent
+setlocal nosmartindent
+
+let b:undo_indent = "setlocal autoindent< smartindent<"