LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-26-2016, 11:58 AM   #1
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508

Rep: Reputation: 29
emacs or vi mode for bash


what do you guys prefer?

i have read some bad things about vi mode for bash, that it over complicates simple tasks etc...

i plan to get a lot more into vi and hopefully start programming in python with it as im using idle at the moment...does it make sense to start using vi mode on the command line or doesnt it really matter...just trying to be efficient...

thanks
 
Old 01-26-2016, 12:29 PM   #2
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'm an old time UNIX guy so was always used to doing vi style commands for history in ksh. On going to Linux I originally continued using ksh until I realized I could do "set -o vi" in bash to make it use vi history.

One benefit to the vi (vim) commands in history is if you have a command line you want to use as basis for a full script hitting the "v" key will put you into a full screen edit mode.

I've hated emacs since I first used in the early 90s. Which to use is a matter of preference. The only argument I've ever really heard for use of emacs is it allows multiple windows but given you usually can create multiple windows with whatever terminal tool you're using this has never been a selling point to me. vi/vim can be as simple or as complex as you wish to make it.
 
Old 01-27-2016, 12:22 AM   #3
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,150

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
If i'm not wrong vi is commonly used or already included in most popular Linux distro (I might be wrong though).

Never used emacs before but one thing good for vi is you can temporarily exit back to terminal and use shell.

Last edited by JJJCR; 01-27-2016 at 03:12 AM. Reason: edit
 
Old 01-27-2016, 02:59 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
duplicate of http://www.linuxquestions.org/questi...5/#post5487591
 
  


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
emacs and vi mode sigint-ninja Linux - Newbie 4 01-27-2016 02:59 AM
emacs in terminal-mode constrains output to 80 columns (emacs bug, or watch bug?) jgombos Linux - Software 1 06-17-2011 09:49 PM
emacs: minor mode font-mode-lock not on by default?! hewsonism Linux - Newbie 2 06-10-2010 01:32 PM
Automatic hs-minor-mode in Emacs for PHP mode? CoderMan Programming 1 06-12-2009 09:38 AM
Text Mode Editor: What Choices? BASH, VI, EMACS? LinxAI Linux - Newbie 12 03-28-2004 11:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:10 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