On 07/13/2012 12:58 PM, S. Cowles wrote:
On Wed, 11 Jul 2012, ping wrote:

//what's my current issue then:
now, it looks I easily run into a situation when I have 9+ screen sessions (or windows in GNU screen term) in a GNU screen instance, but still need some
new ones.
...
* switching beyond 9 windows is painful in screen, if you ever use it.

here is another approach to this issue.

1) multiple virtual terminal sessions: i switched to tmux from screen/byobu last year. window navigation, for me, is a critical requirement and it is quite straightforward in tmux. the windows i create in tmux have unique names; therefore each window is directly addressable. i routinely run 20+ windows in tmux. new window set creations and destructions are done with functions, so creating a new batch of some large number of directly addressable windows is easy. command line display of all open windows, from any window, is also a capability i require.

2) mulptiple tabs in vim: i have run vim with 259 open tabs simultaneously with no problems and snappy response. for navigation among the tab pages currently displayed, i employ a homegrown function that creates a list of each tab page currently open, and a key mapping to switch to whatever tab page (and embedded window) that i need. this makes working on large projects quite straightforward. moreover, when i need to cross reference any regular expression across all open tab pages, i have other homegrown functions that control grep sessions across all open tabs and collate the results in a final report, displayed in a new tab page. navigation to the relevant code portions on any of the open tabs is handled by a key map to another function.

3) large project file sets: i maintain vim functions that serve as main project centers for large projects. there are key files for each project that routinely need to be accessed simultaneously, so these functions keep a list of those critical files for each project and open them each in separate tab pages when the project is invoked.

contact me for relevant code.


can you share the codes/steps for step 1-3?
thanks in advance.

also a bit of off-topic, I ever think of using tmux, so making working with 2 level of windows probably easier

s1:t11 t12
s2:t21 t22
s3:t31 t32

so assuming c-a is for screen and c-b is for tmux, then:

s1(c-a 0):t11(c-b 0) t12(c-b 1)
s2(c-a 1):t21(c-b 0) t22(c-b 1)
s3(c-a 2):t31(c-b 0) t32(c-b 1)

now we have 2 level windows, 6 sessions total, and not to hard to switch back & forth, how is it?

regards
ping

--
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

Reply via email to