Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Urxvt vim controls?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
paxsars
n00b
n00b


Joined: 02 Mar 2018
Posts: 8

PostPosted: Wed Mar 14, 2018 5:25 am    Post subject: Urxvt vim controls? Reply with quote

i know it's possible to set the input bar to vi mode. Is it possible to set the buffer scroll back to vim like controls? It would even be nice to be able to enter visual mode in urxvt to be able to select text copy it and and then pasting it to the input bar. Is any of this possible? Piping the output of a command into less is meh to me.
Back to top
View user's profile Send private message
chino_
Apprentice
Apprentice


Joined: 05 Apr 2004
Posts: 186
Location: /dev/random

PostPosted: Mon Mar 19, 2018 9:15 am    Post subject: Reply with quote

Yes, that's absolutely possible, and works like a charm.

Emerge the urxvt-perls package https://packages.gentoo.org/packages/x11-misc/urxvt-perls

The script you're looking for is keyboard-select

Github has the instructions and keybindings https://github.com/muennich/urxvt-perls

I've set it to Alt-Esc myself, then you go to normal mode and use all kinds of vim like stuff, like yanking stuff, etc.
The scrollback buffer works with just j/k or with Ctrl-D Ctrl-U, or Ctrl-F/Ctrl-B
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum