I have been using the ctab.vim plugin described here,
http://www.vim.org/scripts/script.php?script_id=231
but with vim 7.2.315 on fedora 11 (and earlier 7.2.x versions) when
editing a non-c file, e.g., t.tmp, on inserting a new line a series of
red highlighted errors would appear saying "var inda not defined". Once
I "returned" through all the errors the new line would appear.
Setting inda to 0 for the default case (not using cindent) fixes the
problem for me. I don't know if this is the right way to fix it but I
only care about the smart tabs when editing c style files.
-gene
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
--- ctab-2.1.vim 2009-12-05 16:58:56.293950969 -0500
+++ ctab.vim 2009-12-05 17:02:40.273949809 -0500
@@ -186,6 +186,8 @@
let inda=cindent(a:line)
elseif &smarttab
return ''
+ else
+ let inda=0
endif
finally
let &ts=tskeep