Sunday, September 21, 2014

Re: Indentation problem

> If the "my notes" field spans over more than one line, I would like the continuation
> lines to be indented aligned at the TAB position ..................
> ................
> I am using TAB and keeping my comments/notes as ONE line ..........

Perhaps you would like to format your file so that it takes the shape
you want for editing, and format it back to the form "one note -- one
line" upon leaving vim. While editing, the internal formatting can
be preserved by setting formatoptions, e.g.: set fo=a2
(along with proper value of tw). Or, you may prefer to not have
autoformatting, but do formatting yourself when you wish to: gqap.
In this case set fo=2 will do.
You might also need to check the formatexpr and formatprg options.

--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment