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):
27
#301 - Qther / @qtherlol

10/12/2022 at 01:17PM

27
#302 - Vinay Sridhar / @kewllip

03/11/2023 at 06:51PM

27
#303 - HuberyWang / @HuberyWang1

03/26/2023 at 10:32AM

27
#304 - Ian Horton / @IAMIANHORTON

04/20/2023 at 07:16AM

27
#305 - Spam Mail / @mrfdot

05/26/2023 at 01:08AM

27
#306 - Olivier Bégassat / @zk_evm

05/27/2023 at 09:14PM

27
#307 - Jake Shomer / @ShomerJake

08/10/2023 at 03:32PM

27
#308 - r4d1um / @r4d1um

08/10/2023 at 09:16PM

27
#309 - 李建宏 / @xx19971016

09/04/2023 at 12:14AM

27
#310 - Jorge Peña / @wkynrocks

02/21/2024 at 11:40PM

27
#311 - Patrick Cheng / @patcheng

03/31/2024 at 07:46PM

27
#312 - persona-twotwo / @persona-twotwo

04/08/2024 at 04:44AM

27
#313 - 녹법칙 / @Rules_of_Green

04/08/2024 at 10:32AM

27
#314 - HeyJunN / @HeyJunN

04/08/2024 at 01:34PM

27
#315 - Dal_Peng / @dalpang81

04/09/2024 at 03:13PM

27
#316 - qaz2222 / @qaz2222

04/13/2024 at 12:03PM

27
#317 - jiwon_kim / @Ji1WonKim

04/13/2024 at 12:09PM

27
#318 - rkrkrkwk / @rkrkrkwk

04/13/2024 at 02:05PM

27
#319 - Mystic / @aw0D5RUrdmxsylt

04/13/2024 at 06:17PM

27
#320 - 깔깔 / @dddh8204

04/13/2024 at 11:43PM

27
#321 - yge / @card-yun

04/14/2024 at 09:01AM

27
#322 - jhjhjhoh / @jhjhjhoh

04/14/2024 at 01:07PM

27
#323 - constap / @constap

04/18/2024 at 10:37PM

28
#324 - Louis / @louis_XDD

05/16/2021 at 10:48AM

28
#325 - George Granberry / @JudgeJerj

06/26/2022 at 02:16AM

28
#326 - Ludovic Schwartz / @ludovicschwartz

11/17/2023 at 03:53PM

29
#327 - Sylvain Dangin / @Sylvaner03

05/17/2021 at 07:54PM

29
#328 - Fabian Becker 🇩🇪 / @geekproject

02/10/2022 at 08:25AM

29
#329 - Arif Ardiansyah / @ArsanOfficial

02/22/2022 at 03:49AM

29
#330 - Thomas / @thomasgchd1

10/05/2022 at 12:14PM