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

155 active golfers, 660 entries

Leaderboard (lowest score wins):
21
#61 - thundertentronckh / @thundertentron1

05/07/2021 at 11:56PM

21
#62 - Andrea V / @AndreaV35335720

05/12/2021 at 06:17PM

21
#63 - grosa / @_grosa_

06/10/2021 at 06:48AM

21
#64 - Saurav / @ray__saurav

09/01/2021 at 07:05PM

22
#65 - Pedro Medeiros / @DeSpeDro

05/08/2021 at 05:40PM

22
#66 - axnyff / @axnyff

05/11/2021 at 09:12PM

22
#67 - Kevin Keefe / @KevinKeefe5

05/14/2021 at 01:32AM

22
#68 - Calarasanu Andrei / @_fanfani4_

05/19/2021 at 06:36PM

22
#69 - Peter Salvi / @salvipeter

05/21/2021 at 05:30AM

22
#70 - Vgrbwat / @vgrbwat

06/02/2021 at 05:22AM

22
#71 - Dendy / @Dendy7h

06/04/2021 at 07:12AM

22
#72 - loupiot.veloce / @LoupiotVeloce

06/13/2021 at 07:05AM

22
#73 - brent / @brent65628714

07/25/2021 at 02:02PM

22
#74 - Tom / @Toromtomtom

08/11/2021 at 12:39PM

22
#75 - Monte Creasor / @montecreasor

08/20/2021 at 04:18AM

23
#76 - VimGolf / @VimGolf8

03/28/2021 at 02:23PM

23
#77 - Hugo / @hugonini30

03/30/2021 at 02:02PM

23
#78 - Nathan / @Nathan_2504

03/30/2021 at 02:05PM

23
#79 - br_bookbinder / @br_bookbinder

04/28/2021 at 10:17PM

23
#80 - Mobius / @ManiacalMobius

05/10/2021 at 11:04PM

23
#81 - JL T / @l0f4r0

05/15/2021 at 05:45PM

23
#82 - Mark Blakeney / @bulletmark

05/29/2021 at 02:50AM

23
#83 - ouuan / @ouuan

06/15/2021 at 01:20AM

23
#84 - kafang plays vimgolf / @KafangV

06/22/2021 at 12:42PM

23
#85 - Maorun / @Maorun11

06/30/2021 at 08:07AM

23
#86 - Sebastien Nicoud / @sebnukem

07/19/2021 at 12:56AM

23
#87 - e1mnos / @e1mnos

08/10/2021 at 12:16PM

23
#88 - mevmev / @mevmev8

08/12/2021 at 07:53AM

23
#89 - Quentin Leroy / @qnleroy

08/22/2021 at 09:42AM

23
#90 - brandjamie / @brandjamie

08/24/2021 at 09:38PM