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 5f0f5fbe280fbf000c233304

Add quotes to ansible playbook

You created an ansible playbook, but forgot to add quotes. Can you fix it?

Start file
---
- hosts: all
  vars
:
    ssh_state
: True
  tasks
:
   
- name: Manage openssh
     
package:
        name
: openssh
        state
: {{ ssh_state }}
End file
---
- hosts: all
  vars
:
    ssh_state
: True
  tasks
:
   
- name: Manage openssh
     
package:
        name
: openssh
        state
: "{{ ssh_state }}"

View Diff

9c9
<         state: {{ ssh_state }}
---
>         state: "{{ ssh_state }}"

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 315 remaining solutions by signing in and submitting your own entry
#316 Corentin Leriche / @LericheCorentin - Score: 47 - 01/03/23 @ 15:53
<Down><Down><Down><Down><Down><Down><Down><Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right>i"<Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right>"<Esc>:wq!<CR>

0 comments


Created by: @__dadav__

316 active golfers, 1007 entries

Leaderboard (lowest score wins):
9
#181 - Graeme Smith / @InstaGraeme

01/19/2022 at 05:36PM

9
#182 - D. 👋 / @DCT_cpp

02/09/2022 at 01:54PM

9
#183 - Matthias Bartsch 🏠 / @MBartsch

02/21/2022 at 06:45PM

9
#184 - 534 / @usless534

03/19/2022 at 11:12PM

9
#185 - onkeL / @onkeL_cs

03/20/2022 at 12:05AM

9
#186 - 그안합 / @asm6788_kor

04/01/2022 at 09:50AM

9
#187 - 황시준_2771 / @ilPp5j1wfhKSFHr

04/04/2022 at 03:16AM

9
#188 - Choi Eun Chang / @fateflyec

04/04/2022 at 10:52AM

9
#189 - 최최대로 / @Jaenedir

04/16/2022 at 05:00AM

9
#190 - 박승민 / @tmdals5512

04/17/2022 at 08:51AM

9
#191 - dorianm / @dorianm

05/08/2022 at 12:24AM

9
#192 - Einn Seinn / @EinnSeinn

07/29/2022 at 07:37PM

9
#193 - Andrii Romashchenko / @aromarom64

10/25/2022 at 09:50AM

9
#194 - Omar Alawadhi / @OmarAla59544225

10/28/2022 at 07:11PM

9
#195 - e_e / @eleloi

02/13/2023 at 10:18PM

9
#196 - Jakob Föger / @drvolcano86

02/17/2023 at 12:57PM

9
#197 - Иван / @wansmer

04/21/2023 at 06:42AM

9
#198 - Aayush Dutt / @AayushDutt

07/11/2023 at 12:55AM

9
#199 - Luoyb / @Luoyb

10/26/2023 at 01:59AM

9
#200 - naka / @nak38223985244

11/23/2023 at 05:53AM

9
#201 - k84d / @k84d

01/29/2024 at 03:14PM

9
#202 - EtherFan / @ether_fan

02/25/2024 at 04:39PM

9
#203 - かみひろ / @km_hr

03/30/2024 at 01:47AM

9
#204 - cjchun3616 / @cjchun3616

04/04/2024 at 10:00AM

9
#205 - persona-twotwo / @persona-twotwo

04/08/2024 at 02:55AM

9
#206 - Some-thing / @AngolMinsu

04/08/2024 at 11:51AM

9
#207 - HeyJunN / @HeyJunN

04/08/2024 at 01:16PM

9
#208 - 유채운 / @painkiller_2357

04/12/2024 at 06:40AM

9
#209 - Kimchanyuuu / @Kimchanyuuu

04/12/2024 at 04:29PM

9
#210 - qaz2222 / @qaz2222

04/13/2024 at 12:06PM