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
#61 - xtncl / @xtncl

06/10/2022 at 09:19PM

19
#62 - Alex / @AlexanderHeatl2

07/06/2022 at 07:30PM

19
#63 - An Pan / @AnPan13076565

07/28/2022 at 05:26PM

19
#64 - Brandon / @Brandon10678836

08/30/2022 at 04:12PM

19
#65 - Janzen / @__Coos

10/07/2022 at 06:30AM

19
#66 - Topvimgolf Score / @topvimgolfscore

10/18/2022 at 06:34AM

19
#67 - limboste / @limboste

10/28/2022 at 04:00AM

19
#68 - ky05uk3 / @kyo89347563

11/28/2022 at 01:37AM

19
#69 - Dank City / @ddankcity

12/12/2022 at 03:30PM

19
#70 - Balthazar Harnawe / @HotNastySpeed

04/07/2023 at 04:38PM

19
#71 - Selvaganapathy P / @canabady

04/18/2023 at 03:04AM

19
#72 - rserch / @rserch3r

05/28/2023 at 06:12AM

19
#73 - Maarten Craeynest / @Maarten_Cr

06/29/2023 at 06:34PM

19
#74 - Monkey Boy / @monkey29089

09/24/2023 at 05:38AM

19
#75 - 済木・R・A / @SAIKI_R_A

10/06/2023 at 05:24PM

19
#76 - 7733865@qq.com / @tjxwg

10/09/2023 at 01:32PM

19
#77 - Laurens De la Marche / @LaurensDLM

10/18/2023 at 01:14PM

19
#78 - Luoyb / @Luoyb

10/24/2023 at 01:23AM

19
#79 - Sergej Karavajnij / @basyanya_sk

11/06/2023 at 07:26PM

19
#80 - tien / @tien40766111

12/03/2023 at 08:10AM

19
#81 - asirago / @asiragoo

12/06/2023 at 04:12AM

19
#82 - Rubén Salvador García San Juan / @sigfriedCub1990

12/06/2023 at 08:13PM

19
#83 - satake0916 / @satake0916

12/30/2023 at 02:53AM

19
#84 - egitto / @egitto

01/08/2024 at 09:53PM

19
#85 - epsilonshnepsilon / @epsilonshnepsilon

01/16/2024 at 03:35PM

19
#86 - Caesar 🏴󠁧󠁢󠁷󠁬󠁳󠁿 / @NotRexButCaesar

01/16/2024 at 11:17PM

19
#87 - Matthew Wilson / @spookypanda7

03/25/2024 at 03:18AM

19
#88 - Felix Heilmeyer / @heilerich

03/30/2024 at 10:41AM

19
#89 - Peppa Pig / @PeppaPigSg

04/06/2024 at 06:39AM

19
#90 - 유채운 / @painkiller_2357

04/12/2024 at 04:29PM