vertical folder?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

vertical folder?

Vlad Ghitulescu
Hello!


I have a very bright file (>5000 chars) and I want to see different parts of
a record (1-5, 250-253, 3000-3010 etc).

Is there any posibility to make vertical folders (to hide the columns 6-249,
254-2999 etc).


Regards,
Vlad

--
Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie!
Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl
Reply | Threaded
Open this post in threaded view
|

Re: vertical folder?

Marian Csontos
Hi Vlad,

:%s/^\(.\{,6}\).\{,245}\(.\{,3}\).\{,2747}\(.\{,10}\).*/\1\2\3/
look at them and undo

OR

:%g/.\{5000,}/echo line(".").":  
".substitute(getline("."),'^\(.\{,6}\).\{,245}\(.\{,3}\).\{,2747}\(.\{,10}\).*','\1\2\3',"")

you may be also interested in redirecting output
:he :redir

-- Marian

On Thu, 07 Jul 2005 14:20:19 +0200, Vlad Ghitulescu <[hidden email]>  
wrote:

> Hello!
>
>
> I have a very bright file (>5000 chars) and I want to see different  
> parts of
> a record (1-5, 250-253, 3000-3010 etc).
>
> Is there any posibility to make vertical folders (to hide the columns  
> 6-249,
> 254-2999 etc).
>
>
> Regards,
> Vlad
>


________ Information from NOD32 ________
This message was checked by NOD32 Antivirus System for Linux Mail Server.
http://www.nod32.com
Reply | Threaded
Open this post in threaded view
|

RE: vertical folder?

vishnu-3
In reply to this post by Vlad Ghitulescu
Hi Vlad Ghitulescu,

1. Vertically split the buffer (:vsp)
2. Adjust the window border, so that you can hide the unwanted
characters in window 1 (w1)

.----+-------.
| w1 |  w2   |
|    |       |
`----+-------'
     ^(window border)

w1 - window 1
w2 - window 2

3. In the second window type the following command
250|zs
  - 250|, go to 250th column
  - zs, make that column as the start column for that window


Now you can find that characters from 6 to 249 are hidden. Like wise do
for rest of the ranges. Hope some one will give better solution.

~VIshnu

-----Original Message-----
From: Vlad Ghitulescu [mailto:[hidden email]]
Sent: Thursday, July 07, 2005 5:50 PM
To: [hidden email]
Subject: vertical folder?

Hello!


I have a very bright file (>5000 chars) and I want to see different
parts of
a record (1-5, 250-253, 3000-3010 etc).

Is there any posibility to make vertical folders (to hide the columns
6-249,
254-2999 etc).


Regards,
Vlad

--
Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie!
Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl

Reply | Threaded
Open this post in threaded view
|

Re: vertical folder?

Marian Csontos
Hi Vlad and Vishnu,

In this case I recomend also setting scrollbind in both windows

On Thu, 07 Jul 2005 14:38:57 +0200, Vishnu <[hidden email]> wrote:

> Hi Vlad Ghitulescu,
>
> 1. Vertically split the buffer (:vsp)
> 2. Adjust the window border, so that you can hide the unwanted
> characters in window 1 (w1)
>
> .----+-------.
> | w1 |  w2   |
> |    |       |
> `----+-------'
>      ^(window border)
>
> w1 - window 1
> w2 - window 2
>
> 3. In the second window type the following command
> 250|zs
>   - 250|, go to 250th column
>   - zs, make that column as the start column for that window
>
>
> Now you can find that characters from 6 to 249 are hidden. Like wise do
> for rest of the ranges. Hope some one will give better solution.
>
> ~VIshnu
>
> -----Original Message-----
> From: Vlad Ghitulescu [mailto:[hidden email]]
> Sent: Thursday, July 07, 2005 5:50 PM
> To: [hidden email]
> Subject: vertical folder?
>
> Hello!
>
>
> I have a very bright file (>5000 chars) and I want to see different
> parts of
> a record (1-5, 250-253, 3000-3010 etc).
>
> Is there any posibility to make vertical folders (to hide the columns
> 6-249,
> 254-2999 etc).
>
>
> Regards,
> Vlad
>



--
Mgr. Mari?n Csontos
program?tor POS
AXA, a.s.
Radni?n? n?mestie 4
821 05 Bratislava
tel. +421 2 4829 4218
mailto:[hidden email]
www.axa.sk
 


________ Information from NOD32 ________
This message was checked by NOD32 Antivirus System for Linux Mail Server.
http://www.nod32.com
Reply | Threaded
Open this post in threaded view
|

Re: vertical folder?

Tim Chase-2
In reply to this post by Vlad Ghitulescu
> Is there any posibility to make vertical folders (to hide the
> columns 6-249, 254-2999 etc).

In addition to the other native-vim suggestions, although I can't
scrounge it up at the moment (even with a web search), somebody
created a vertical-fold patch for vim.  It's unofficial but seems
to work for those that have used it.  Hopefully if its author or
any regular users of the patch are on the list, they can pipe up
and let you know where to find it.

-tim