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

85 active golfers, 340 entries

Leaderboard (lowest score wins):
25
#61 - Karim DRIDI / @kdridi

03/30/2021 at 01:56PM

25
#62 - Lorenzo Mathis / @LorenzoMathis17

03/30/2021 at 02:03PM

25
#63 - Baptiste Nicolet / @b_nicolet

04/06/2021 at 03:24PM

25
#64 - Bob Jamaro / @JamaroBob

05/11/2021 at 04:26PM

25
#65 - simplelife2010 / @simplelife20101

05/13/2021 at 09:16AM

26
#66 - Robert Blackwell / @blackfromchina

03/04/2021 at 12:33AM

26
#67 - Matthieu Cneude / @Cneude_Matthieu

03/21/2021 at 07:22AM

26
#68 - tom / @marlow_th

05/07/2021 at 04:26AM

26
#69 - Protect the economy. Work at work. / @mrcornflakes

05/07/2021 at 04:13PM

27
#70 - yu / @mame_shibe

03/04/2021 at 11:50AM

27
#71 - Danny Sanchez / @Dane1410s

03/11/2021 at 01:46AM

27
#72 - Mauricio Tellez / @mtellezj

03/22/2021 at 05:19AM

27
#73 - Eric Link / @elink_tx

03/31/2021 at 02:45AM

27
#74 - herbage / @herbage2

04/02/2021 at 11:13PM

27
#75 - Steph Skardal / @stephskardal

04/16/2021 at 06:09PM

27
#76 - Emiliano Vazquez / @vazquezemiliano

05/07/2021 at 05:29PM

27
#77 - Roy H / @hroy02

05/08/2021 at 02:17PM

30
#78 - ともりん / @cestom327

03/31/2021 at 01:15PM

31
#79 - Abraham / @Abraham82157002

02/28/2021 at 10:40PM

31
#80 - De0triKs / @De0triKs

03/30/2021 at 02:02PM

32
#81 - Sébastien Lavoie / @sgdlavoie

03/03/2021 at 02:51AM

35
#82 - Ayush Mandowara / @Ayushxx7

03/03/2021 at 07:30PM

45
#83 - Kevin Keefe / @KevinKeefe5

05/14/2021 at 01:23AM

51
#84 - lei4519 / @lei4519

03/02/2021 at 09:03AM

53
#85 - Borna Sadeghi / @borna_sadeghi

03/01/2021 at 09:01PM