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

262 active golfers, 1177 entries

Leaderboard (lowest score wins):
25
#181 - Baptiste Nicolet / @b_nicolet

04/06/2021 at 03:24PM

25
#182 - Bob Jamaro / @JamaroBob

05/11/2021 at 04:26PM

25
#183 - simplelife2010 / @simplelife20101

05/13/2021 at 09:16AM

25
#184 - Paweł Styczewski / @kryspuss

05/19/2021 at 10:51AM

25
#185 - Robert B. / @robsikba

05/21/2021 at 08:25PM

25
#186 - dreamers00 / @dreamers003

05/23/2021 at 06:17PM

25
#187 - バイロン / @Genius_Byron

06/07/2021 at 02:40PM

25
#188 - David Díez / @deslogica

06/10/2021 at 12:43PM

25
#189 - Rick de chez Gnous / @GnousRick

07/09/2021 at 10:13AM

25
#190 - Lean Lunch / @LunchLean

07/30/2021 at 05:47PM

25
#191 - Dwight Clay / @MonkeyGut

08/08/2021 at 05:24PM

25
#192 - Connor / @ronnocthered

08/15/2021 at 02:56AM

25
#193 - Vahan / @Vahan00900245

10/06/2021 at 01:17PM

25
#194 - Ali Aslan / @AliAsla95742367

10/16/2021 at 03:57AM

25
#195 - ココアサ / @zAxLcKjTWc6aP6P

12/03/2021 at 08:03AM

25
#196 - 윤경호 / @GH_Yun2

12/05/2021 at 12:33PM

25
#197 - 勉强掩盖 / @NROOhu88PhVQYLT

01/12/2022 at 11:57AM

25
#198 - mebuh / @mebuh42

03/22/2022 at 08:43PM

25
#199 - Erisian Aspect / @ErisianAspect

05/23/2022 at 11:13PM

25
#200 - Nick Salesky / @NickSalesky

08/13/2022 at 03:55PM

26
#201 - Robert Blackwell / @blackfromchina

03/04/2021 at 12:33AM

26
#202 - Matthieu Cneude / @Cneude_Matthieu

03/21/2021 at 07:22AM

26
#203 - tom / @marlow_th

05/07/2021 at 04:26AM

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

05/07/2021 at 04:13PM

26
#205 - François / @mortyZZ

08/01/2021 at 08:29PM

26
#206 - Armand Coretchi / @armandcoretchi_

08/13/2021 at 02:48PM

26
#207 - Torwin Markov / @TorwinMarkov

11/14/2021 at 06:42PM

26
#208 - Stanisław Ostrowski / @StanisawOstrow4

07/08/2022 at 09:04AM

26
#209 - 우정민 / @jeongmin2021

10/02/2022 at 05:16AM

27
#210 - yu / @mame_shibe

03/04/2021 at 11:50AM