Hi everyone,

I just can't seem to get a hold of this. I would like VIM to break lines
after 79 characters. So I used :set textwidth=79, which works like a
charm. The problem I have though, is when I want to print long messages.

For example in python, when I write something like this:

        print "This is a very long line which is wrapped after 79 chars         
        which may have happened just before these words and oh my, it
        happened again."

Well, two things that annoy me a little bit. First of all the statement
is not correct, since the interpreter gets to EOL without a proper
ending of the statement. I manually need to include "\" so it's a valid
statement. Is there a way around this? Can I have vim add a "\"?

When executing the script, it will print the tabs/spaces vim includes
just before "which" and "happened" in order to keep it aligned with the
print command. But as you can assume that's the last thing I want.

Wrapping the text using "wrap" and "wrapmargin" is not an option, since
I need the text to be wrapped after 79 chars to be able to follow guide
lines I have to obey in some projects.

Is there a way around this problem? Or how do you guys deal with these
kind of long strings? I mean not just in python, but in any language.

Unfortunately I wasn't able to find anything on the web concerning this.

Thanks for your help!

Cheers,
Torsten



--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to