Hi,
Stico wrote: > Hard to say, let me show it by example: > > > While "set nowrap", every line is in one line.... > nowrap: > -------------------------------- > hello, this is a text line for swap test.... > -------------------------------- > > > while "set wrap", line was wrapped if it can not show in one line (but > the wrapped line will start from the beginning of the next line) > wrap: > -------------------------------- > hello, this is a text > line for swap test.... > -------------------------------- > > > What I want is, when "set wrap", line will be wrapped but the wrapped > line will start with the same indent.... > wrap: > -------------------------------- > hello, this is a text > line for swap test.... > -------------------------------- > > > > > Any one who knows if there is any plug-in do this work? I failed to > find any :-( > Or any could give me a instruction on how to write a plug-in for this? > (I only know how to write a basic plugin).... Thx in advnace if you are able to compile your own version of Vim, there is an unofficial patch for this written by Václav Šmilauer. You can find his announcement mail under http://marc.info/?l=vim-dev&m=117916431219780 and the last version of his patch in the mail under http://marc.info/?l=vim-dev&m=118053273403321 I think this patch was made against Vim 7.1 or even 7.0, but apart from some offsets it should apply fine to current Vim 7.2 sources. Regards, Jürgen -- Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. (Calvin) --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
