4 ms·
In vim, with scrollbind: nmap <silent> <Leader>ef :vsplit<bar>wincmd l<bar>exe "norm! Ljz<c-v><cr>"<cr>:set scb<cr>:wincmd h<cr>:set scb<cr> Source: http://
by dmpatierno 15y ago
In vim, with scrollbind:
nmap <silent> <Leader>ef :vsplit<bar>wincmd l<bar>exe "norm! Ljz<c-v><cr>"<cr>:set scb<cr>:wincmd h<cr>:set scb<cr>
Source: http://markmail.org/message/kbnyhxffy6zs7pic http://markmail.org/message/kbnyhxffy6zs7pic
- pyre 15y agoThere is also this: http://mysite.verizon.net/astronaut/vim/index.html#MPAGE http://mysite.verizon.net/astronaut/vim/index.html#MPAGE
- beaumartinez 15y agoIt's a nice approximation, but it's also a hack—it doesn't take 'scrolloff' into account, and once you scroll too far in one of the windows they lose synchronisation. 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.