This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Make Konsole work like Vim

-1

Votes
1
2
Tags: None
(comma "," separated)
User avatar
ooker
Registered Member
Posts
121
Karma
1

Make Konsole work like Vim

Tue Jun 10, 2014 10:02 am
I use keyboard a lot and it makes me furious when I have to use mouse to select or scroll up. I know that up and down arrow is really useful to see previous commands. I have a propose: lock it like Vim when you need to navigate (ie: scrolling, selecting, cutting, etc) by the Ins key. You can unlock it by pressing it again.

What do you think? It's like Vimperator on Firefox.
User avatar
toad
Global Moderator
Posts
1258
Karma
7
OS

Re: Make Konsole work like Vim

Tue Jun 10, 2014 10:21 am
I remember seeing a plugin for kate that does exactly that. However, a quick apt-cache search didn't come up with anything. Too hot to google here at the mo but I'm pretty sure there is such an animal out there in the wild...


Debian testing
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS

Re: Make Konsole work like Vim

Tue Jun 10, 2014 11:27 pm
You may want to have a look at tmux, which has a copy mode among other things.


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
User avatar
ooker
Registered Member
Posts
121
Karma
1

Re: Make Konsole work like Vim

Thu Jun 12, 2014 10:24 am
What's about making it be a feature in Konsole? I usually use it inside Dolphin or Yakuake.
luebking
Karma
0

Re: Make Konsole work like Vim

Thu Jun 12, 2014 3:54 pm
About every bourne shell should support scrolling by pressing shift and arrow/page up/down keys.
Konsole /has/ shortcuts to select all or the current line, as well as to copy the selection or paste contents. (See settings/configure shortcuts)
Be careful with the shortcuts you select, since you'll "steal" them from the terminal process (that includes bash as well as vim or mc or whatever you run in there)
User avatar
ooker
Registered Member
Posts
121
Karma
1

Re: Make Konsole work like Vim

Sun Jun 22, 2014 10:16 am
About every bourne shell should support scrolling by pressing shift and arrow/page up/down keys.
Konsole /has/ shortcuts to select all


This is new for me. Thanks. However what about selecting a bunch of lines?
luebking
Karma
0

Re: Make Konsole work like Vim

Sun Jun 22, 2014 11:25 am
I'm not aware of bourne shells that would allow you to move to a specific line of stdout - so you basically cannot select any but the current line because you cannot change the current line.
It's not a texteditor after all - konsole would have to introduce a mode where it takes control over the cursor (and away from the client)

You could file a wish (but my personal assumption as NOT maintainer of konsole would be, that this would be a horrible feature when running vim/emacs/mc/whatever in konsole *shrug*)
It's already kinda nasty when using the mouse in vim.
luebking
Karma
0

Re: Make Konsole work like Vim

Sun Jun 22, 2014 11:30 am
Fwwi: zsh has extended feature to paste former command strings - if this is what you're after.

See eg. http://chneukirchen.org/blog/archive/20 ... -know.html
resp. http://zsh.sourceforge.net/Doc/Release/ ... ditor.html
User avatar
hook
Registered Member
Posts
205
Karma
0
OS

Re: Make Konsole work like Vim

Fri Aug 29, 2014 8:29 am
Also Zsh (a.k.a Z-Shell, a powerful alternative to Bash) has full Vim mode: http://zsh.sourceforge.net/Guide/zshguide04.html#l78

If you change shell, you can use the Vi commands in it from whichever terminal emulator.


It's time to prod some serious buttock! ;)


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], rblackwell