Wednesday, July 11, 2012

Re: vim: session of "sessions"

On Wed, Jul 11, 2012 at 03:25:58PM EDT, ping wrote:

Maybe OT, but anyway..

[..]

> * switching beyond 9 windows is painful in screen, if you ever use it.

Not sure what you mean by painful, but GNU/screen lets you define
extra shortcuts to access windows directly via the 'bind' command:

bind ')' select 10
bind '!' select 11

etc.

So you would use 'CTRL-A Shift+0' to switch to window 10.. 'CTRL-A 1' to
switch to window 11.. etc.

Never tried it but you could also define more such shortcuts if you need
more.. you could probably define 40-50 more shortcuts without stepping
on the ones that GNU/screen assigns by defaut to other functionalities.

If you run (e.g.) twenty vim instances under GNU/screen, each with 20
tabs open, each with four windows.. that already adds up to 400 files,
even without splitting the screen and not to mention hidden buffers.

Another convenient way to switch betwee GNU/screen windows is to display
the window list via 'CTRL-A "' (double quote) and use vim movement keys
'j' and 'k' to navigate and hit <Enter> to switch to the target window.

This has the merit of letting you visualize whatever names you gave to
each of your vim instances.. could come in handy in case you forget..

Don't know of any application that lets you do this faster and with less
overhead than GNU/screen. Considerably less so than handling more than
c. 10-12 tabs in a web browser, for my money.

Won't stop me from thinking that running more than one instance of Vim
is not a good idea in the first place..

HTH

CJ

--
WHAT YOU SAY??

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: