Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to have the same keybindings in gedit and in bash. Namely all the selections, also cut, copy and paste.

I know there are some important ones that are already taken (Ctrl+C, Ctrl+W, etc), still... I want to have the same workflow in my text editor and shell of choice.

Anyone has got around this?

share|improve this question

2 Answers 2

There is some information about key-binding in this bash reference manual.
To edit key bindings in gnome-terminal, go to Edit->KeyBoard Shortcuts.

While I'm not convinced that what you want to do is absolutely impossible (this is linux after all), I do believe that it will turn into more trouble than it's worth. Editors and shells are meant to be used for very different purposes and were designed with these very different purposes in mind. In the long run, I think you'll be better off learning how to use each tool as it was intended to be used (especially if you ever have to use someone else's computer). Switching between editor and shell becomes second nature with just a little practice.

Update:
As pointed out by djeikyb in the comments, bash does support vi mappings. If you are willing to learn how to use vi, that may be what you are looking for. Here is a quick write up on vi key bindings in bash, with cheat sheet.

share|improve this answer
    
Otoh, some awesome person patched bash to allow vi style bindings. The first command I run on a new install is echo "set -o vi" >> ~/.bashrc; . ~/.bashrc –  djeikyb Feb 1 '11 at 4:28
    
@djeikyb I am so very glad you told me this. I find myself in a new level of vi euphoria. –  karategeek6 Feb 1 '11 at 7:16
    
I've used vi in and out for weeks, I just can't get my mindset to work with it. I would not be using gedit if that was the case :P –  tutuca Feb 4 '11 at 3:36

This is impossible: on the one hand you have a terminal (which hosts a bash shell) and where - as you say - some combinations are already taken. On the other hand, you use gedit which doesn't allow changing key combinations.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.