-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Completion re-wraps lines? #4
Comments
I know this is old, but in case anyone else comes here and sees this, I have the following autocommand that changes the tw based on the mail header. Works for me (probably taken from somewhere else, but can't find now). I guess I at one point also changed the fo on the fly, but now have that commented out.
ETA: modified from here https://vi.stackexchange.com/questions/9174/line-number-specific-text-width-setting |
Thanks @hgvhgv ! Do you want to submit this as PR? |
I think this is something that users should do on their own, no? Altering formatting behavior for a completion plugin seems like it would be surprising/annoying? |
Completely agree! Maybe I misunderstood the patch, it's been a while since I've done anything in vimscript. Is it possible to provide a PR that only adjusts the format for header lines? Store the current format options when you move onto a header line, then restore them when you move off? If not, then it might be helpful to include your snippet in the README as a suggestion. Either way, I think there's a PR here :) |
Hi, when I complete several addresses on the same field (e.g. To:) the lines are wrapped upon insertion. And I have to join the lines again before doing more completions. This is probably partly an effect of my settings as well. Do you have any sane settings where this does not happen?
The text was updated successfully, but these errors were encountered: