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

155 active golfers, 660 entries

Leaderboard (lowest score wins):
19
#31 - Hossein Yousefi 💙 / @u_hossein

09/06/2021 at 08:26PM

20
#32 - せいほう / @FICSQF

03/01/2021 at 11:28AM

20
#33 - Roger Stoltz / @rogsto1

03/01/2021 at 07:52PM

20
#34 - Marcio M Pereira / @iviarcio

03/02/2021 at 06:02PM

20
#35 - Rajit Singh / @rajitbsingh

03/02/2021 at 07:17PM

20
#36 - der tanzbaer / @der_tanzbaer

03/09/2021 at 04:29PM

20
#37 - treb / @treb03683130

03/12/2021 at 01:04PM

20
#38 - Paul Adlene / @AdlenePaul

03/13/2021 at 08:20PM

20
#39 - Jackmarocks / @jackmarocks

03/27/2021 at 07:08PM

20
#40 - Mykola Kharkov / @mykola_kharkov

05/07/2021 at 12:48PM

20
#41 - Ventura / @vetu11

05/08/2021 at 07:58PM

20
#42 - xing yang / @yangxing844

05/09/2021 at 03:27PM

20
#43 - François Marais / @maraisf

05/16/2021 at 05:11PM

20
#44 - grsh / @girish_i_am

05/21/2021 at 02:28PM

20
#45 - Andreas Siegrist / @andreaszwei

06/16/2021 at 02:36PM

20
#46 - neil / @im_needle

06/20/2021 at 11:41AM

20
#47 - Georg Bökman / @BokmanGeorg

07/02/2021 at 12:41PM

20
#48 - Patrick Martin / @PatrickDMartin

07/02/2021 at 10:20PM

20
#49 - 悟史 / @A1OBJTxN5fTg5EJ

07/11/2021 at 12:50PM

20
#50 - Matrices Matlab #1 / @matrices_matlab

07/13/2021 at 11:47AM

20
#51 - すなぎも / @snagimmo

07/15/2021 at 10:26AM

20
#52 - Bspammer / @Bspammer

08/14/2021 at 03:23AM

20
#53 - quemeraisc / @quemeraisc

08/22/2021 at 05:06PM

20
#54 - Neil Butler / @PinkyinParis

08/23/2021 at 01:24AM

21
#55 - Willy / @Willy92273889

02/28/2021 at 10:53PM

21
#56 - Julius Marozas / @JuliusMarozas

03/05/2021 at 11:03PM

21
#57 - Daniel Steinberg / @dstein64

03/22/2021 at 07:40PM

21
#58 - 6cdh / @cd6cdh

03/29/2021 at 02:26PM

21
#59 - Hugo Marrassé / @MarrasseHugo

03/30/2021 at 02:07PM

21
#60 - shaik azhar madar / @azarudu

04/11/2021 at 09:06AM