On Friday, October 25, 2013 8:09:03 AM UTC-5, Michal Kawalec wrote:
> Hi,
>
>
>
> I have a file written in literate style and I would like to apply a line
>
> width limitation (tw=72) to the text but not to the code. Obviously
>
> doing `set tw=72` applies tw to the whole file.
>
>
>
> Is there a way to apply tw only to certain syntax group(s)?
>
>
Not syntax groups, but rather patterns defined by the 'comments' option, can be treated differently.
Do "setlocal formatoptions-=t formatoptions+=c" to only allow textwidth to apply automatically to comments, assuming your 'comments' option is set appropriately to the syntax you are editing.
--
--
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/groups/opt_out.
No comments:
Post a Comment