In addition to setting scrollbind in both buffers, you need to issue the command :syncbind
. That should sync the scrolling. I don’t know if it will do it perfectly if you’re wrapping lines and the two files have lines of different lengths. But if you turn wrap off I think it should keep them at same line numbers.
Related Contents:
- Turning off auto indent when pasting text into vim
- Tab key == 4 spaces and auto-indent after curly braces in Vim
- What is your most productive shortcut with Vim?
- “Find next” in Vim
- Move cursor to end of file in vim
- How to save as a new file and keep working on the original one in Vim?
- How do I change tab size in Vim?
- Multiple commands on same line
- What is the best way to force yourself to master vi? [closed]
- How to paste in a new line with vim?
- Case preserving substitute in Vim
- Load different colorscheme when using vimdiff
- How do you use vim’s quickfix feature?
- vim deleting backward tricks
- reformat in vim for a nice column layout
- How to copy yanked text to VI command prompt
- Change 2-space indent to 4-space in vim
- Detect if a key is bound to something in vim
- How to make a new directory and a file in Vim
- How do I change my Vim highlight line to not be an underline?
- Vim Macro on Every Line of Visual Selection
- Unable to replace a space with a new line in Vim
- How do you prefer to switch between buffers in Vim?
- Tab Vs Space preferences in Vim
- What is the best way to do smooth scrolling in Vim?
- Package(Plugin) Management for Vim
- Merge changes using vimdiff
- In Vim, why doesn’t my mouse work past the 220th column?
- Changing vim ‘gutter’ color
- How to navigate multiple ctags matches in Vim?
- Difference between append and insert mode in Vim
- Jump to next white space
- Vim Syntax Highlighting does not work
- How do I quit/exit all windows/buffers/splits/tabs at once in Vim or vimdiff? [duplicate]
- Vim auto-generate ctags
- In vim, how do I highlight TODO: and FIXME:?
- How to change tabs order in VIM?
- Why do I need vim in binary mode for ‘noeol’ to work?
- Smarter Vim recovery?
- Unsaved buffer warning when switching files/buffers
- vimdiff and move among left and right pane
- Align text on an equals sign in vim
- How do I move to the next capital letter?
- Switch to last-active tab in VIM
- Copy lines in visual mode in vim
- How to yank from the command line
- In Vim, what is the “alternate file”?
- Using substitute on a variable
- Text editors with vim mode?
- How do I split long lines in a .vimrc file?