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

377 active golfers, 1706 entries

Leaderboard (lowest score wins):
25
#241 - Rick de chez Gnous / @GnousRick

07/09/2021 at 10:13AM

25
#242 - Lean Lunch / @LunchLean

07/30/2021 at 05:47PM

25
#243 - Dwight Clay / @MonkeyGut

08/08/2021 at 05:24PM

25
#244 - Connor / @ronnocthered

08/15/2021 at 02:56AM

25
#245 - Vahan / @Vahan00900245

10/06/2021 at 01:17PM

25
#246 - Ali Aslan / @AliAsla95742367

10/16/2021 at 03:57AM

25
#247 - ココアサ / @zAxLcKjTWc6aP6P

12/03/2021 at 08:03AM

25
#248 - 윤경호 / @GH_Yun2

12/05/2021 at 12:33PM

25
#249 - 勉强掩盖 / @NROOhu88PhVQYLT

01/12/2022 at 11:57AM

25
#250 - mebuh / @mebuh42

03/22/2022 at 08:43PM

25
#251 - Erisian Aspect / @ErisianAspect

05/23/2022 at 11:13PM

25
#252 - Nick Salesky / @NickSalesky

08/13/2022 at 03:55PM

25
#253 - nivethan / @nivethan_me

12/19/2022 at 06:29PM

25
#254 - lex / @aludeman

02/25/2023 at 02:13AM

25
#255 - RosaTryp / @RosaTryp

03/14/2023 at 02:36PM

25
#256 - clausvestergaard / @clausvestergaard

04/05/2024 at 06:03AM

25
#257 - CeevoGreen / @CeevoG

04/06/2024 at 11:33AM

25
#258 - TANN1N / @TANN1N

04/12/2024 at 07:03AM

25
#259 - Kanmuruuruu / @Kanmuruuruu

04/15/2024 at 06:03AM

25
#260 - kamrinbains / @kamrinbains

05/08/2024 at 08:53PM

25
#261 - Pankaj Pansari / @pankajpansari

05/12/2024 at 03:36PM

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

06/11/2024 at 02:35PM

26
#263 - Robert Blackwell / @blackfromchina

03/04/2021 at 12:33AM

26
#264 - Matthieu Cneude / @Cneude_Matthieu

03/21/2021 at 07:22AM

26
#265 - tom / @marlow_th

05/07/2021 at 04:26AM

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

05/07/2021 at 04:13PM

26
#267 - François / @mortyZZ

08/01/2021 at 08:29PM

26
#268 - Armand Coretchi / @armandcoretchi_

08/13/2021 at 02:48PM

26
#269 - Torwin Markov / @TorwinMarkov

11/14/2021 at 06:42PM

26
#270 - Stanisław Ostrowski / @StanisawOstrow4

07/08/2022 at 09:04AM