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

563 active golfers, 1665 entries

Leaderboard (lowest score wins):
13
#1 - Pei-Lun Lee / @ypcatw

12/22/2011 at 07:23AM

13
#2 - You-Siang Lin / @yslinnctu

12/23/2011 at 09:46AM

13
#3 - Tim Chase / @gumnos

01/03/2012 at 03:39PM

13
#4 - Song Zheng / @songz

01/24/2012 at 09:52PM

13
#5 - Dragan Cvetinovic / @kawkafi

02/01/2012 at 09:25PM

13
#6 - John / @OneOhOneOhOneOh

02/05/2012 at 12:23AM

13
#7 - Abdel Said / @abdelsaid

02/10/2012 at 11:39PM

13
#8 - Aaron Snitzer / @snitzr

02/11/2012 at 05:13AM

13
#9 - Renat Aksitov / @Korvin79

02/18/2012 at 06:11AM

13
#10 - David Sanders / @SandersCD

02/19/2012 at 06:55AM

13
#11 - Federico Galassi / @federicogalassi

02/21/2012 at 08:17PM

13
#12 - Adrien Friggeri / @qelf

02/25/2012 at 05:06AM

13
#13 - Analog / @analogp1xel

03/25/2012 at 11:41PM

13
#14 - Chris Penkett / @chrispenkett

04/02/2012 at 10:13PM

13
#15 - Alberto Lopez / @albertolrubio

04/05/2012 at 01:17PM

13
#16 - Sebastian Kusnier / @skusnier

04/07/2012 at 12:07PM

13
#17 - Nolen Royalty / @NolenRoyalty

04/21/2012 at 04:59AM

13
#18 - Scott Christopherson / @Scottopherson

04/26/2012 at 02:14PM

13
#19 - Martin Aumueller / @aumuell

04/27/2012 at 08:45PM

13
#20 - Urtica dioica / @udioica

05/18/2012 at 01:26AM

13
#21 - Benjamin Hitov / @benhitov

05/19/2012 at 07:50AM

13
#22 - Benoit Mortgat / @Benoit_Mortgat

06/06/2012 at 12:50PM

13
#23 - Wei Dai / @clvv42

07/12/2012 at 08:10PM

13
#24 - (Emile (Swarts)) / @EmileSwarts

08/19/2012 at 05:30PM

13
#25 - retired account / @retired10072015

08/23/2012 at 09:27PM

13
#26 - Conner McDaniel / @connermcd

09/18/2012 at 05:35AM

13
#27 - Vim rocks / @vimrocks

10/09/2012 at 03:13PM

13
#28 - Kate / @Arohanui

10/30/2012 at 09:58AM

13
#29 - Adam Bell / @adamgbell

03/17/2013 at 03:41PM

13
#30 - Tyler / @tylerbindon

04/06/2013 at 05:00PM