Friday, April 25, 2014

Re: Possible to auto add / to end of line when vim reaches textwidth and does a new line?

>On Thursday, April 24, 2014 1:15:23 PM UTC-5, slack woody wrote:
>> Hi
>>
>>
>>
>> When I'm writing shell scripts I tend to have textwidth at around 72
>>
>> characters. Is there a way that vim can auto add a \ at the end of the
>>
>> line when it starts a new line?
>>
>
>I think you can use the 'formatexpr' option for this. You'll need to write a function to do your formatting for you, including breaking the line and adding the '\'.

Thanks, I'll look into that.

-Dave

--
--
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: