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 4ef209ef78702b0001000019

Make it more readable

Insert blank lines to make it more organized and readable

Start file
#Set the global prefix key to C-q (default is C-b)
set-option -g prefix C-q
bind
-key C-q last-window
# Remove default binding since we’re replacing
unbind
%
bind
| split-window -h
bind
- split-window -v
# Set status bar
set -g status-bg black
set -g status-fg white
set -g status-left '#[fg=green]#H'
# Highlight active window
set-window-option -g window-status-current-bg red
set -g status-right '#[fg=yellow]#(uptime | cut -d "," -f 2-)'
# Set window notifications
setw
-g monitor-activity on
set -g visual-activity on
# Automatically set window title
setw
-g automatic-rename
End file
#Set the global prefix key to C-q (default is C-b)
set-option -g prefix C-q
bind
-key C-q last-window


# Remove default binding since we’re replacing
unbind
%
bind
| split-window -h
bind
- split-window -v


# Set status bar
set -g status-bg black
set -g status-fg white
set -g status-left '#[fg=green]#H'


# Highlight active window
set-window-option -g window-status-current-bg red
set -g status-right '#[fg=yellow]#(uptime | cut -d "," -f 2-)'


# Set window notifications
setw
-g monitor-activity on
set -g visual-activity on


# Automatically set window title
setw
-g automatic-rename

View Diff

3a4,5
>
>
7a10,11
>
>
11a16,17
>
>
14a21,22
>
>
17a26,27
>
>

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 651 remaining solutions by signing in and submitting your own entry
#652 Brandon Height / @Lask0x - Score: 93 - 08/08/17 @ 15:33
:2,$s/^#/\r\r#/<CR><Esc>u<Up><Up><Up><Up><Esc>:2,s$/^#/\r\r#<CR>y<Esc>u<Esc>:<Up><C-A><Right><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS>$s<Esc><Esc><Esc>ssss<Esc>uus<Esc>u<Esc>:2,$s,<BS>/^#/\r\r#<CR>ZZ

0 comments


Created by: @alimoeeny

652 active golfers, 2009 entries

Leaderboard (lowest score wins):
17
#421 - Sergi Sorribas / @lerovitch

12/22/2011 at 12:34PM

17
#422 - 0x5042 / @0x5042

12/24/2011 at 07:40AM

17
#423 - Thijs Brobbel / @tiesmaster

12/28/2011 at 04:04PM

17
#424 - Dj Vimgolf / @dj_vimgolf

12/31/2011 at 12:49AM

17
#425 - Raj Sahae / @rajsahae

01/02/2012 at 10:31PM

17
#426 - Dave E / @DaveRElliott

01/04/2012 at 11:29PM

17
#427 - Burkhard Zimmermann / @BurkZimm

01/06/2012 at 01:28PM

17
#428 - Matt Woelk / @MattWoelk

01/12/2012 at 05:52AM

17
#429 - Forrest L Norvell / @othiym23

01/27/2012 at 11:43AM

17
#430 - Ethan / @ethanmiller

01/31/2012 at 12:09AM

17
#431 - SeanPlusPlus / @SeanPlusPlus

01/31/2012 at 06:55AM

17
#432 - Chris Geihsler / @seejee

01/31/2012 at 10:58PM

17
#433 - はなたん / @hntn

02/04/2012 at 01:22AM

17
#434 - John Ford / @GhettoCode

02/04/2012 at 03:01AM

17
#435 - Kevin Hamer / @khamer

02/14/2012 at 12:47AM

17
#436 - Dan Huang / @yuzeh

02/16/2012 at 07:22PM

17
#437 - Scott Schlesier / @sschlesier

02/22/2012 at 08:00AM

17
#438 - Leon Miller-Out / @leonmo

03/06/2012 at 03:34PM

17
#439 - Michał Wróbel / @sparrovv_

03/14/2012 at 12:20AM

17
#440 - Vamshi Krishna / @pvamshi

04/04/2012 at 10:35AM

17
#441 - Christian Helbling / @friendly_coder

04/08/2012 at 06:49PM

17
#442 - Tobias Sjösten / @tobiassjosten

04/24/2012 at 06:28PM

17
#443 - Sean Todd / @descentintomael

04/28/2012 at 05:09AM

17
#444 - lauri lehmijoki / @laurilehmijoki

06/02/2012 at 08:16PM

17
#445 - RusAlex Pletnev / @RusAlexander

06/14/2012 at 06:32AM

17
#446 - Brandon Montgomery / @bmonty

06/23/2012 at 08:30PM

17
#447 - Piotr Sarnacki / @drogus

09/10/2012 at 08:27PM

17
#448 - Jordan Eldredge / @captbaritone

12/01/2012 at 07:58AM

17
#449 - Nick Rowe / @nixterrimus

05/15/2013 at 10:17PM

17
#450 - mnx / @mnxx

06/05/2013 at 03:34PM