On Thu, Oct 1, 2009 at 5:20 PM, Hari Krishna Dara <[email protected]> wrote: > > On Thu, Oct 1, 2009 at 7:41 AM, Bob Hiestand <[email protected]> wrote: >> I'd prefer to see a separate way to access each modifier, though maybe >> that could be something like v:cmdmodifier["split"]. In any event, I >> would love this feature. > > That is not convenient for most of the use cases. E.g., to modify the > window split behavior, the user could have specified any of "top", > "vertical", "leftabove", "rightbelow", "topleft" etc., so would you > search for each of the flags to compose the modifiers to pass down to > the final split your plugin is going to perform, instead of a simple > pass through like this? > > exec v:cmdmodifiers 'split' s:windowName > > I think the sweet spot is a single string, but with any modifiers > expanded to their full name, as it serves all the needs.
If you change that to: exec v:cmdmodifiers['split'] 'split' s:windowName ... then you have what I requested. The 'split' entry of v:cmdmodifiers would contain all the split-specific modifiers. I can't think of other command-modifying commands off-hand; :silent and :verbose already are available in variable form. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
