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

598 active golfers, 1797 entries

Leaderboard (lowest score wins):
14
#151 - playalong / @playwithit42

07/09/2014 at 08:06AM

14
#152 - Caek / @Caek_

07/16/2014 at 05:47AM

14
#153 - MonkeyBrains ISP / @monkeybrainsnet

07/27/2014 at 05:21AM

14
#154 - Justin Knag / @justinknag

09/03/2014 at 04:55AM

14
#155 - Dario Avitabile / @tutticapaci

09/05/2014 at 10:15AM

14
#156 - yachi / @yaachi

12/31/2014 at 07:26AM

14
#157 - mark0829 / @mark0829

02/02/2015 at 12:15PM

14
#158 - Robert Robertson / @RobertC3228687

06/12/2015 at 08:22PM

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

06/26/2015 at 05:08PM

14
#160 - Jaron Hamlik / @jdhamlik

02/27/2016 at 11:51PM

14
#161 - Dimitar Dimitrov / @kurkale6ka

03/15/2016 at 04:21PM

14
#162 - Ram Tamtam / @ramtamtamtam

06/30/2016 at 02:51PM

14
#163 - Vaisian / @Vaisian

07/09/2016 at 01:49PM

14
#164 - retro / @tryphopp

11/12/2016 at 05:51PM

14
#165 - Jon Krause / @jkrause314

11/27/2016 at 08:06PM

14
#166 - harpocrates744 / @harpocrates744

09/05/2017 at 11:40PM

14
#167 - DHM / @DHM29978992

04/25/2018 at 02:58AM

14
#168 - sspan / @sspantz

07/05/2018 at 08:42AM

14
#169 - Bart3k / @Bart3k3

09/19/2018 at 11:40AM

14
#170 - Mihai / @mihaicristiant

12/09/2018 at 04:08PM

14
#171 - Vimfiz / @vimfiz

04/30/2019 at 04:57PM

14
#172 - Lory / @Lory46845742

11/14/2019 at 01:14PM

14
#173 - Vladimir Leskov / @vladimirlesk

11/25/2019 at 09:57PM

14
#174 - Jason Neylon / @jasonneylon

04/02/2020 at 08:42PM

14
#175 - Bhagwan / @El_Bhagwan

05/20/2020 at 06:28PM

15
#176 - Maciej Suchecki / @mcSuchecki

12/21/2011 at 07:25PM

15
#177 - Matthew Cupps / @matthewcupps

12/21/2011 at 07:28PM

15
#178 - John Anderson / @opejn

12/24/2011 at 04:18AM

15
#179 - Dan Dorman / @dandorman

12/25/2011 at 04:38AM

15
#180 - Rik Lomas / @riklomas

12/25/2011 at 09:06PM