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

591 active golfers, 1769 entries

Leaderboard (lowest score wins):
17
#391 - Dan Huang / @yuzeh

02/16/2012 at 07:22PM

17
#392 - Scott Schlesier / @sschlesier

02/22/2012 at 08:00AM

17
#393 - Leon Miller-Out / @leonmo

03/06/2012 at 03:34PM

17
#394 - Michał Wróbel / @sparrovv_

03/14/2012 at 12:20AM

17
#395 - Vamshi Krishna / @pvamshi

04/04/2012 at 10:35AM

17
#396 - Christian Helbling / @friendly_coder

04/08/2012 at 06:49PM

17
#397 - Tobias Sjösten / @tobiassjosten

04/24/2012 at 06:28PM

17
#398 - Sean Todd / @descentintomael

04/28/2012 at 05:09AM

17
#399 - lauri lehmijoki / @laurilehmijoki

06/02/2012 at 08:16PM

17
#400 - RusAlex Pletnev / @RusAlexander

06/14/2012 at 06:32AM

17
#401 - Brandon Montgomery / @bmonty

06/23/2012 at 08:30PM

17
#402 - Piotr Sarnacki / @drogus

09/10/2012 at 08:27PM

17
#403 - Jordan Eldredge / @captbaritone

12/01/2012 at 07:58AM

17
#404 - Nick Rowe / @nixterrimus

05/15/2013 at 10:17PM

17
#405 - mnx / @mnxx

06/05/2013 at 03:34PM

17
#406 - Eric Potter / @pottereric

06/11/2013 at 05:59PM

17
#407 - RobertT / @techrt2050

07/19/2013 at 06:18AM

17
#408 - Brian Besmanoff / @BrianBesmanoff

08/05/2013 at 01:17AM

17
#409 - apof / @9pof

09/14/2013 at 10:12PM

17
#410 - Hiro Suzuki / @hiro_suzuki

10/29/2013 at 10:06AM

17
#411 - Brett Cassette / @brettcassette

12/02/2013 at 01:43AM

17
#412 - Jérémy Autran / @jjautran

01/29/2014 at 09:16PM

17
#413 - João Paiva / @jgpaiva

01/30/2014 at 04:36PM

17
#414 - Ali El Amine / @Allouch95

02/02/2014 at 07:06PM

17
#415 - Geetthu Joseph / @geethuaj

03/21/2014 at 07:35AM

17
#416 - Peter Strawson / @PeterStrawson

04/08/2014 at 09:58PM

17
#417 - Mick Garvey / @blarko

04/23/2014 at 05:40PM

17
#418 - Kyle Travis / @kmakai

05/16/2014 at 06:36PM

17
#419 - Jake Eaton / @Jake__Eaton

06/01/2014 at 07:12AM

17
#420 - Subhi Dweik / @SubhiDweik

06/02/2014 at 11:38PM