how to make vim indent \subsection in TeX files?

42 views
Skip to first unread message

leo

unread,
Apr 9, 2013, 9:17:24 PM4/9/13
to vim...@googlegroups.com

Hello all,

How i use autoindent to indent TeX files, vim place subsections in the same indentation level as sections. This bothers me a little bit since i wanna indent TeX files for automatic folding based on identation. So, what should i do to make vim indent subsections?

Thanks in advance

Leo

pansz

unread,
Apr 9, 2013, 11:43:15 PM4/9/13
to vim...@googlegroups.com
Install TeX plugins which support tex file indent.

You can search in www.vim.org and find some TeX plugins/extensions.

Or if all you want is just the indent, try copy indent/tex.vim from texsuite.





--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



Leonardo Barbosa

unread,
Apr 10, 2013, 5:57:07 AM4/10/13
to vim...@googlegroups.com
Thanks. I have installed that from vim-latex suite, but subsections
are still not indented. Any idea?

Leo
> You received this message because you are subscribed to a topic in the
> Google Groups "vim_use" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/vim_use/HMSgU5oRPoI/unsubscribe?hl=en.
> To unsubscribe from this group and all its topics, send an email to
Reply all
Reply to author
Forward
0 new messages