# Using Emacs to Solve VimGolf Challenges

DevFeed: [Using Emacs to Solve VimGolf Challenges](<https://devfeed.tech/articles/about-vimgolf-34478.md>)

Original publisher: [Read original article](<https://tapoueh.org/blog/2012/11/about-vimgolf/>)

Author: Dimitri Fontaine PostgreSQL Major Contributor; Author

Published: 2012-11-11T19:52:00Z

Content type: tutorial

Language: en

Sources: [Dimitri Fontaine](<https://devfeed.tech/sources/dimitri-fontaine.md>)

Topics: [Emacs](<https://devfeed.tech/topics/emacs.md>), [Vim](<https://devfeed.tech/topics/vim.md>), [Code](<https://devfeed.tech/topics/code.md>), [Lisp](<https://devfeed.tech/topics/lisp.md>), [function](<https://devfeed.tech/topics/function.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [editor](<https://devfeed.tech/tags/editor.md>), [emacs](<https://devfeed.tech/tags/emacs.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [vim](<https://devfeed.tech/tags/vim.md>)

## AI overview

The article discusses solving VimGolf-style editing challenges in Emacs. It presents an approach using Emacs keyboard macros to generate sequential numbers, followed by an Emacs Lisp and regexp-replace technique for converting decimal numbers to hexadecimal.

## Source excerpt

Following some tweet I found myself desultory watching an episode of the awesome VimGolf in Emacs video series by Tim Visher. Those series are about picking some challenge from vimgolf and implementing it with our favorite editor instead. Because Emacs Rocks guys. Let me tell you upfront that I really dislike the whole idea of the vim golf challenge. I've been a user of both Emacs and Vim for many years, and finally decided to switch to living in Emacs; or if you prefer, climbing my way up from level 2 as in The Levels Of Emacs Proficiency. The reason why is that I found that in my case, using Vim would mean spending more time thinking about how to do some editing operation rather than the problem I wanted to solve by editing some text, most often code.