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

156 active golfers, 670 entries

Leaderboard (lowest score wins):
23
#91 - brandjamie / @brandjamie

08/24/2021 at 09:38PM

24
#92 - ♪ / @Ymgch_Key

03/24/2021 at 09:31AM

24
#93 - Lescoat Trystan / @LescoatT

03/30/2021 at 02:07PM

24
#94 - BenMedcalf / @BMedcalf_online

04/17/2021 at 02:33AM

24
#95 - Daniel Qu / @danielq9871

05/08/2021 at 02:45PM

24
#96 - Steven / @Hallzy_18

05/10/2021 at 09:02PM

24
#97 - ThatGuyWithAWeirdHat / @Mousakaaa

07/16/2021 at 10:29PM

25
#98 - vimgolfer123 / @vimgolfer123

02/28/2021 at 10:47PM

25
#99 - Chinmay Chhajed / @chhajedji

03/01/2021 at 08:55AM

25
#100 - WladDalwM / @WladDalwM

03/01/2021 at 10:08AM

25
#101 - Mathias Chunnoo / @chunnoomathias

03/03/2021 at 10:30AM

25
#102 - foobarbazqux12345 / @foobarbazqux121

03/03/2021 at 03:50PM

25
#103 - I made a video game ✨ / @startresse

03/05/2021 at 07:39AM

25
#104 - Robert Verst / @r_verst

03/15/2021 at 01:04PM

25
#105 - John Smith / @JohnSmi38307095

03/19/2021 at 02:38PM

25
#106 - Awranya / @Awranya1

03/30/2021 at 01:32PM

25
#107 - Karim DRIDI / @kdridi

03/30/2021 at 01:56PM

25
#108 - Lorenzo Mathis / @LorenzoMathis17

03/30/2021 at 02:03PM

25
#109 - Baptiste Nicolet / @b_nicolet

04/06/2021 at 03:24PM

25
#110 - Bob Jamaro / @JamaroBob

05/11/2021 at 04:26PM

25
#111 - simplelife2010 / @simplelife20101

05/13/2021 at 09:16AM

25
#112 - Paweł Styczewski / @kryspuss

05/19/2021 at 10:51AM

25
#113 - Robert B. / @robsikba

05/21/2021 at 08:25PM

25
#114 - dreamers00 / @dreamers003

05/23/2021 at 06:17PM

25
#115 - バイロン / @Genius_Byron

06/07/2021 at 02:40PM

25
#116 - David Díez / @deslogica

06/10/2021 at 12:43PM

25
#117 - Rick de chez Gnous / @GnousRick

07/09/2021 at 10:13AM

25
#118 - Lean Lunch / @LunchLean

07/30/2021 at 05:47PM

25
#119 - Dwight Clay / @MonkeyGut

08/08/2021 at 05:24PM

25
#120 - Connor / @ronnocthered

08/15/2021 at 02:56AM