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 369 remaining solutions by signing in and submitting your own entry
#370 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

370 active golfers, 1658 entries

Leaderboard (lowest score wins):
20
#121 - Humbaba / @humbabu

12/31/2021 at 09:50PM

20
#122 - 준현 / @xpexpe2

03/31/2022 at 04:11PM

20
#123 - redbigyesnoGoThenWhy / @redbigyesno

06/17/2022 at 02:45PM

20
#124 - Peter Nyssen / @PeterNyssen

06/24/2022 at 12:43PM

20
#125 - brett / @brettyukich

08/12/2022 at 03:04PM

20
#126 - math is what I hate / @mpnmbn

09/20/2022 at 04:06PM

20
#127 - Omar Alawadhi / @OmarAla59544225

10/06/2022 at 09:41PM

20
#128 - brandjamie / @brandjamie

01/22/2023 at 04:07PM

20
#129 - 马海洋 / @LG41bT7ZvqOdFl3

02/07/2023 at 09:35PM

20
#130 - Ward Quaghebeur / @WardQuaghebeur

05/22/2023 at 08:50PM

20
#131 - naka / @nak38223985244

07/18/2023 at 12:44PM

20
#132 - Alexandre Huot / @AlexandreHuot1

10/29/2023 at 05:22PM

20
#133 - Trewornan / @Trewornan

02/22/2024 at 11:18AM

20
#134 - EtherFan / @ether_fan

02/25/2024 at 11:17AM

21
#135 - Willy / @Willy92273889

02/28/2021 at 10:53PM

21
#136 - Julius Marozas / @JuliusMarozas

03/05/2021 at 11:03PM

21
#137 - Dan / @dstein64

03/22/2021 at 07:40PM

21
#138 - 6cdh / @cd6cdh

03/29/2021 at 02:26PM

21
#139 - Hugo Marrassé / @MarrasseHugo

03/30/2021 at 02:07PM

21
#140 - shaik azhar madar / @azarudu

04/11/2021 at 09:06AM

21
#141 - thundertentronckh / @thundertentron1

05/07/2021 at 11:56PM

21
#142 - Andrea V / @AndreaV35335720

05/12/2021 at 06:17PM

21
#143 - grosa / @_grosa_

06/10/2021 at 06:48AM

21
#144 - Saurav / @ray__saurav

09/01/2021 at 07:05PM

21
#145 - $HA-|| / @s_k0731

01/01/2022 at 01:47AM

21
#146 - Levi Wheeler / @LeviWhe68726437

05/23/2022 at 10:18PM

21
#147 - Ssu-Yuan Cheng / @szuyuan

09/11/2022 at 04:38PM

21
#148 - Aaron Hunt / @ach5910

09/28/2023 at 03:58AM

21
#149 - Vimgolf User / @VimgolfU

11/28/2023 at 03:04PM

21
#150 - jonas-grobe / @jonas-grobe

02/01/2024 at 10:49PM