From 2eae5db069dc171f74cd863487655f6a88e5384d Mon Sep 17 00:00:00 2001 From: Mehmet Samet Duman Date: Fri, 3 Apr 2026 22:21:25 +0300 Subject: NOISSUE rebrand vim to MNV's not Vim Signed-off-by: Mehmet Samet Duman --- uvim/runtime/indent/python.mnv | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 uvim/runtime/indent/python.mnv (limited to 'uvim/runtime/indent/python.mnv') 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 +" Last Change: 2023 Aug 10 +" Former Maintainer: Bram Moolenaar +" Original Author: David Bustos + +" 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 -- cgit 0.0.5-2-1-g0f52