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

389 active golfers, 1793 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

19
#18 - Kurtis D. Miller / @phdkurt

05/03/2021 at 01:43PM

19
#19 - Marcus Stewart / @marcu5_5tewart

05/04/2021 at 04:51PM

19
#20 - Sven Kõiv / @KoivSven

05/08/2021 at 10:21PM

19
#21 - Ray Dennis / @raysden

05/19/2021 at 01:32PM

19
#22 - Hugh / @haquaman

05/25/2021 at 11:04PM

19
#23 - Jianfeng / @Jianfen22425058

05/28/2021 at 02:32AM

19
#24 - sap / @sap38838304

06/30/2021 at 07:02PM

19
#25 - noname / @1____NULL____0

07/12/2021 at 05:58PM

19
#26 - noam teyssier / @noamteyssier

07/19/2021 at 12:08AM

19
#27 - Ochirsum / @Ochirsum11

08/11/2021 at 04:06PM

19
#28 - Roman Privalov / @RomanPrivalov

08/23/2021 at 06:07PM

19
#29 - Michael Elias / @mikowl

08/23/2021 at 11:15PM

19
#30 - Shreeram / @Shrimpraam

08/24/2021 at 02:57AM