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):
13
#31 - Marco Hinz / @_mhinz_

05/22/2013 at 03:44PM

13
#32 - Petro Тrouq / @zulolosi

06/01/2013 at 11:05AM

13
#33 - Dom Armstrong / @dom_cycleface

06/30/2013 at 07:23PM

13
#34 - moo goo / @m00g000

07/01/2013 at 07:27PM

13
#35 - Gosteau Alexandre / @eclostene

07/04/2013 at 11:58AM

13
#36 - Steve Tjoa / @stevetjoa

07/09/2013 at 06:30AM

13
#37 - ———đίxίє—flαтlίиє——— / @_dixie_flatline

07/29/2013 at 12:39AM

13
#38 - Michael LeCompte / @michaelslec

08/12/2013 at 12:38AM

13
#39 - Sam Rose / @samwhoo

08/27/2013 at 07:33PM

13
#40 - John Papanastasiou / @JohnPapps

08/27/2013 at 07:33PM

13
#41 - Florian Rathgeber / @frathgeber

08/27/2013 at 07:57PM

13
#42 - Rikin Patel / @rikin_patel

08/31/2013 at 01:27PM

13
#43 - Arturo Escaip / @arturoescaip

09/03/2013 at 01:49AM

13
#44 - Tzipan / @Tzipan

10/30/2013 at 07:53PM

13
#45 - Nathan Wallace / @nathanmwallace

11/07/2013 at 03:16PM

13
#46 - Stefan Schmidt / @stafue

12/06/2013 at 10:19AM

13
#47 - Joshua Appelman / @JoshuaAppelman

12/21/2013 at 09:08PM

13
#48 - Pandu / @pandu_golf

01/05/2014 at 10:08AM

13
#49 - Paul Liu / @automorphism

02/21/2014 at 07:11AM

13
#50 - Mina Naguib / @minaguib

02/23/2014 at 04:29AM

13
#51 - Xelrifos / @Xelrifos

02/24/2014 at 04:59PM

13
#52 - John Braxler / @braxler

03/20/2014 at 06:48PM

13
#53 - ZorgroZ / @ZorgroZ

04/12/2014 at 06:25PM

13
#54 - Chaitanya Desu / @ChaituNu

05/05/2014 at 12:15AM

13
#55 - Robert Bruce / @therealrobru

06/12/2014 at 06:25AM

13
#56 - darookee / @darookee

06/25/2014 at 01:44PM

13
#57 - LC / @leeren

08/10/2014 at 08:03AM

13
#58 - PLS / @jaegd

08/17/2014 at 12:14AM

13
#59 - Bill Booth / @ohiopyle

08/27/2014 at 07:37AM

13
#60 - @hauleth@hauleth.dev / @hauleth

09/03/2014 at 08:07AM