Monday, September 18, 2017

Re: Set scrollbind and syncbind on command line of vim invocation

On Monday, September 18, 2017 at 4:59:32 PM UTC-5, Keith Christian wrote:
> Trying to load two files, 1.txt and 2.txt and set scrollbind on the
> command line with syncbind option, so the files will both scroll
> together, without setting scrollbind after the files are loaded.
>
> Tried these command lines, still have to issue :scrollbind command
> separately in each window (Ctrl-W L then :scrollbind.)
>
> Want to issue all commands on the command line beforehand.
>
>
> Doesn't work: vim -O +"set scb syncbind" 1.txt 2.txt
>
> Also doesn't work: vim -O +"set scb" +"set syncbind" 1.txt 2.txt
>
> Ideas?
>
> Thanks in advance.
>
> Keith

Try using +"windo set scb syncbind" to set on both windows with one command.

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment