Skip to content
This repository has been archived by the owner on Dec 28, 2019. It is now read-only.

list option needs to be turned off for word wrapping #20

Open
sharat87 opened this issue Jan 7, 2012 · 4 comments
Open

list option needs to be turned off for word wrapping #20

sharat87 opened this issue Jan 7, 2012 · 4 comments

Comments

@sharat87
Copy link

sharat87 commented Jan 7, 2012

I see you're setting wrap and linebreak when loading VimRoom. But since I have list option turned on, the word wrap breaks in the middle of the words for me.

The vim documentation for 'linebreak' says that it is not used when list is set. So, please set nolist when loading VimRoom. Thanks.

PS: You'll also want to save the state of the list option before loading VimRoom, as not all have it turned on. I'll see if I can create a pull request in the coming couple of days. Thanks again.

@mikewest
Copy link
Owner

Thanks! If you could create a pull request, brilliant!

If not, I'll get to it at some point in the vaguely near future. :)

@sharat87
Copy link
Author

Done. Thanks for reminding :)

@sharat87
Copy link
Author

One other thing, I see in the code that you are saving the settings at the time your plugin executes, not when VimRoom is activated. So, if I were to change an option after starting vim and before loading VimRoom, then you'd have the wrong value to restore.

Nothing major but might bite someone one day. I'm willing to fix it, you interested in accepting?

@vjousse
Copy link

vjousse commented Oct 27, 2013

Hi guys, any reason why this code was not included in vimroom?

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

No branches or pull requests

3 participants