示例#1
0
 internal static CommandBinding CreateMotionBinding(
     string name        = "default",
     CommandFlags flags = CommandFlags.None,
     Func <MotionData, NormalCommand> func = null)
 {
     func = func ?? NormalCommand.NewYank;
     return(CommandBinding.NewMotionBinding(KeyNotationUtil.StringToKeyInputSet(name), flags, func.ToFSharpFunc()));
 }