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

603 active golfers, 1818 entries

Leaderboard (lowest score wins):
19
#511 - Jay Stotz / @jstotz

02/04/2012 at 02:58PM

19
#512 - Alan Oliver / @alol

02/14/2012 at 05:42PM

19
#513 - skellam / @skellam

02/20/2012 at 07:35PM

19
#514 - Bernhard Urban / @lewurm

02/21/2012 at 05:56PM

19
#515 - bburky / @bburky

02/24/2012 at 03:43AM

19
#516 - naught101 / @naught101

03/14/2012 at 12:53PM

19
#517 - Nathan Manousos / @trafnar

04/01/2012 at 09:27AM

19
#518 - Eric Weikl / @ericweikl

05/09/2012 at 08:23PM

19
#519 - Josh Steiner / @josh_steiner

06/12/2012 at 08:15PM

19
#520 - Adelar S. Queiróz / @adelarsq

11/25/2012 at 03:33PM

19
#521 - Ben Baker-Smith / @Bit_Synthesis

12/14/2012 at 02:14AM

19
#522 - Woojung Kim 김우중 / @_kimwz

07/12/2013 at 04:39AM

19
#523 - Joel Taylor / @joelteon_

07/23/2013 at 07:49PM

19
#524 - Hachez Floran / @FloranHachez

09/02/2013 at 10:48PM

19
#525 - Sami Niiranen / @saminiir

10/13/2013 at 06:53PM

19
#526 - Brian Peiris / @brianpeiris

12/28/2013 at 05:59AM

19
#527 - Athira Gireesh / @athiragireesh

03/21/2014 at 07:16AM

19
#528 - MEERA / @benmeera

03/21/2014 at 07:17AM

19
#529 - Felipe Jaramillo F / @mrfelipe

04/01/2014 at 07:00PM

19
#530 - Hendrik Lammers / @hendriklammers

06/13/2014 at 05:47PM

19
#531 - luffy / @raxcoi

01/25/2015 at 04:17PM

19
#532 - shugen / @shugeno

03/25/2015 at 08:37PM

19
#533 - Gerald Tilma / @GeraldTilma

10/19/2015 at 04:27AM

19
#534 - Kevin Burns / @kburnsinfo

02/19/2016 at 01:39AM

19
#535 - Ian van der Linde / @Ian_vdl

09/16/2016 at 05:13PM

19
#536 - Spacesh1p / @spacesh1pdev

01/08/2018 at 02:49PM

19
#537 - z0c / @zerocabal

06/11/2018 at 01:01PM

19
#538 - Di Peng / @DCodier

10/31/2018 at 12:58PM

19
#539 - Jurica / @Jurica34581259

11/16/2018 at 01:51PM

19
#540 - Fukunishi Hashitoku / @FHashitoku

05/08/2020 at 03:08PM