Skip to main content
added 2 characters in body; edited title
Source Link
Vivian De Smedt
  • 21k
  • 5
  • 22
  • 40

individual Individual macros function but combined macros do not

I am trying to bruteforcebrute-force the caesarCaesar shift cipher in vim. I have recorded three macros f, a, and d where f copies the line and a applies a caesarCaesar shift to all elements on the line by calling macro d which caesarCaesar shifts a char. Both macros work fine individually, and when I spam @f@a on my keyboard, but when I create a new macro @f@a using any other register, the macro doesn't function properly, it doesn't create a new line and appears to only caesarCaesar shift the current line.

This is my text file w/ macros#

# abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
# bcdefghijklmnopqrstuvwxyzaBCDEFGHIJKLMNOPQRSTUVWXYZA

"bruteforcing"brute-forcing caesarCaesar shift cipher w/ vim macros

"input is given at bottom of file

"subroutines
""duplicate bottom line
call:f
yyp

""caesar""Caesar shift line
call:a
!!wc -c^M0Yuo^[<80>ýapa@d^[<80>ýa0"rDk@r

""caesar""Caesar shift character
call:d
mfyl3Gpif^[<80><fd>alajyl^[<80><fd>a0"sD1G@s`fvpl


hello world

Edit: the new macro I was referring to was @f@a. The key sequence @f@a works fine but @x where @x=@f@a where x is any register does not behave the same. Can anyone reproduce this behaviourbehavior?

Edit: I have included macro d. Note: macro r is recorded in macro a. I understand the vim macros are incomprehensible but how could, even ignoring the macros, a keysequencekey-sequence like @f@a be different than @x which has @f@a stored inside register x?

individual macros function but combined macros do not

I am trying to bruteforce the caesar shift cipher in vim. I have recorded three macros f, a, and d where f copies the line and a applies a caesar shift to all elements on the line by calling macro d which caesar shifts a char. Both macros work fine individually, and when I spam @f@a on my keyboard, but when I create a new macro @f@a using any other register, the macro doesn't function properly, it doesn't create a new line and appears to only caesar shift the current line.

This is my text file w/ macros#

# abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
# bcdefghijklmnopqrstuvwxyzaBCDEFGHIJKLMNOPQRSTUVWXYZA

"bruteforcing caesar shift cipher w/ vim macros

"input is given at bottom of file

"subroutines
""duplicate bottom line
call:f
yyp

""caesar shift line
call:a
!!wc -c^M0Yuo^[<80>ýapa@d^[<80>ýa0"rDk@r

""caesar shift character
call:d
mfyl3Gpif^[<80><fd>alajyl^[<80><fd>a0"sD1G@s`fvpl


hello world

Edit: the new macro I was referring to was @f@a. The key sequence @f@a works fine but @x where @x=@f@a where x is any register does not behave the same. Can anyone reproduce this behaviour?

Edit: I have included macro d. Note: macro r is recorded in macro a. I understand the vim macros are incomprehensible but how could, even ignoring the macros, a keysequence like @f@a be different than @x which has @f@a stored inside register x?

Individual macros function but combined macros do not

I am trying to brute-force the Caesar shift cipher in vim. I have recorded three macros f, a, and d where f copies the line and a applies a Caesar shift to all elements on the line by calling macro d which Caesar shifts a char. Both macros work fine individually, and when I spam @f@a on my keyboard, but when I create a new macro @f@a using any other register, the macro doesn't function properly, it doesn't create a new line and appears to only Caesar shift the current line.

This is my text file w/ macros#

# abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
# bcdefghijklmnopqrstuvwxyzaBCDEFGHIJKLMNOPQRSTUVWXYZA

"brute-forcing Caesar shift cipher w/ vim macros

"input is given at bottom of file

"subroutines
""duplicate bottom line
call:f
yyp

""Caesar shift line
call:a
!!wc -c^M0Yuo^[<80>ýapa@d^[<80>ýa0"rDk@r

""Caesar shift character
call:d
mfyl3Gpif^[<80><fd>alajyl^[<80><fd>a0"sD1G@s`fvpl


hello world

Edit: the new macro I was referring to was @f@a. The key sequence @f@a works fine but @x where @x=@f@a where x is any register does not behave the same. Can anyone reproduce this behavior?

Edit: I have included macro d. Note: macro r is recorded in macro a. I understand the vim macros are incomprehensible but how could, even ignoring the macros, a key-sequence like @f@a be different than @x which has @f@a stored inside register x?

added 218 characters in body
Source Link

I am trying to bruteforce the caesar shift cipher in vim. I have recorded three macros f, a, and d where f copies the line and a applies a caesar shift to all elements on the line by calling macro d which caesar shifts a char. Both macros work fine individually, and when I spam @f@a on my keyboard, but when I create a new macro @f@a using any other register, the macro doesn't function properly, it doesn't create a new line and appears to only caesar shift the current line.

This is my text file w/ macros#

# abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
# bcdefghijklmnopqrstuvwxyzaBCDEFGHIJKLMNOPQRSTUVWXYZA

"bruteforcing caesar shift cipher w/ vim macros

"input is given at bottom of file

"subroutines
""duplicate bottom line
call:f
yyp

""caesar shift line
call:a
!!wc -c^M0Yuo^[<80>ýapa@d^[<80>ýa0"rDk@r

""caesar shift character
call:d
mfyl3Gpif^[<80><fd>alajyl^[<80><fd>a0"sD1G@s`fvpl


hello world

Edit: the new macro I was referring to was @f@a. The key sequence @f@a works fine but @x where @x=@f@a where x is any register does not behave the same. Can anyone reproduce this behaviour?

Edit: I have included macro d. Note: macro r is recorded in macro a. I understand the vim macros are incomprehensible but how could, even ignoring the macros, a keysequence like @f@a be different than @x which has @f@a stored inside register x?

I am trying to bruteforce the caesar shift cipher in vim. I have recorded three macros f, a, and d where f copies the line and a applies a caesar shift to all elements on the line by calling macro d which caesar shifts a char. Both macros work fine individually, but when I create a new macro using any other register, the macro doesn't function properly, it doesn't create a new line and appears to only caesar shift the current line.

This is my text file w/ macros#

# abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
# bcdefghijklmnopqrstuvwxyzaBCDEFGHIJKLMNOPQRSTUVWXYZA

"bruteforcing caesar shift cipher w/ vim macros

"input is given at bottom of file

"subroutines
""duplicate bottom line
call:f
yyp

""caesar shift line
call:a
!!wc -c^M0Yuo^[<80>ýapa@d^[<80>ýa0"rDk@r

""caesar shift character
call:d
mfyl3Gpif^[<80><fd>alajyl^[<80><fd>a0"sD1G@s`fvpl


hello world

Edit: the new macro I was referring to was @f@a. The key sequence @f@a works fine but @x where @x=@f@a where x is any register does not behave the same. Can anyone reproduce this behaviour?

Edit: I have included macro d. Note: macro r is recorded in macro a.

I am trying to bruteforce the caesar shift cipher in vim. I have recorded three macros f, a, and d where f copies the line and a applies a caesar shift to all elements on the line by calling macro d which caesar shifts a char. Both macros work fine individually, and when I spam @f@a on my keyboard, but when I create a new macro @f@a using any other register, the macro doesn't function properly, it doesn't create a new line and appears to only caesar shift the current line.

This is my text file w/ macros#

# abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
# bcdefghijklmnopqrstuvwxyzaBCDEFGHIJKLMNOPQRSTUVWXYZA

"bruteforcing caesar shift cipher w/ vim macros

"input is given at bottom of file

"subroutines
""duplicate bottom line
call:f
yyp

""caesar shift line
call:a
!!wc -c^M0Yuo^[<80>ýapa@d^[<80>ýa0"rDk@r

""caesar shift character
call:d
mfyl3Gpif^[<80><fd>alajyl^[<80><fd>a0"sD1G@s`fvpl


hello world

Edit: the new macro I was referring to was @f@a. The key sequence @f@a works fine but @x where @x=@f@a where x is any register does not behave the same. Can anyone reproduce this behaviour?

Edit: I have included macro d. Note: macro r is recorded in macro a. I understand the vim macros are incomprehensible but how could, even ignoring the macros, a keysequence like @f@a be different than @x which has @f@a stored inside register x?

added 51 characters in body
Source Link

I am trying to bruteforce the caesar shift cipher in vim. I have recorded twothree macros f and, a, and d where f copies the line and a applies a caesar shift to all elements on the line by calling macro d which caesar shifts a char. Both macros work fine individually, but when I create a new macro using any other register, the macro doesn't function properly, it doesn't create a new line and appears to only caesar shift the current line.

This is my text file w/ macros#

# abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
# bcdefghijklmnopqrstuvwxyzaBCDEFGHIJKLMNOPQRSTUVWXYZA

"bruteforcing caesar shift cipher w/ vim macros

"input is given at bottom of file

"subroutines
""duplicate bottom line
call:f
yyp

""caesar shift line
call:a
!!wc -c^M0Yuo^[<80>ýapa@d^[<80>ýa0"rDk@r

""caesar shift character
call:d
mfyl3Gpif^[<80><fd>alajyl^[<80><fd>a0"sD1G@s`fvpl


hello world

Edit: the new macro I was referring to was @f@a. The key sequence @f@a works fine but @x where @x=@f@a where x is any register does not behave the same. Can anyone reproduce this behaviour?

Edit: I have included macro d. Note: macro r is recorded in macro a.

I am trying to bruteforce the caesar shift cipher in vim. I have recorded two macros f and a, where f copies the line and a applies a caesar shift to all elements on the line. Both macros work fine individually, but when I create a new macro using any other register, the macro doesn't function properly, it doesn't create a new line and appears to only caesar shift the current line.

This is my text file w/ macros#

# abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
# bcdefghijklmnopqrstuvwxyzaBCDEFGHIJKLMNOPQRSTUVWXYZA

"bruteforcing caesar shift cipher w/ vim macros

"input is given at bottom of file

"subroutines
""duplicate bottom line
call:f
yyp

""caesar shift line
call:a
!!wc -c^M0Yuo^[<80>ýapa@d^[<80>ýa0"rDk@r

""caesar shift character
call:d
mfyl3Gpif^[<80><fd>alajyl^[<80><fd>a0"sD1G@s`fvpl


hello world

Edit: the new macro I was referring to was @f@a. The key sequence @f@a works fine but @x where @x=@f@a where x is any register does not behave the same. Can anyone reproduce this behaviour?

Edit: I have included macro d. Note: macro r is recorded in macro a.

I am trying to bruteforce the caesar shift cipher in vim. I have recorded three macros f, a, and d where f copies the line and a applies a caesar shift to all elements on the line by calling macro d which caesar shifts a char. Both macros work fine individually, but when I create a new macro using any other register, the macro doesn't function properly, it doesn't create a new line and appears to only caesar shift the current line.

This is my text file w/ macros#

# abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
# bcdefghijklmnopqrstuvwxyzaBCDEFGHIJKLMNOPQRSTUVWXYZA

"bruteforcing caesar shift cipher w/ vim macros

"input is given at bottom of file

"subroutines
""duplicate bottom line
call:f
yyp

""caesar shift line
call:a
!!wc -c^M0Yuo^[<80>ýapa@d^[<80>ýa0"rDk@r

""caesar shift character
call:d
mfyl3Gpif^[<80><fd>alajyl^[<80><fd>a0"sD1G@s`fvpl


hello world

Edit: the new macro I was referring to was @f@a. The key sequence @f@a works fine but @x where @x=@f@a where x is any register does not behave the same. Can anyone reproduce this behaviour?

Edit: I have included macro d. Note: macro r is recorded in macro a.

added 69 characters in body
Source Link
Loading
Edit: I included macro d. Also note that macro r is created in macro a by typing it and using "rD.
Source Link
Loading
added 1 character in body
Source Link
Loading
added 14 characters in body
Source Link
Loading
added 141 characters in body
Source Link
Loading
added 47 characters in body
Source Link
Loading
Source Link
Loading