correct indent of ifdef/endif (trivial patch)

77 views
Skip to first unread message

Taro MURAOKA

unread,
Mar 26, 2013, 7:31:03 PM3/26/13
to vim...@googlegroups.com
I have corrected indentations of ifdef/endif pair,
which might be just mistake.

Please check attached patch.

Thanks.

correct-ifdef-indent.diff

Taro MURAOKA

unread,
Mar 26, 2013, 9:27:32 PM3/26/13
to vim...@googlegroups.com
I have wrote a script to correct indentations with considering
ifdef/endif nests.

https://gist.github.com/koron/5250637

USAGE:

1. open a source file.
2. :source fix-ifdef-indent.vim
3. check and save.

This script will correct indents and show line numbers which were
corrected.


Thanks.

Bram Moolenaar

unread,
Mar 27, 2013, 6:20:44 PM3/27/13
to Taro MURAOKA, vim...@googlegroups.com
Thanks, I'll include it.


--
From "know your smileys":
C=}>;*{)) Drunk, devilish chef with a toupee in an updraft,
a mustache, and a double chin

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages