LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-18-2007, 10:10 AM   #16
galle
Member
 
Registered: Sep 2003
Location: Bergen, Norway
Distribution: Debian testing
Posts: 69

Original Poster
Rep: Reputation: 16

Well I can definitely relate to "vi culture shock". I've tried it a couple of times, but never had the patience to actually learn it. Usually I'm a fan of shortcuts, but I guess I'm happy enough with kedit or something...

Quote:
You need two hands to type a single character (/)?
'&' is also a single character, don't you need two keys for that one on the english keyboard? On the norwegian keyboard you press shift-7 to get '/'.
 
Old 01-18-2007, 10:22 AM   #17
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally Posted by galle
Well I can definitely relate to "vi culture shock". I've tried it a couple of times, but never had the patience to actually learn it. Usually I'm a fan of shortcuts, but I guess I'm happy enough with kedit or something...
Wait to have a system crash and no more xwindow, you will realize how practical vi is
Quote:
'&' is also a single character, don't you need two keys for that one on the english keyboard? On the norwegian keyboard you press shift-7 to get '/'.
Same on a german keyboard.
 
Old 01-18-2007, 10:23 AM   #18
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Point taken on the &. I did allow for the possibility other keyboards wouldn't make a / natively. Only God knows what I'd have to do to type "ø".
 
Old 01-18-2007, 10:33 AM   #19
galle
Member
 
Registered: Sep 2003
Location: Bergen, Norway
Distribution: Debian testing
Posts: 69

Original Poster
Rep: Reputation: 16
Quote:
Wait to have a system crash and no more xwindow, you will realize how practical vi is
I know, I know... Luckily it hasn't happened very often so far
 
Old 01-18-2007, 10:36 AM   #20
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
I think in a system crash the least of my worries will be which editor I'm using.
 
Old 01-18-2007, 10:40 AM   #21
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally Posted by jlightner
I think in a system crash the least of my worries will be which editor I'm using.
Well, with no Xwindow, the choice is easily done
 
Old 01-18-2007, 01:36 PM   #22
cfaj
Member
 
Registered: Dec 2003
Location: Toronto, Canada
Distribution: Mint, Mandriva
Posts: 221

Rep: Reputation: 31
Quote:
Originally Posted by nx5000
Well, with no Xwindow, the choice is easily done
Indeed; emacs works perfectly without X.

Sometimes, rather than use vi, I've edited files with sed or awk.
 
Old 01-18-2007, 01:39 PM   #23
cfaj
Member
 
Registered: Dec 2003
Location: Toronto, Canada
Distribution: Mint, Mandriva
Posts: 221

Rep: Reputation: 31
Quote:
Originally Posted by galle
Is it possible to change how up arrow works in bash? I would like to be able to browse through the bash history with the up arrow like it is now, but in addition to that, if I've started writing something, I would like it to only browse through the commands which start with the same letters. (If anyone is familiar with the command line interface in Matlab, that's the behavior I'm looking for).

Is this already implement somewhere, or can I make my own script somehow?

Cheers

Put the following in ~/.inputrc:

"\e[A": history-search-backward ## up-arrow
"\e[B": history-search-forward ## down-arrow

Check that those are the correct key sequences for your terminal by pressing Ctrl-v then an arrow key.
 
Old 01-18-2007, 03:46 PM   #24
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
I love these people who repeat exactly stuff that's already been said...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shift-arrow and Alt-arrow keys don't work in xterm Aviv Hurvitz Linux - General 2 09-30-2006 03:43 PM
up arrow history leads to first letter snay1 Linux - General 1 03-15-2006 05:53 PM
telnet up-arrow command history eastsuse Linux - Newbie 8 12-04-2004 09:18 AM
Line wrap errors with ssh / xterm / bash and up-arrow to edit brycen Linux - Software 0 09-22-2004 06:01 PM
Enabling arrow keys for history recall subu_s General 1 06-18-2004 07:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration