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 by @demouo:

Unlock 10 remaining solutions by signing in and submitting your own entry
Created by: @alimoeeny

650 active golfers, 2005 entries

Solutions by @demouo:
13
#115 - demouo / @demouo

11/15/2024 at 06:00AM

14
#>204 - demouo / @demouo

11/15/2024 at 05:53AM

15
#>317 - demouo / @demouo

11/15/2024 at 05:50AM

16
#>416 - demouo / @demouo

11/15/2024 at 05:49AM

17
#>493 - demouo / @demouo

11/15/2024 at 05:48AM

19
#>580 - demouo / @demouo

11/15/2024 at 05:43AM

20
#>598 - demouo / @demouo

11/15/2024 at 05:41AM

27
#>629 - demouo / @demouo

11/15/2024 at 05:40AM

28
#>629 - demouo / @demouo

11/15/2024 at 05:36AM

39
#>645 - demouo / @demouo

11/15/2024 at 05:35AM