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

590 active golfers, 1765 entries

Leaderboard (lowest score wins):
14
#151 - Caek / @Caek_

07/16/2014 at 05:47AM

14
#152 - MonkeyBrains ISP / @monkeybrainsnet

07/27/2014 at 05:21AM

14
#153 - Justin Knag / @justinknag

09/03/2014 at 04:55AM

14
#154 - Dario Avitabile / @tutticapaci

09/05/2014 at 10:15AM

14
#155 - yachi / @yaachi

12/31/2014 at 07:26AM

14
#156 - mark0829 / @mark0829

02/02/2015 at 12:15PM

14
#157 - Robert Robertson / @RobertC3228687

06/12/2015 at 08:22PM

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

06/26/2015 at 05:08PM

14
#159 - Jaron Hamlik / @jdhamlik

02/27/2016 at 11:51PM

14
#160 - Dimitar Dimitrov / @kurkale6ka

03/15/2016 at 04:21PM

14
#161 - Ram Tamtam / @ramtamtamtam

06/30/2016 at 02:51PM

14
#162 - Vaisian / @Vaisian

07/09/2016 at 01:49PM

14
#163 - retro / @tryphopp

11/12/2016 at 05:51PM

14
#164 - Jon Krause / @jkrause314

11/27/2016 at 08:06PM

14
#165 - harpocrates744 / @harpocrates744

09/05/2017 at 11:40PM

14
#166 - DHM / @DHM29978992

04/25/2018 at 02:58AM

14
#167 - sspan / @sspantz

07/05/2018 at 08:42AM

14
#168 - Bart3k / @Bart3k3

09/19/2018 at 11:40AM

14
#169 - Mihai / @mihaicristiant

12/09/2018 at 04:08PM

14
#170 - Vimfiz / @vimfiz

04/30/2019 at 04:57PM

15
#171 - Maciej Suchecki / @mcSuchecki

12/21/2011 at 07:25PM

15
#172 - Matthew Cupps / @matthewcupps

12/21/2011 at 07:28PM

15
#173 - John Anderson / @opejn

12/24/2011 at 04:18AM

15
#174 - Dan Dorman / @dandorman

12/25/2011 at 04:38AM

15
#175 - Rik Lomas / @riklomas

12/25/2011 at 09:06PM

15
#176 - perpetoom / @perpetoom

12/30/2011 at 12:59AM

15
#177 - Xavier Nayrac / @lkdjiin

01/02/2012 at 10:55AM

15
#178 - Anders H. Madsen / @andershellerup

01/02/2012 at 11:57PM

15
#179 - twobit / @_2bt

01/03/2012 at 10:14PM

15
#180 - captain_morgan / @captain_morgan

01/05/2012 at 07:50PM