---
title: "Comment by LAST on \"Advent Of Vim, Episode 1\" | Hashnode"
description: "I think you might be missing one backslash before the eval stuff in the &quot;1.2Part1 Second method...&quot; part, step 3, :%s/.*/=eval(submatch(0)) . I&#39;m"
url: "https://hashnode.com/posts/how-to-solve-advent-of-code-using-only-vim-episode-1/6570e6ab308afabeeaf214f6/comment/6576c68c32862421fbab7afe"
---

[Discussion](https://hashnode.com/posts/how-to-solve-advent-of-code-using-only-vim-episode-1/6570e6ab308afabeeaf214f6)

Comment [Advent Of Vim, Episode 1](https://hashnode.com/posts/how-to-solve-advent-of-code-using-only-vim-episode-1/6570e6ab308afabeeaf214f6)

[LAST](https://hashnode.com/@last7617)

[Dec 11, 2023](https://hashnode.com/posts/how-to-solve-advent-of-code-using-only-vim-episode-1/6570e6ab308afabeeaf214f6/comment/6576c68c32862421fbab7afe)

I think you might be missing one backslash before the `eval` stuff in the "1.2Part1 Second method..." part, step 3, `:%s/.*/=eval(submatch(0))`. I'm new to vimscript, sorry if I'm wrong about it.

[Nedal](https://hashnode.com/@cipherlogs)

[Dec 11, 2023](https://hashnode.com/posts/how-to-solve-advent-of-code-using-only-vim-episode-1/6570e6ab308afabeeaf214f6/comment/6576c68c32862421fbab7afe#reply-6576c7e732862421fbab8950)

That's true, I forgot to escape the expression register `=`. Thank you.
