Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

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...

Old 01-26-2016, 12:29 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,986
Blog Entries: 14

Rep: Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187
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
Senior Member
Registered: Apr 2010
Posts: 1,325

Rep: Reputation: 225Reputation: 225Reputation: 225
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
LQ Guru
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,658

Rep: Reputation: 2853Reputation: 2853Reputation: 2853Reputation: 2853Reputation: 2853Reputation: 2853Reputation: 2853Reputation: 2853Reputation: 2853Reputation: 2853Reputation: 2853
duplicate of


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 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 > Forums > Linux Forums > Linux - Newbie

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

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