Share repeated settings

JavaScript · Intermediate · Brace text objects · yank and put · search · builds on Copy and move text

Move settings that repeat into one shared value, and leave the one that's different alone.

Task

File: src/logging.js

What to do

    0keys

    Keyboard shortcuts
    Ctrl+Enter
    Check the result
    Ctrl+Alt+U
    Undo the last change
    Ctrl+Alt+H
    Show the next hint
    Ctrl+Alt+R
    Start this challenge again
    Ctrl+Alt+N
    Another challenge
    Ctrl+Alt+K⌃⌥K
    Show the keyboard shortcuts
    Ctrl+Alt+F⌃⌥F
    Turn focus mode on or off
    Ctrl+Alt+S⌃⌥S
    Open the editor settings
    Enter
    Go on to another challenge after you finish

    The Ctrl+Alt shortcuts don't clash with Vim's own keys. On a Mac, use Control and Option.

    Your textVim mode: Normal

    Make it look like this

    Your text is saved in this browser as you edit. Finished challenges count toward your progress, and they sync to your account when you're signed in.