Clink

From wikinotes
Revision as of 12:55, 19 September 2018 by Will (talk | contribs) (Created page with "clink is a port of gnu-readline's features to windows. oh yes. that means: * vi-mode on the commandline * control-l clear screen * tab-completion * more... = Config = <bloc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

clink is a port of gnu-readline's features to windows. oh yes. that means:

  • vi-mode on the commandline
  • control-l clear screen
  • tab-completion
  • more...


Config

~/.inputrc

set bell-style none
set editing-mode vi


$if cmd.exe
    set keymap vi-insert
        M-h: vi-movement-mode
        M-j: vi-movement-mode
        M-k: vi-movement-mode
        M-l: vi-movement-mode
         
        C-l: clear-screen

    set keymap vi-move
        M-h: previous-char
        M-j: previous-history
        M-k: next-history
        M-l: next-char
$endif