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):
19
#31 - Hossein Yousefi 💙 / @u_hossein

09/06/2021 at 08:26PM

19
#32 - yancy / @yancy_dong

09/22/2021 at 04:21AM

19
#33 - Essgee / @Essgee64887822

10/27/2021 at 03:23PM

19
#34 - migoo / @migoo00668679

11/01/2021 at 09:53AM

19
#35 - TimMcGuire / @mcguire

11/12/2021 at 05:25PM

19
#36 - scpchicken / @scpchick

11/14/2021 at 08:21PM

19
#37 - 야통이 / @gonnanailedit

12/03/2021 at 05:56PM

19
#38 - ys / @SYS_0704

12/05/2021 at 07:13AM

19
#39 - 深窓の令嬢@ドクター / @arbino1031

12/19/2021 at 11:28AM

19
#40 - Sammit / @somemeatjain

01/23/2022 at 11:03AM

19
#41 - blub blub / @xyDZdMNGzWLT

02/05/2022 at 03:35AM

19
#42 - mold mild / @mild_mold

04/02/2022 at 01:02PM

19
#43 - Brian Leung / @brian_leung

04/02/2022 at 05:07PM

19
#44 - 황시준_2771 / @ilPp5j1wfhKSFHr

04/04/2022 at 02:11AM

19
#45 - Choi Eun Chang / @fateflyec

04/04/2022 at 12:55PM

19
#46 - 심우현 / @tmvlem5671

04/05/2022 at 11:06AM

19
#47 - 지형 유 / @O_hr_good7

04/05/2022 at 04:49PM

19
#48 - 벚꽃 / @beojkkoch3

04/09/2022 at 03:03AM

19
#49 - Ji_Hyeong / @PlzstopIT7

04/11/2022 at 03:20PM

19
#50 - 김가윤 / @qweru38010687

04/13/2022 at 11:03AM

19
#51 - co_hyo / @co_hyo

04/14/2022 at 09:13AM

19
#52 - 황다민 / @ghkdekals

04/15/2022 at 05:11PM

19
#53 - 할핳 / @vimgolfYOUNG

04/16/2022 at 03:46AM

19
#54 - 최최대로 / @Jaenedir

04/16/2022 at 06:29AM

19
#55 - 구이공 / @CdP60ouZ6hhcHMG

04/17/2022 at 06:26AM

19
#56 - cho / @cho_liaa

04/17/2022 at 07:38AM

19
#57 - dorianm / @dorianm

05/09/2022 at 12:26AM

19
#58 - FerlySky / @_FerlySky

05/21/2022 at 06:01PM

19
#59 - russellzhaomao / @russellzhaomao

05/22/2022 at 10:41AM

19
#60 - Irakli Chigvaria / @tchigvaria

05/23/2022 at 03:58PM