diff options
| author | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-03 22:21:25 +0300 |
|---|---|---|
| committer | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-04 00:23:03 +0300 |
| commit | 2eae5db069dc171f74cd863487655f6a88e5384d (patch) | |
| tree | 2d9d05e09978a2a44acbfbb8d651f240df3ca052 /uvim/runtime/indent/python.mnv | |
| parent | 473d922faed49241a5d29d9e37dc4819cd512006 (diff) | |
| download | Project-Tick-2eae5db069dc171f74cd863487655f6a88e5384d.tar.gz Project-Tick-2eae5db069dc171f74cd863487655f6a88e5384d.zip | |
NOISSUE rebrand vim to MNV's not Vim
Signed-off-by: Mehmet Samet Duman <yongdohyun@projecttick.org>
Diffstat (limited to 'uvim/runtime/indent/python.mnv')
| -rw-r--r-- | uvim/runtime/indent/python.mnv | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/uvim/runtime/indent/python.mnv b/uvim/runtime/indent/python.mnv new file mode 100644 index 0000000000..2d09401af3 --- /dev/null +++ b/uvim/runtime/indent/python.mnv @@ -0,0 +1,34 @@ +" MNV indent file +" Language: Python +" Maintainer: The MNV Project <https://github.com/Project-Tick/Project-Tick> +" Last Change: 2023 Aug 10 +" Former Maintainer: Bram Moolenaar <Bram@mnv.org> +" Original Author: David Bustos <bustos@caltech.edu> + +" Only load this indent file when no other was loaded. +if exists("b:did_indent") + finish +endif +let b:did_indent = 1 + +" Some preliminary settings +setlocal nolisp " Make sure lisp indenting doesn't supersede us +setlocal autoindent " indentexpr isn't much help otherwise + +setlocal indentexpr=python#GetIndent(v:lnum) +setlocal indentkeys+=<:>,=elif,=except + +let b:undo_indent = "setl ai< inde< indk< lisp<" + +" Only define the function once. +if exists("*GetPythonIndent") + finish +endif + +" Keep this for backward compatibility, new scripts should use +" python#GetIndent() +function GetPythonIndent(lnum) + return python#GetIndent(a:lnum) +endfunction + +" mnv:sw=2 |
