Skip to content

Instantly share code, notes, and snippets.

@Soft
Created May 6, 2011 15:39
Show Gist options
  • Star 28 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save Soft/959188 to your computer and use it in GitHub Desktop.
Save Soft/959188 to your computer and use it in GitHub Desktop.
More vim like ncmpcpp keys config
key_move_song_up = 'K'
key_move_song_down = 'J'
key_next_found_position = 'n'
key_prev_found_position = 'N'
key_prev_column = 260 'h'
key_next_column = 261 'l'
key_lyrics = '.'
key_home = 262 'g'
key_end = 360 'G'
@liquiddandruff
Copy link

Inspired me to do the same as well. Here are my bindings:

Located in ~/.ncmpcpp/bindings

# the t key isn't used and it's easier to press than /, so lets use it
def_key "t"
    find
def_key "t"
    find_item_forward

def_key "+"
    show_clock
def_key "="
    volume_up

def_key "j"
    scroll_down
def_key "k"
    scroll_up

def_key "ctrl-u"
    page_up
#push_characters "kkkkkkkkkkkkkkk"
def_key "ctrl-d"
    page_down
#push_characters "jjjjjjjjjjjjjjj"

def_key "h"
    previous_column
def_key "l"
    next_column

def_key "."
    show_lyrics

def_key "n"
    next_found_item
def_key "N"
    previous_found_item

# not used but bound
def_key "J"
    move_sort_order_down
def_key "K"
    move_sort_order_up

@sentriz
Copy link

sentriz commented May 22, 2016

@liquiddandruff, nice one, thanks :)

@0n-s
Copy link

0n-s commented Nov 16, 2016

That's pretty nice, @liquiddandruff. Now ncmpcpp really feels like Vim!

@merkurus
Copy link

Works great :) +1:

@TerminalWitchcraft
Copy link

Thanks! Feels like home 👍

Copy link

ghost commented Nov 19, 2017

Thx!

@cotko
Copy link

cotko commented Nov 9, 2018

also not to forget:

def_key "g"
  move_home

def_key "G"
  move_end

@mvrozanti
Copy link

mvrozanti commented Mar 8, 2019

def_key "0"
  replay_song
def_key "ctrl-f"
  page_down
def_key "ctrl-b"
  page_up

@blancNoir
Copy link

exactly what i was looking for

@steewbsd
Copy link

Thank you very much, it's very useful

@sevillaarvin
Copy link

Works like a charm, thanks!

@faynopi
Copy link

faynopi commented Dec 15, 2021

👍

@x1angw2
Copy link

x1angw2 commented Feb 26, 2022

Thank you so much.

@typebrook
Copy link

typebrook commented Sep 24, 2022

I am new to ncmpcpp, thanks everyone for these tips!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment