Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 603ba26a01b4d00009c10a49

simple replacements

The goal is to see the replacement commands in action.

Start file
The sublime users worked on projects more closed to my own project so I started to
check how they did things and then I started learning about emacs. It was not
cool, it was too hard to learn how to use it, to load new config files I had to
restart emacs every time and so much other problems, but since they did,
I convinced myself that I could learn it too so I did.

I used emacs for a few months and what I like about emacs the most is that it's
optimized for editing files not creating new ones. For the most of the time,
we're editing files and moving between lines of code so that makes sense.
Finally I was happy and productive using emacs.
End file
The vim users worked on projects more closed to my own project so I started to
check how they did things and then I started learning about vim. It was not
cool, it was too hard to learn how to use it, to load new config files I had to
restart vim every time and so much other problems, but since they did,
I convinced myself that I could learn it too so I did.

I used vim for a few months and what I like about vim the most is that it's
optimized for editing files not creating new ones. For the most of the time,
we're editing files and moving between lines of code so that makes sense.
Finally I was happy and productive using vim.

View Diff

1,2c1,2
< The sublime users worked on projects more closed to my own project so I started to
< check how they did things and then I started learning about emacs. It was not
---
> The vim users worked on projects more closed to my own project so I started to
> check how they did things and then I started learning about vim. It was not
4c4
< restart emacs every time and so much other problems, but since they did,
---
> restart vim every time and so much other problems, but since they did,
7c7
< I used emacs for a few months and what I like about emacs the most is that it's
---
> I used vim for a few months and what I like about vim the most is that it's
10c10
< Finally I was happy and productive using emacs.
---
> Finally I was happy and productive using vim.

Solutions

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 398 remaining solutions by signing in and submitting your own entry
#399 D Brody / @DBrody20 - Score: 303 - 06/09/21 @ 14:52
:%s/[ema<BS><BS><BS><BS>sb<BS>ublims<BS>e|emacs<BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS>(sublime|emacs)/vims<BS>/g<CR><Esc><BS>:<Up><Left><Left><Left><Left><Left><Left><BS><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><BS><Right><Right><Right><Right><Right><CR><Esc>:<Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Up><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>\b(?:<Esc>l:<Up><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Left><Left><Left>)<BS><Right>)'<BS>\b<CR>:<Up><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><BS><BS><BS><BS><BS><Right><Left>(<BS><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><BS>]<Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>[<CR>:%s/sublime/vim/gc<BS>|%s/emacs/vim/g<CR>:w<CR>:wq<CR>

0 comments


Created by: @iviarcio

399 active golfers, 1861 entries

Leaderboard (lowest score wins):
27
#331 - Mystic / @aw0D5RUrdmxsylt

04/13/2024 at 06:17PM

27
#332 - κΉ”κΉ” / @dddh8204

04/13/2024 at 11:43PM

27
#333 - yge / @card-yun

04/14/2024 at 09:01AM

27
#334 - jhjhjhoh / @jhjhjhoh

04/14/2024 at 01:07PM

27
#335 - constap / @constap

04/18/2024 at 10:37PM

27
#336 - woozhin / @woozhin

04/01/2025 at 10:29AM

27
#337 - diskeyd / @diskeyd

04/02/2025 at 10:54AM

27
#338 - H / @HarryJh67889409

10/21/2025 at 08:21AM

28
#339 - Louis / @louis_XDD

05/16/2021 at 10:48AM

28
#340 - George Granberry / @JudgeJerj

06/26/2022 at 02:16AM

28
#341 - Ludovic Schwartz / @ludovicschwartz

11/17/2023 at 03:53PM

28
#342 - godjun123 / @godjun123

03/31/2025 at 07:29AM

29
#343 - Sylvain Dangin / @Sylvaner03

05/17/2021 at 07:54PM

29
#344 - Fabian Becker πŸ‡©πŸ‡ͺ / @geekproject

02/10/2022 at 08:25AM

29
#345 - Arif Ardiansyah / @ArsanOfficial

02/22/2022 at 03:49AM

29
#346 - Thomas / @thomasgchd1

10/05/2022 at 12:14PM

29
#347 - Chris Braissant / @braissac

10/18/2023 at 07:48PM

29
#348 - gvnnn / @gvnnn

12/07/2023 at 10:44PM

29
#349 - Adil Akhmetov / @weeebdev

01/19/2024 at 06:12PM

29
#350 - Ian Duggan / @duggani

02/22/2024 at 04:21AM

29
#351 - yveark / @yveark

03/31/2024 at 09:18PM

29
#352 - hribernik / @hribernik

06/11/2024 at 04:26PM

29
#353 - Leeminseong-gif / @Leeminseong-gif

10/18/2025 at 08:06AM

30
#354 - γ¨γ‚‚γ‚Šγ‚“ / @cestom327

03/31/2021 at 01:15PM

30
#355 - Not Your Sandwitch / @NSandwitch

10/13/2021 at 02:30AM

30
#356 - dakmuk / @yeongha_yang

12/28/2022 at 01:44AM

30
#357 - Evan Miao / @laomiao_

03/01/2024 at 03:39AM

31
#358 - Abraham / @Abraham82157002

02/28/2021 at 10:40PM

31
#359 - De0triKs / @De0triKs

03/30/2021 at 02:02PM

31
#360 - MarK Yang / @MarKdeYaNG

01/25/2022 at 11:35AM