On Dec 27, 3:22 pm, Ben Schmidt <[email protected]> wrote:
> Edwin Miller wrote:
> > Hi,
>
> > I have to edit tables with very long lines.
> > To keep the first column in focus while editing e.g. the last column it 
> > would
> > be great to use something like a "vertical" folding.
> > (Analogue to the horizontal foldings with "zf")
> > Is there such a feature in vim?
>
> I would just vertically split the window (:vsplit) and set scrollbinding
> for both windows (:windo setlocal scrollbind), and make the left hand
> window wide enough to just show the column I'm interested in always
> seeing as a reference (CTRL-W <number> | -- i.e. the pipe/bar character)
> to do something like this. Then I could scroll the right hand window to
> the right but the left one would stay showing the left column, but both
> windows would scroll up and down together.
>
> You could extend the concept to have a number of vertical splits each
> showing a different part of the table.
>
> So that's not exactly what you asked for, but that's kinda how I'd deal
> with the situation.
>
> Cheers,
>
> Ben.

I came across some "horizontal folding" or "inline folding" scripts at
vim.org. Theese could be useful for you. The way Ben Schmidt has
written also sound very good.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to