Ejemplo n.º 1
0
        /// <summary>
        /// Update the value with the string followed by the specified VimKey values
        /// </summary>
        public static void UpdateValue(this Register reg, string value, params VimKey[] keys)
        {
            var left  = value.Select(KeyInputUtil.CharToKeyInput);
            var right = keys.Select(KeyInputUtil.VimKeyToKeyInput);
            var all   = left.Concat(right).ToFSharpList();

            reg.RegisterValue = RegisterValue.NewKeyInput(all, OperationKind.CharacterWise);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Update the value with the specified set of KeyInput values
 /// </summary>
 public static void UpdateValue(this Register reg, params KeyInput[] keys)
 {
     reg.RegisterValue = RegisterValue.NewKeyInput(keys.ToFSharpList(), OperationKind.CharacterWise);
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Update the value with the spcefied set of VimKey values
        /// </summary>
        public static void UpdateValue(this Register reg, params VimKey[] keys)
        {
            var all = keys.Select(KeyInputUtil.VimKeyToKeyInput).ToFSharpList();

            reg.RegisterValue = RegisterValue.NewKeyInput(all, OperationKind.CharacterWise);
        }