Skip to content
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

How can I disable the auto wrap? #15

Closed
programus opened this issue Nov 15, 2019 · 1 comment
Closed

How can I disable the auto wrap? #15

programus opened this issue Nov 15, 2019 · 1 comment

Comments

@programus
Copy link

When I editing a pure plain text file with a long line, it will always add a new line when I try to add something.
How can I disable this feature?

@programus
Copy link
Author

programus commented Nov 19, 2019

OK. I finally worked it out. Just change formatoptions in .vimrc.

  " set formatoptions-=l " wrap long lines
  set formatoptions+=l " don't wrap long lines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant