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 83 remaining solutions by signing in and submitting your own entry
#84 Borna Sadeghi / @borna_sadeghi - Score: 53 - 03/01/21 @ 21:01
:s/sublime/vim/g<CR>:s/emacs<BS><BS><BS><BS><BS>s<BS><BS><BS>%s/emacs/vim/g<CR>:wq<CR>

0 comments


Created by: @iviarcio

84 active golfers, 339 entries

Leaderboard (lowest score wins):
20
#31 - xing yang / @yangxing844

05/09/2021 at 03:27PM

21
#32 - Willy / @Willy92273889

02/28/2021 at 10:53PM

21
#33 - Julius Marozas / @JuliusMarozas

03/05/2021 at 11:03PM

21
#34 - Daniel Steinberg / @dstein64

03/22/2021 at 07:40PM

21
#35 - 6cdh / @cd6cdh

03/29/2021 at 02:26PM

21
#36 - Hugo Marrassé / @MarrasseHugo

03/30/2021 at 02:07PM

21
#37 - shaik azhar madar / @azarudu

04/11/2021 at 09:06AM

21
#38 - thundertentronckh / @thundertentron1

05/07/2021 at 11:56PM

21
#39 - Andrea V / @AndreaV35335720

05/12/2021 at 06:17PM

22
#40 - Pedro Medeiros / @DeSpeDro

05/08/2021 at 05:40PM

22
#41 - axnyff / @axnyff

05/11/2021 at 09:12PM

23
#42 - VimGolf / @VimGolf8

03/28/2021 at 02:23PM

23
#43 - Hugo / @hugonini30

03/30/2021 at 02:02PM

23
#44 - Nathan / @Nathan_2504

03/30/2021 at 02:05PM

23
#45 - br_bookbinder / @br_bookbinder

04/28/2021 at 10:17PM

23
#46 - Mobius / @ManiacalMobius

05/10/2021 at 11:04PM

24
#47 - ♪ / @Ymgch_Key

03/24/2021 at 09:31AM

24
#48 - Lescoat Trystan / @LescoatT

03/30/2021 at 02:07PM

24
#49 - BenMedcalf / @BMedcalf_online

04/17/2021 at 02:33AM

24
#50 - Daniel Qu / @danielq9871

05/08/2021 at 02:45PM

24
#51 - Steven / @Hallzy_18

05/10/2021 at 09:02PM

25
#52 - vimgolfer123 / @vimgolfer123

02/28/2021 at 10:47PM

25
#53 - Chinmay Chhajed / @chhajedji

03/01/2021 at 08:55AM

25
#54 - WladDalwM / @WladDalwM

03/01/2021 at 10:08AM

25
#55 - Mathias Chunnoo / @chunnoomathias

03/03/2021 at 10:30AM

25
#56 - foobarbazqux12345 / @foobarbazqux121

03/03/2021 at 03:50PM

25
#57 - I made a video game ✨ / @startresse

03/05/2021 at 07:39AM

25
#58 - Robert Verst / @r_verst

03/15/2021 at 01:04PM

25
#59 - John Smith / @JohnSmi38307095

03/19/2021 at 02:38PM

25
#60 - Awranya / @Awranya1

03/30/2021 at 01:32PM