You can do that in Sublime Text as well: File -> Clone File http://www.sublimetext.com/
Will the cursor automatically swap between the buffers when you reach the edge? (e.g. buffer 1 is showing page 1 and buffer 2 is showing page 2; when you get the end of page 1, the cursor/focus switches to buffer 2, rather than it just being two independently scrolling views into the same file)
Emacs follow-mode
11–20 of 52 posts
Re: Emacs follow-mode
#12Re: Emacs follow-mode
#13In vim, with scrollbind: nmap ef :vsplit wincmd l exe "norm! Ljz " :set scb :wincmd h :set scb Source: http://markmail.org/message/kbnyhxffy6zs7pic
Edit: You can record a macro to do something similar—create a vertical split, switch to it, disable scroll-bind, go forwards one screen, enable scrollbind, then switch to the other window. This doesn't lose synchronisation but it doesn't take 'scrolloff' into account either.
Re: Emacs follow-mode
#14I think a fun interview question might be how to implement follow-mode.
Re: Emacs follow-mode
#15I think a fun interview question might be how to implement follow-mode.
Re: Emacs follow-mode
#16I've been using Emacs for 32 years (hard to believe) and never knew about this incredible but apparently obscure feature of Emacs. On my 27" cinema display, even using 12pt Monaco for my tired old eyes for extreme legibility, I can get 4-5 columns of 90 lines each, when editing source files or text, for an effective "screen length" of 360-450 lines. With 10pt, you can get 500+ lines "on screen" easily. Docs: http://w…
Re: Emacs follow-mode
#17Earlier quoted context omitted.
Will the cursor automatically swap between the buffers when you reach the edge? (e.g. buffer 1 is showing page 1 and buffer 2 is showing page 2; when you get the end of page 1, the cursor/focus switches to buffer 2, rather than it just being two independently scrolling views into the same file)
That's right--this is not just multiple views on one file/buffer, this is multiple views that are synchronized to follow one another, to give you the full effect of one long view.
Re: Emacs follow-mode
#18Earlier quoted context omitted.
That's right--this is not just multiple views on one file/buffer, this is multiple views that are synchronized to follow one another, to give you the full effect of one long view.
I'm not seeing that by default in Sublime Text 2 (2076) - is there anything I have to toggle?
Re: Emacs follow-mode
#19Re: Emacs follow-mode
#20OTOH if you need follow-mode, aren't your functions too long?