A problem about Vim swap, which bothered me for a long time...

11 views
Skip to first unread message

Stico

unread,
Nov 14, 2008, 4:57:50 AM11/14/08
to vim_use
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

Jürgen Krämer

unread,
Nov 14, 2008, 7:50:43 AM11/14/08
to vim...@googlegroups.com

Hi,

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)

Anton Sharonov

unread,
Nov 14, 2008, 10:55:46 AM11/14/08
to vim...@googlegroups.com
I think this patch is worst to be listed on the vim patches page... So
we have more chances it will be tested and somebody vote for it.
Second good example: cygwin clipboard patch [1].

[1] Frodak Baksik patch "vim on cygwin using win32 clipboard"
http://groups.google.com/group/vim_dev/msg/135c057dcef64a11


2008/11/14, Jürgen Krämer <jott...@googlemail.com>:

Tom Link

unread,
Nov 14, 2008, 12:00:03 PM11/14/08
to vim_use
> if you are able to compile your own version of Vim, there is an
> unofficial patch for this written by Václav Šmilauer.

Cool. It compiles with 7.2-9. It would be really great if this were
included in the source base.

Regards,
Thomas.

John Beckett

unread,
Nov 14, 2008, 7:47:14 PM11/14/08
to vim...@googlegroups.com
Anton Sharonov wrote:
> I think this patch is worst to be listed on the vim patches
> page... So we have more chances it will be tested and
> somebody vote for it.
> Second good example: cygwin clipboard patch [1].
>
> [1] Frodak Baksik patch "vim on cygwin using win32 clipboard"
> http://groups.google.com/group/vim_dev/msg/135c057dcef64a11

There is a list of unofficial patches for Vim at:
http://groups.google.com/group/vim_dev/web/vim-patches

If anyone would like a patch added to that list (or would like a change to existing
text), please post the proposed text. I'm happy to edit the page, but I don't want
to take the time to work out what the patch is about in order to devise a suitable
description.

Information needed is:
Title of patch
Author
Status (alpha/beta/any text to describe reliability)
Site (URL of site with patch)
Description (a short description of what the patch achieves)

I can't miss this opportunity to whine a little more:
It would be much better if we put this page on the wiki!
Editing a Google web page can be a PITA.

John

Reply all
Reply to author
Forward
0 new messages