On 20/02/09 11:49, Tom Link wrote: >> ":set [no]scrollbind" should be ":setlocal" > > Hm, ok. > > David Liang wrote it works if you use a keymap. After checking his > macro, I currently use the following keymap, which seems to work: > > noremap<silent> ZC :bo vs<cr>Ljzt:setl scb<cr><c-w>p:setl scb<cr> > > David also makes sure that scrolloff is set to 0 when splitting the > window which is necessary for L to move the cursor to the last line.
By "keymap" you mean a mapping, don't you? The term "keymap" has a technical meaning in Vim, as a script containing the ":loadkeymap" command followed (in a specific format) by several (often many) language-mappings. See the scripts in $VIMRUNTIME/keymap/ for examples. These scripts are activated by setting the 'keymap' option (again, preferably by a ":setlocal" command). The mapping you show (and where I know my mailer probably misquoted the spaces next to <> signs) includes two instances of the ":setl[ocal]" command, none of the ":set" command. I won't criticize its contents (favourably or unfavourably), I'm leaving that to better specialists of Vim's scrolling commands. Best regards, Tony. -- God made machine language; all the rest is the work of man. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
