commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r8373 - trunk/gnue-common/utils/vim


From: reinhard
Subject: [gnue] r8373 - trunk/gnue-common/utils/vim
Date: Wed, 5 Apr 2006 06:36:05 -0500 (CDT)

Author: reinhard
Date: 2006-04-05 06:36:04 -0500 (Wed, 05 Apr 2006)
New Revision: 8373

Modified:
   trunk/gnue-common/utils/vim/indent_python.vim
Log:
Fix Python indenting definition.


Modified: trunk/gnue-common/utils/vim/indent_python.vim
===================================================================
--- trunk/gnue-common/utils/vim/indent_python.vim       2006-04-05 11:33:43 UTC 
(rev 8372)
+++ trunk/gnue-common/utils/vim/indent_python.vim       2006-04-05 11:36:04 UTC 
(rev 8373)
@@ -5,8 +5,13 @@
 " Patch is already sent to the maintainer of the original python indenting
 " definition, maybe he'll include it in a later release of vim.
 
-let s:maxoff = 50
+" Only define the function once.
+if exists("*GetPythonIndent_new")
+  finish
+endif
 
+let s:maxoff = 50      " maximum number of lines to look backwards for ()
+
 setlocal indentexpr=GetPythonIndent_new(v:lnum)
 
 function GetPythonIndent_new(lnum)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]