carlhuda / janus

Vim distribution
7.87k stars 816 forks source link

How does wrapping work? #81

Closed Zettt closed 13 years ago

Zettt commented 13 years ago

I am trying to switch to Vim and get used to it. I came across this very good collection of extensions. Especially useful for beginners like me. Since I'm writing a lot of text the defaults for text wrapping aren't that useful. I write for a couple of blogs and spend almost my entire day writing Markdown. Vim, with janus, automatically decides for me to make the text look like a block and I need to manually remove all line breaks after writing. This becomes quite tedious.

I've tried uncommenting both instances of call s:setupWrapping(), but that doesn't seem like a good solution. Since I'm still new I can't get my head wrapped around vimrc yet. I know the wrapping is based on file extension, but on my machine all .txt files are Markdown files. That's way more compatible when exchanging files with an iPad, iPhone or Scrivener - for a round trip.

All I would need is soft wrapping the text when it reaches the right border of the "window".

Regards, Andreas

fredoliveira commented 13 years ago

Andreas, I believe a simple set wrap on your .gvimrc.local file would do what you need.

A better venue for this kind of question is a place like StackOverflow, as this isn't really an issue with Janus but a question about configuring vim :-)

Zettt commented 13 years ago

Thanks got it set now. I could have gone to StackOverflow, indee, but I figured it's better to ask here, because I had no question about configuring Vim. Rather a general janus issue. Take it as feature request to make future releases remove the wrapping settings for Markdown files.

By the way, I was looking for a long time and haven't found anything out there that comes close to janus for making someone become up-and-running with Vim. Highly appreciate your work.

Andreas

fredoliveira commented 13 years ago

This is definitely not my work - I just noticed this issue on my watchlist at github and decided to help. Carl and Yehuda are to blame for the awesomeness. Glad you sorted this out, although I will argue this is about configuring vim and not a janus issue :-)