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):
19
#511 - Woojung Kim 김우중 / @_kimwz

07/12/2013 at 04:39AM

19
#512 - Joel Taylor / @joelteon_

07/23/2013 at 07:49PM

19
#513 - Hachez Floran / @FloranHachez

09/02/2013 at 10:48PM

19
#514 - Sami Niiranen / @saminiir

10/13/2013 at 06:53PM

19
#515 - Brian Peiris / @brianpeiris

12/28/2013 at 05:59AM

19
#516 - Athira Gireesh / @athiragireesh

03/21/2014 at 07:16AM

19
#517 - MEERA / @benmeera

03/21/2014 at 07:17AM

19
#518 - Felipe Jaramillo F / @mrfelipe

04/01/2014 at 07:00PM

19
#519 - Hendrik Lammers / @hendriklammers

06/13/2014 at 05:47PM

19
#520 - luffy / @raxcoi

01/25/2015 at 04:17PM

19
#521 - shugen / @shugeno

03/25/2015 at 08:37PM

19
#522 - Gerald Tilma / @GeraldTilma

10/19/2015 at 04:27AM

19
#523 - Kevin Burns / @kburnsinfo

02/19/2016 at 01:39AM

19
#524 - Ian van der Linde / @Ian_vdl

09/16/2016 at 05:13PM

19
#525 - Spacesh1p / @spacesh1pdev

01/08/2018 at 02:49PM

19
#526 - z0c / @zerocabal

06/11/2018 at 01:01PM

19
#527 - Di Peng / @DCodier

10/31/2018 at 12:58PM

19
#528 - Jurica / @Jurica34581259

11/16/2018 at 01:51PM

20
#529 - Scott Raymond / @sco

12/31/2011 at 08:38AM

20
#530 - Jan Sedivy / @jan_sedivy

02/05/2012 at 05:59PM

20
#531 - Julio Silva / @9jb

03/07/2012 at 01:35AM

20
#532 - Kenton Newby / @kentonnewby

03/27/2012 at 10:56PM

20
#533 - James Chiang / @jamesjn5

04/01/2012 at 04:00AM

20
#534 - Ernesto Jiménez / @ernesto_jimenez

04/01/2012 at 04:17PM

20
#535 - Mike Verkhovykh / @mihver1

04/25/2012 at 12:49PM

20
#536 - Viktor Jackson / @AntiStalinista

05/05/2012 at 06:40AM

20
#537 - Dave C / @dmlc133

05/14/2012 at 12:42PM

20
#538 - n0nick / @n0nick

11/19/2012 at 02:25PM

20
#539 - Fake Name / @The_Real_User

01/06/2014 at 10:09PM

20
#540 - Jacob / @jayekub

03/23/2014 at 09:37PM