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

390 active golfers, 1802 entries

Leaderboard (lowest score wins):
22
#181 - lazely / @lazely

04/14/2024 at 07:33AM

23
#182 - VimGolf / @VimGolf8

03/28/2021 at 02:23PM

23
#183 - Hugo / @hugonini30

03/30/2021 at 02:02PM

23
#184 - Nathan / @Nathan_2504

03/30/2021 at 02:05PM

23
#185 - br_bookbinder / @br_bookbinder

04/28/2021 at 10:17PM

23
#186 - Mobius / @ManiacalMobius

05/10/2021 at 11:04PM

23
#187 - JL T / @l0f4r0

05/15/2021 at 05:45PM

23
#188 - Mark Blakeney / @bulletmark

05/29/2021 at 02:50AM

23
#189 - ouuan / @ouuan

06/15/2021 at 01:20AM

23
#190 - kafang plays vimgolf / @KafangV

06/22/2021 at 12:42PM

23
#191 - Maorun / @Maorun11

06/30/2021 at 08:07AM

23
#192 - Sebastien Nicoud / @sebnukem

07/19/2021 at 12:56AM

23
#193 - e1mnos / @e1mnos

08/10/2021 at 12:16PM

23
#194 - Quentin Leroy / @qnleroy

08/22/2021 at 09:42AM

23
#195 - ufo / @objfly

09/25/2021 at 09:41PM

23
#196 - preethamrn / @preethamrn

10/22/2021 at 07:16AM

23
#197 - Max Muster / @musterm0815

11/16/2021 at 11:34AM

23
#198 - hector / @w29975700

11/27/2021 at 12:03AM

23
#199 - ya-suke / @ysxninja

02/09/2022 at 12:22PM

23
#200 - Pawel Wenda / @pwlwnd

02/24/2022 at 09:02PM

23
#201 - Gunter Kluge / @KlugeGunter

04/06/2022 at 04:49PM

23
#202 - Ramtin Martin / @martin_ramtin

04/08/2022 at 10:53AM

23
#203 - 그안합 / @asm6788_kor

04/15/2022 at 12:28PM

23
#204 - ._. / @Katharsic

04/24/2022 at 07:30AM

23
#205 - Siddharth Murali / @SidTweetsALess

07/07/2022 at 09:17AM

23
#206 - Kenny / @kennpq

09/12/2022 at 10:53AM

23
#207 - Torin Rudeen / @torinmr

11/28/2023 at 12:40AM

23
#208 - Adrián Fidalgo-Díaz / @adrianFD22

12/16/2023 at 11:04AM

23
#209 - Cindy Zhang / @zcin

01/06/2024 at 12:30AM

23
#210 - Caetano Sauer / @caetanosauer

01/15/2024 at 09:58AM