Skip to content

Instantly share code, notes, and snippets.

@Soft
Created May 6, 2011 15:39
Show Gist options
  • Select an option

  • Save Soft/959188 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

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

sentriz commented May 22, 2016

Copy link
Copy Markdown

@liquiddandruff, nice one, thanks :)

@0n-s

0n-s commented Nov 16, 2016

Copy link
Copy Markdown

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

@merkurus

Copy link
Copy Markdown

Works great :) +1:

@TerminalWitchcraft

Copy link
Copy Markdown

Thanks! Feels like home 👍

ghost commented Nov 19, 2017

Copy link
Copy Markdown

Thx!

@cotko

cotko commented Nov 9, 2018

Copy link
Copy Markdown

also not to forget:

def_key "g"
  move_home

def_key "G"
  move_end

@mvrozanti

mvrozanti commented Mar 8, 2019

Copy link
Copy Markdown
def_key "0"
  replay_song
def_key "ctrl-f"
  page_down
def_key "ctrl-b"
  page_up

@blancNoir

Copy link
Copy Markdown

exactly what i was looking for

@steewbsd

Copy link
Copy Markdown

Thank you very much, it's very useful

@sevillaarvin

Copy link
Copy Markdown

Works like a charm, thanks!

@faynopi

faynopi commented Dec 15, 2021

Copy link
Copy Markdown

👍

@x1angw2

x1angw2 commented Feb 26, 2022

Copy link
Copy Markdown

Thank you so much.

@typebrook

typebrook commented Sep 24, 2022

Copy link
Copy Markdown

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