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

588 active golfers, 1761 entries

Leaderboard (lowest score wins):
20
#541 - Suhail Patel / @suhailpatel

10/13/2014 at 08:58PM

20
#542 - CoCo Loco / @lc2817

07/30/2015 at 06:23AM

20
#543 - Gurukandhamoorthi / @Gurukandhamoor1

07/11/2017 at 02:23PM

21
#544 - Vijay Dev / @vijay_dev

12/30/2011 at 07:36PM

21
#545 - Petr Kovar / @pejugo

02/01/2012 at 12:57PM

21
#546 - Cody Veal / @cjhveal

02/05/2012 at 07:36PM

21
#547 - Trevor Orsztynowicz / @trevoro

02/08/2012 at 03:11AM

21
#548 - Lee Quarella / @leequarella

02/21/2012 at 01:38AM

21
#549 - Jesse House / @house9twx

06/27/2013 at 12:01AM

21
#550 - esiegel / @esiegel

07/06/2013 at 07:25PM

21
#551 - Alexander Bandukwala / @abanduk

01/23/2014 at 08:43PM

21
#552 - Jared Fowler / @jared_fowler

07/28/2017 at 10:52PM

21
#553 - 张君杰 / @MYHQlDfwOuLvlGf

12/03/2018 at 07:17AM

22
#554 - krusty_ar / @krusty_ar

02/20/2012 at 03:35PM

22
#555 - Benjamin Sergeant / @bsergean

06/08/2012 at 05:40AM

22
#556 - Sven Keidel / @jungerkrieger89

08/22/2012 at 08:41PM

22
#557 - Stephen Searles / @stephensearles

08/26/2012 at 06:55PM

22
#558 - durcheinandr / @durcheinandr

12/31/2014 at 07:44PM

22
#559 - sinan / @sinan1111111111

02/14/2015 at 04:01PM

22
#560 - Chris Armstrong / @ChrisATweets

06/08/2016 at 07:53PM

23
#561 - Donald Plummer / @dplummer

02/03/2012 at 03:32AM

23
#562 - Cody Roberts / @bloomyminded

11/16/2016 at 01:29AM

24
#563 - francois bard / @misterfrb

05/07/2012 at 07:20AM

24
#564 - Charles Neill / @ccneill

05/01/2014 at 02:16AM

24
#565 - ɐʇnɥsɐpoʇ / @todashuta

03/25/2015 at 01:59PM

24
#566 - Igor Potceluev / @4eppelin

04/04/2015 at 11:20AM

24
#567 - Simon Cheng / @bambooraccoon

01/29/2018 at 09:13PM

25
#568 - matthew / @mdespuits

02/01/2012 at 10:20PM

26
#569 - John Hilliard / @praetorian

01/31/2012 at 03:53AM

26
#570 - Mikael Engström / @mikaelengstrom

05/17/2012 at 10:00AM