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

274 active golfers, 1212 entries

Leaderboard (lowest score wins):
23
#151 - Max Muster / @musterm0815

11/16/2021 at 11:34AM

23
#152 - hector / @w29975700

11/27/2021 at 12:03AM

23
#153 - ya-suke / @ninja__01

02/09/2022 at 12:22PM

23
#154 - Pawel Wenda / @pwlwnd

02/24/2022 at 09:02PM

23
#155 - Gunter Kluge / @KlugeGunter

04/06/2022 at 04:49PM

23
#156 - Ramtin Martin / @martin_ramtin

04/08/2022 at 10:53AM

23
#157 - 그안합 / @asm6788_kor

04/15/2022 at 12:28PM

23
#158 - ._. / @Katharsic

04/24/2022 at 07:30AM

23
#159 - Siddharth Murali / @SidTweetsALess

07/07/2022 at 09:17AM

23
#160 - Kenny / @kennpq

09/12/2022 at 10:53AM

24
#161 - ♪ / @Ymgch_Key

03/24/2021 at 09:31AM

24
#162 - Lescoat Trystan / @LescoatT

03/30/2021 at 02:07PM

24
#163 - BenMedcalf / @BMedcalf_online

04/17/2021 at 02:33AM

24
#164 - Daniel Qu / @danielq9871

05/08/2021 at 02:45PM

24
#165 - Steven / @Hallzy_18

05/10/2021 at 09:02PM

24
#166 - ThatGuyWithAWeirdHat / @Mousakaaa

07/16/2021 at 10:29PM

24
#167 - Winston / @sequentialchaos

10/29/2021 at 02:56PM

24
#168 - Snurli / @Snurlipus

11/23/2021 at 09:57PM

24
#169 - Javier Contreras / @contranton

05/04/2022 at 07:03PM

24
#170 - seenz / @lefton_sean

05/14/2022 at 09:00PM

24
#171 - potatol33t / @potatol33t

08/05/2022 at 10:10PM

25
#172 - vimgolfer123 / @vimgolfer123

02/28/2021 at 10:47PM

25
#173 - Chinmay Chhajed / @chhajedji

03/01/2021 at 08:55AM

25
#174 - WladDalwM / @WladDalwM

03/01/2021 at 10:08AM

25
#175 - Mathias Chunnoo / @chunnoomathias

03/03/2021 at 10:30AM

25
#176 - foobarbazqux12345 / @foobarbazqux121

03/03/2021 at 03:50PM

25
#177 - ✨ / @startresse

03/05/2021 at 07:39AM

25
#178 - Robert Verst / @r_verst

03/15/2021 at 01:04PM

25
#179 - John Smith / @JohnSmi38307095

03/19/2021 at 02:38PM

25
#180 - Awranya / @Awranya1

03/30/2021 at 01:32PM