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

380 active golfers, 1753 entries

Leaderboard (lowest score wins):
26
#271 - François / @mortyZZ

08/01/2021 at 08:29PM

26
#272 - Armand Coretchi / @armandcoretchi_

08/13/2021 at 02:48PM

26
#273 - Torwin Markov / @TorwinMarkov

11/14/2021 at 06:42PM

26
#274 - Stanisław Ostrowski / @StanisawOstrow4

07/08/2022 at 09:04AM

26
#275 - 우정민 / @jeongmin2021

10/02/2022 at 05:16AM

26
#276 - ʋ( = ᴥ =)ʋ / @gianni1986

04/24/2023 at 10:14PM

26
#277 - Peter Szerzo / @peterszerzo

07/06/2023 at 05:51PM

26
#278 - Satya Prakash 🧘🇮🇳🇮🇳🇮🇳 / @shinora007

11/20/2023 at 11:21AM

26
#279 - Dreb / @drebtchinsky

04/04/2024 at 11:41AM

26
#280 - heog / @Heogy

04/04/2024 at 04:11PM

26
#281 - Park Min-Heoyk / @TheStupi

04/12/2024 at 06:09PM

26
#282 - wuwubean / @wuwubean

04/18/2024 at 07:04PM

27
#283 - yu / @mame_shibe

03/04/2021 at 11:50AM

27
#284 - Danny Sanchez / @Dane1410s

03/11/2021 at 01:46AM

27
#285 - Mauricio Tellez / @mtellezj

03/22/2021 at 05:19AM

27
#286 - Eric Link / @elink_tx

03/31/2021 at 02:45AM

27
#287 - herbage / @herbage2

04/02/2021 at 11:13PM

27
#288 - Steph Skardal / @stephskardal

04/16/2021 at 06:09PM

27
#289 - Emiliano Vazquez / @vazquezemiliano

05/07/2021 at 05:29PM

27
#290 - Roy H / @hroy02

05/08/2021 at 02:17PM

27
#291 - joao neto / @joaonet49907796

05/14/2021 at 08:25PM

27
#292 - Kristof bruyninckx / @Kristofbruynin1

05/16/2021 at 01:59PM

27
#293 - N2427B / @N2427B

08/03/2021 at 09:03PM

27
#294 - Rory Smith / @alan0buchanan

09/14/2021 at 09:52PM

27
#295 - Chun Chanjun / @CChanjun

11/19/2021 at 01:44PM

27
#296 - PINGU / @PINGU79544082

12/04/2021 at 01:20PM

27
#297 - Yassine Deghaies / @MDeghaies

01/04/2022 at 07:13AM

27
#298 - POSIX / @po6ix

01/07/2022 at 11:44AM

27
#299 - sfsbeaetwafwear / @sfsbeaetwafwear

01/30/2022 at 03:19PM

27
#300 - emilio / @emilioemmanueI

02/06/2022 at 04:45PM