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

64 active golfers, 243 entries

Leaderboard (lowest score wins):
19
#1 - Jon Krause / @jkrause314

02/28/2021 at 05:05PM

19
#2 - John Braxler / @braxler

02/28/2021 at 10:00PM

19
#3 - Eric Söderström / @eksoderstrom

02/28/2021 at 10:12PM

19
#4 - Smylers / @Smylers2

03/02/2021 at 07:03AM

19
#5 - Martin LOUAZEL / @Zbrahark

03/02/2021 at 08:05AM

19
#6 - mandophysics / @mandophysics

03/05/2021 at 09:02PM

19
#7 - roudens / @roudens2

03/06/2021 at 12:41AM

19
#8 - AAbraxas / @AAbraxas1

03/08/2021 at 09:37PM

19
#9 - A A A / @37fatos

03/11/2021 at 10:01PM

19
#10 - a b c / @abc41115243

03/12/2021 at 11:59AM

19
#11 - Tuure / @tuure_p

03/15/2021 at 03:32AM

19
#12 - maxtong / @maxtong1987

03/15/2021 at 09:28AM

19
#13 - chocolate / @chocola81394123

03/18/2021 at 06:54AM

19
#14 - pikjes / @pikjes2

03/20/2021 at 07:14PM

19
#15 - Joshua Marple / @JoshuaMarple1

03/26/2021 at 05:03PM

19
#16 - Curt Matz / @sitrucz

04/07/2021 at 07:16PM

19
#17 - kyoosiklee / @kyoosiklee

04/10/2021 at 03:19PM

20
#18 - せいほう / @FICSQF

03/01/2021 at 11:28AM

20
#19 - Roger Stoltz / @rogsto1

03/01/2021 at 07:52PM

20
#20 - Marcio M Pereira / @iviarcio

03/02/2021 at 06:02PM

20
#21 - Rajit Singh / @rajitbsingh

03/02/2021 at 07:17PM

20
#22 - der tanzbaer / @der_tanzbaer

03/09/2021 at 04:29PM

20
#23 - treb / @treb03683130

03/12/2021 at 01:04PM

20
#24 - Paul Adlene / @AdlenePaul

03/13/2021 at 08:20PM

20
#25 - Jackmarocks / @jackmarocks

03/27/2021 at 07:08PM

21
#26 - Willy / @Willy92273889

02/28/2021 at 10:53PM

21
#27 - Julius Marozas / @JuliusMarozas

03/05/2021 at 11:03PM

21
#28 - Daniel Steinberg / @dstein64

03/22/2021 at 07:40PM

21
#29 - 6cdh / @cd6cdh

03/29/2021 at 02:26PM

21
#30 - Hugo Marrassé / @MarrasseHugo

03/30/2021 at 02:07PM