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

381 active golfers, 1762 entries

Leaderboard (lowest score wins):
25
#241 - Paweł Styczewski / @kryspuss

05/19/2021 at 10:51AM

25
#242 - Robert B. / @robsikba

05/21/2021 at 08:25PM

25
#243 - dreamers00 / @dreamers003

05/23/2021 at 06:17PM

25
#244 - バイロン / @Genius_Byron

06/07/2021 at 02:40PM

25
#245 - David Díez / @deslogica

06/10/2021 at 12:43PM

25
#246 - Rick de chez Gnous / @GnousRick

07/09/2021 at 10:13AM

25
#247 - Lean Lunch / @LunchLean

07/30/2021 at 05:47PM

25
#248 - Dwight Clay / @MonkeyGut

08/08/2021 at 05:24PM

25
#249 - Connor / @ronnocthered

08/15/2021 at 02:56AM

25
#250 - Vahan / @Vahan00900245

10/06/2021 at 01:17PM

25
#251 - Ali Aslan / @AliAsla95742367

10/16/2021 at 03:57AM

25
#252 - ココアサ / @zAxLcKjTWc6aP6P

12/03/2021 at 08:03AM

25
#253 - 윤경호 / @GH_Yun2

12/05/2021 at 12:33PM

25
#254 - 勉强掩盖 / @NROOhu88PhVQYLT

01/12/2022 at 11:57AM

25
#255 - mebuh / @mebuh42

03/22/2022 at 08:43PM

25
#256 - Erisian Aspect / @ErisianAspect

05/23/2022 at 11:13PM

25
#257 - Nick Salesky / @NickSalesky

08/13/2022 at 03:55PM

25
#258 - nivethan / @nivethan_me

12/19/2022 at 06:29PM

25
#259 - lex / @aludeman

02/25/2023 at 02:13AM

25
#260 - RosaTryp / @RosaTryp

03/14/2023 at 02:36PM

25
#261 - clausvestergaard / @clausvestergaard

04/05/2024 at 06:03AM

25
#262 - CeevoGreen / @CeevoG

04/06/2024 at 11:33AM

25
#263 - TANN1N / @TANN1N

04/12/2024 at 07:03AM

25
#264 - Kanmuruuruu / @Kanmuruuruu

04/15/2024 at 06:03AM

25
#265 - kamrinbains / @kamrinbains

05/08/2024 at 08:53PM

25
#266 - Pankaj Pansari / @pankajpansari

05/12/2024 at 03:36PM

25
#267 - Bùi Lê Huỳnh / @wyattbui

06/11/2024 at 02:35PM

26
#268 - Robert Blackwell / @blackfromchina

03/04/2021 at 12:33AM

26
#269 - Matthieu Cneude / @Cneude_Matthieu

03/21/2021 at 07:22AM

26
#270 - tom / @marlow_th

05/07/2021 at 04:26AM