LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 12:58 PM   #1
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 447

Rep: Reputation: 28
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, 01:29 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,577
Blog Entries: 14

Rep: Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969
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, 01:22 AM   #3
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,102

Rep: Reputation: 181Reputation: 181
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 04:12 AM. Reason: edit
 
Old 01-27-2016, 03:59 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,104

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 09:05 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration