Auto line break upon reply email
Hi, I noticed that some of the replied emails are auto indented by user, so if the line is longer than, say 72 chars, it'll break into 2 lines automatically(?). I'm wondering if it's possible to do this in vim? My email client is mutt. Thank you, - Tim -- -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220508025238.autf5p3mmxsjbdpq%40localhost.
Re: Auto line break upon reply email
Den sön 8 maj 2022 09:06'Tim Ye' via vim_use skrev: > Hi, > > I noticed that some of the replied emails are auto indented by user, so > if the line is longer than, say 72 chars, it'll break into 2 lines > automatically(?). I'm wondering if it's possible to do this in vim? > :setl tw=72 see :h textwidth I usually also do :setl cc=72 (see :h colorcolumn) to have an indication how much I have left on the line and to spot overlong lines which may arise during editing. HTH, /bpj > My email client is mutt. > > Thank you, > > - Tim > > -- > -- > 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+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/vim_use/20220508025238.autf5p3mmxsjbdpq%40localhost > . > -- -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CADAJKhD8cYWvhBQAAkRb7H-Rz8ZMmB%3Dtz44VdCYCydr4UJR4vw%40mail.gmail.com.
Re: Auto line break upon reply email
Den sön 8 maj 2022 10:21BPJ skrev: > > > Den sön 8 maj 2022 09:06'Tim Ye' via vim_use > skrev: > >> Hi, >> >> I noticed that some of the replied emails are auto indented by user, so >> if the line is longer than, say 72 chars, it'll break into 2 lines >> automatically(?). I'm wondering if it's possible to do this in vim? >> > > :setl tw=72 > > see :h textwidth > > I usually also do > > :setl cc=72 > > (see :h colorcolumn) > > to have an indication how much I have left on the line and to spot > overlong lines which may arise during editing. > You also have to make sure "t" is in 'formatoptions' (see :h formatoptions). I forgot that because I always have it. Sorry! /bpj > HTH, > > /bpj > > > >> My email client is mutt. >> >> Thank you, >> >> - Tim >> >> -- >> -- >> 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+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/vim_use/20220508025238.autf5p3mmxsjbdpq%40localhost >> . >> > -- -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CADAJKhCuQN04PGbEAZC7zOX5cFkN1c1%3D77nep%3Dj5yQunoWTGZg%40mail.gmail.com.
Re: Auto line break upon reply email
Thank you for your reply. Sorry I didn't make myself clear, what I wanted to achieve is that when I hit reply (in mutt it's 'r'), I hope that the text in my replied email would be automatically re-formatted (so if someone else sent an email which doesn't set textwidth to 72 can be breaking into multiple lines in my replied email). On 2022-05-08 10:21+0200, BPJ wrote: Den sön 8 maj 2022 09:06'Tim Ye' via vim_use skrev: Hi, I noticed that some of the replied emails are auto indented by user, so if the line is longer than, say 72 chars, it'll break into 2 lines automatically(?). I'm wondering if it's possible to do this in vim? :setl tw=72 see :h textwidth I usually also do :setl cc=72 (see :h colorcolumn) to have an indication how much I have left on the line and to spot overlong lines which may arise during editing. HTH, /bpj My email client is mutt. Thank you, - Tim -- -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220508025238.autf5p3mmxsjbdpq%40localhost . -- -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CADAJKhD8cYWvhBQAAkRb7H-Rz8ZMmB%3Dtz44VdCYCydr4UJR4vw%40mail.gmail.com. -- -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220508083706.3mcadol3ke7ufarx%40localhost.
Re: Auto line break upon reply email
On 2022-05-08 10:34+0200, BPJ wrote: You also have to make sure "t" is in 'formatoptions' (see :h formatoptions). I forgot that because I always have it. Sorry! Yes I have something like the following setting in my muttrc: set editor = "vim -c 'set comments+=nb:> nocp bg=light tw=72 spell ft=mail formatoptions+=w'" -- -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220508083904.ezczlkdnlct5fekf%40localhost.
Auto line break upon reply email
Hi, I noticed that some of the replied emails are auto formatted by user, so if the line is longer than, say 72 chars, it'll break into 2 lines automatically(?). I'm wondering if it's possible to do this in vim? My email client is mutt. Thank you, - Tim -- -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220508031918.juoz6hoii3bvcavo%40localhost.
Re: Auto line break upon reply email
Please ignore this message, it's duplicated. Sorry. On 2022-05-08 11:19+0800, 'Tim Ye' via vim_use wrote: Hi, I noticed that some of the replied emails are auto formatted by user, so if the line is longer than, say 72 chars, it'll break into 2 lines automatically(?). I'm wondering if it's possible to do this in vim? My email client is mutt. Thank you, - Tim -- -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220508031918.juoz6hoii3bvcavo%40localhost. -- -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220508084343.nmsaanpteboaspcm%40localhost.
Re: Auto line break upon reply email
On So, 08 Mai 2022, 'Tim Ye' via vim_use wrote: > On 2022-05-08 10:34+0200, BPJ wrote: > > > You also have to make sure "t" is in 'formatoptions' (see :h > > formatoptions). I forgot that because I always have it. Sorry! > > Yes I have something like the following setting in my muttrc: > > set editor = "vim -c 'set comments+=nb:> nocp bg=light tw=72 spell ft=mail > formatoptions+=w'" You do not need that. Make sure you have :filetype plugin on in your vimrc, then Vim will automatically detect that you are writing a mail from mutt and sets some sensible options. Check $VIMRUNTIME/ftplugin/mail.vim for what those are. This already sets a lot of useful defaults. If you need others, you can add additional options by writing them into your ~/.vim/after/ftplugin/mail.vim (create non-existing directories). Thanks, Chris -- F: Was ist golden und fliegt durch die Luft? A: Maikäfer mit Goldzahn. -- -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220508084555.GE3822443%40256bit.org.
Re: Auto line break upon reply email
On 2022-05-08 10:45+0200, Christian Brabandt wrote: On So, 08 Mai 2022, 'Tim Ye' via vim_use wrote: On 2022-05-08 10:34+0200, BPJ wrote: > You also have to make sure "t" is in 'formatoptions' (see :h > formatoptions). I forgot that because I always have it. Sorry! Yes I have something like the following setting in my muttrc: set editor = "vim -c 'set comments+=nb:> nocp bg=light tw=72 spell ft=mail formatoptions+=w'" You do not need that. Make sure you have :filetype plugin on in your vimrc, then Vim will automatically detect that you are writing a mail from mutt and sets some sensible options. Check $VIMRUNTIME/ftplugin/mail.vim for what those are. This already sets a lot of useful defaults. If you need others, you can add additional options by writing them into your ~/.vim/after/ftplugin/mail.vim (create non-existing directories). Thank you I'll check them out. -- -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220508091940.pwx7afd7mpu6eish%40localhost.