On 20/02/09 12:47, Tom Link wrote: >> By "keymap" you mean a mapping, don't you? > > It's clear from the context this is no keymap in the vim sense of the > word. But you're right that I should care more about vim terminology. > >> 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. > > Hm?
Local and global-local options can be set by means of three closely related commands: - ":setlocal" sets only the local value (for the current buffer or window, depending on the option); - ":setglobal" sets only the global default (which will usually be used when creating a new buffer or window); - ":set" sets both. Modelines set only the local value (as with ":setlocal") In the ":let" command before the = sign, &l:option, &g:option or &option set the local value, the global value, or both (in an expression, &option "reads" the local value). For global settings, which have only one value, all three commands are equivalent (and modelines set the global value in that case, but it is "unusual in the extreme" to set a global setting with a modeline). Best regards, Tony. -- Females are strictly forbidden to appear unshaven in public. [real standing law in New Mexico, United States of America] --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---