On 06/30/2009 06:23:28 AM, Torsten Andre wrote:

> 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.

How you do need to do this may differ a little from one language to 
another, and depending on the nature of the statement.   Really, the 
big deal with the whitespace is only with a print"    ", right?  That 
is not really a vim problem, that is a python problem.  There is 
nothing vim can do to change python from including all the whitespace 
between quotes.

But, in some languages you could use:

print "blah blah blah"
     +"blah blah";

Notice the extra whitepace is not inside quotes now.  Do you see what I 
mean about how it is a python issue, not a vim issue?  I don't know 
python; if you cannot do this kind of thing there then you will have 
to split the print line into two print lines in order to conform to 
your guidelines.  

In other words, not all languagues permit you to break a print 
statement into two quoted segements, and there is no other way to do 
this.  So you may need two seperate commands, or else don't indend the 
second half.

WRT just adding a / at the end, there's probably a method and someone 
might post it.  But generally, I think you will just have to write code 
that way to start with.  






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

Reply via email to