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

635 active golfers, 1928 entries

Leaderboard (lowest score wins):
14
#151 - thasso / @thasso23

11/01/2013 at 06:13PM

14
#152 - lastsseldon / @lastsseldon

11/04/2013 at 03:10AM

14
#153 - gary.klindt@googlema / @garstekli

11/19/2013 at 12:26AM

14
#154 - Quota / @Quotad

01/16/2014 at 08:51AM

14
#155 - Andreas Källberg / @Anka213

01/17/2014 at 05:12AM

14
#156 - Joonas Pihlajamaa / @jokkebk

02/11/2014 at 01:31PM

14
#157 - Marchand Paul-Valère / @pvmarch

02/27/2014 at 09:18AM

14
#158 - Sean Huber / @bonquesha99

03/13/2014 at 02:49PM

14
#159 - Arpitha George / @arpithageorge

03/22/2014 at 09:41AM

14
#160 - Pedro Santos / @pedrosans

03/25/2014 at 07:46PM

14
#161 - playalong / @playwithit42

07/09/2014 at 08:06AM

14
#162 - Caek / @Caek_

07/16/2014 at 05:47AM

14
#163 - MonkeyBrains ISP / @monkeybrainsnet

07/27/2014 at 05:21AM

14
#164 - Justin Knag / @justinknag

09/03/2014 at 04:55AM

14
#165 - Dario Avitabile / @tutticapaci

09/05/2014 at 10:15AM

14
#166 - yachi / @yaachi

12/31/2014 at 07:26AM

14
#167 - mark0829 / @mark0829

02/02/2015 at 12:15PM

14
#168 - Robert Robertson / @RobertC3228687

06/12/2015 at 08:22PM

14
#169 - Skúli Jóhannsson / @skulibj

06/26/2015 at 05:08PM

14
#170 - Jaron Hamlik / @jdhamlik

02/27/2016 at 11:51PM

14
#171 - Dimitar Dimitrov / @kurkale6ka

03/15/2016 at 04:21PM

14
#172 - Ram Tamtam / @ramtamtamtam

06/30/2016 at 02:51PM

14
#173 - Vaisian / @Vaisian

07/09/2016 at 01:49PM

14
#174 - retro / @tryphopp

11/12/2016 at 05:51PM

14
#175 - Jon Krause / @jkrause314

11/27/2016 at 08:06PM

14
#176 - harpocrates744 / @harpocrates744

09/05/2017 at 11:40PM

14
#177 - DHM / @DHM29978992

04/25/2018 at 02:58AM

14
#178 - sspan / @sspantz

07/05/2018 at 08:42AM

14
#179 - Bart3k / @Bart3k3

09/19/2018 at 11:40AM

14
#180 - Mihai / @mihaicristiant

12/09/2018 at 04:08PM