LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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


View Poll Results: Would you prefer to use EMACS or VIM ?
EMACS ! 11 31.43%
VIM ! 24 68.57%
Voters: 35. You may not vote on this poll

Reply
  Search this Thread
Old 03-17-2017, 09:31 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Rep: Reputation: 213Reputation: 213Reputation: 213
Emacs vs VIM ?


Hello,

For writing, working, programming,... (g)VIM [1][2] and (x)EMACS [1] are likely one the best companions.

Would you rather use VIM or EMACS?

Have Fun

Last edited by Xeratul; 03-23-2017 at 02:22 AM.
 
Old 03-17-2017, 10:44 AM   #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: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668
Friends don't let friends (and admins don't let users) use emacs.

Of course now you're in for it as your poll doesn't include nano or other toys some people prefer.

Last edited by MensaWater; 03-17-2017 at 10:45 AM.
 
Old 03-17-2017, 12:58 PM   #3
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 5,774

Rep: Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133
As Dr Johnson said (with incredible prescience!)
Quote:
Sir, there is no settling the point of precedency between a louse and a flea.
 
Old 03-17-2017, 01:08 PM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,585

Rep: Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351
Which tastes the best, Highland or Island malt?
Ford or Vauxhall?
Nobody can tell you which you prefer.
 
Old 03-22-2017, 07:56 PM   #5
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,285

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
aI prefer vi<esc>:wq
 
Old 03-22-2017, 08:17 PM   #6
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 9,985

Rep: Reputation: 4570Reputation: 4570Reputation: 4570Reputation: 4570Reputation: 4570Reputation: 4570Reputation: 4570Reputation: 4570Reputation: 4570Reputation: 4570Reputation: 4570
EMACs is not the only scriptable text editor in the world anymore.
 
Old 03-23-2017, 02:06 AM   #7
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Original Poster
Rep: Reputation: 213Reputation: 213Reputation: 213
Quote:
Originally Posted by MensaWater View Post
Friends don't let friends (and admins don't let users) use emacs.

Of course now you're in for it as your poll doesn't include nano or other toys some people prefer.
Does it have something to do that Emacs has a larger installation footprint than emacs ?
here a nice pic/illustration.

Just a bit of history. At that time, long long time ago, who invented the first VI and the first EMACS? But maybe there was also some other type of innovative ideas for editing. Btw, is there something else than hjkl method to fly within the doc? Aren't other type of programms that invented similar mode?
Attached Thumbnails
Click image for larger version

Name:	0xbabaf000l.png
Views:	41
Size:	146.0 KB
ID:	24576  

Last edited by Xeratul; 03-23-2017 at 02:12 AM.
 
Old 03-24-2017, 09:06 AM   #8
powderburns
LQ Newbie
 
Registered: Dec 2011
Distribution: debian, mint, opensuse, fedora, ubuntu, fbsd
Posts: 11

Rep: Reputation: Disabled
I'll admit to having a preference for nano, pico, or ee. I need a cheat sheet if I have to use vi.
 
Old 03-24-2017, 12:24 PM   #9
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,547

Rep: Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082
I grew up with emacs, so that's what I prefer. I can fumble through a session with vi and its variants. I will admit, though, that the thought of someone not familiar with emacs trying to "fumble through" a session with it is not a pleasant one.

Yes, the legend on the <ctrl> key on my keyboard gets worn off quite rapidly.
 
Old 03-24-2017, 01:54 PM   #10
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Original Poster
Rep: Reputation: 213Reputation: 213Reputation: 213
Quote:
Originally Posted by rknichols View Post
I grew up with emacs, so that's what I prefer. I can fumble through a session with vi and its variants. I will admit, though, that the thought of someone not familiar with emacs trying to "fumble through" a session with it is not a pleasant one.

Yes, the legend on the <ctrl> key on my keyboard gets worn off quite rapidly.
I prefer the hjkl since you do not need 2 hands. With a single hand you can fly all through a document.
I use 'n' to scroll down/page down and 'u' for page up

besides 44 Mb, so much:
Code:
# apt-get install emacs --no-install-recommends
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  adwaita-icon-theme emacs24 emacs24-bin-common emacs24-common
  imagemagick-common libatk-bridge2.0-0 libatspi2.0-0 libcolord2
  libfftw3-double3 libgtk-3-0 libgtk-3-bin libgtk-3-common libjson-glib-1.0-0
  libjson-glib-1.0-common liblqr-1-0 libm17n-0 libmagickcore-6.q16-2
  libmagickwand-6.q16-2 libotf0 librest-0.7-0 libsoup-gnome2.4-1
  libwayland-cursor0 m17n-db
Suggested packages:
  emacs24-common-non-dfsg emacs24-el libfftw3-bin libfftw3-dev gvfs m17n-docs
  libmagickcore-6.q16-2-extra gawk
Recommended packages:
  at-spi2-core colord
The following NEW packages will be installed:
  adwaita-icon-theme emacs emacs24 emacs24-bin-common emacs24-common
  imagemagick-common libatk-bridge2.0-0 libatspi2.0-0 libcolord2
  libfftw3-double3 libgtk-3-0 libgtk-3-bin libgtk-3-common libjson-glib-1.0-0
  libjson-glib-1.0-common liblqr-1-0 libm17n-0 libmagickcore-6.q16-2
  libmagickwand-6.q16-2 libotf0 librest-0.7-0 libsoup-gnome2.4-1
  libwayland-cursor0 m17n-db
0 upgraded, 24 newly installed, 0 to remove and 0 not upgraded.
Need to get 37.2 MB of archives.
After this operation, 144 MB of additional disk space will be used.
Do you want to continue? [Y/n]

Last edited by Xeratul; 03-24-2017 at 02:05 PM.
 
Old 03-27-2017, 05:30 AM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,863

Rep: Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598
emacs vs vi is prob the oldest flame war in *nix history

Its certainly handy to know the basics of vi as it comes as part of the basic install in just about all forms of *nix: Commercial eg Solaris,..., Linux (although default tends to be vim), *BSD inc MacOSX etc.
Its been around forever and is very lightweight.
You often used to get a (cutdown) version on rescue floppies and also handy over slow/low bandwidth lines.
 
Old 03-27-2017, 07:18 AM   #12
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,148
Blog Entries: 4

Rep: Reputation: 3232Reputation: 3232Reputation: 3232Reputation: 3232Reputation: 3232Reputation: 3232Reputation: 3232Reputation: 3232Reputation: 3232Reputation: 3232Reputation: 3232
When I have to use a character-mode text editor, I find myself trending towards nano, but that's just me.

The reality is that you need to have some functional familiarity with all three, because you never know quite what might or might not be installed somewhere.
 
Old 03-27-2017, 07:26 AM   #13
cynwulf
Senior Member
 
Registered: Apr 2005
Location: Walsall, UK
Posts: 2,634
Blog Entries: 7

Rep: Reputation: 2151Reputation: 2151Reputation: 2151Reputation: 2151Reputation: 2151Reputation: 2151Reputation: 2151Reputation: 2151Reputation: 2151Reputation: 2151Reputation: 2151
There is no substitute for knowing vi basics. If you install a base system of any *BSD, you will usually only have the vi editor. If you need to configure, loader tunables, rc.conf, etc then you need a text editor from the start, possibly with no network access or X server.

Stuff like the nano or pico editor is ok for quick edits, but I always had problems with it messing up line breaks, or adding lines breaks all by itself based on word wrapping and terminal emulator or vt windows size.

I've never used emacs.
 
Old 03-27-2017, 08:40 AM   #14
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 5,615
Blog Entries: 3

Rep: Reputation: 2871Reputation: 2871Reputation: 2871Reputation: 2871Reputation: 2871Reputation: 2871Reputation: 2871Reputation: 2871Reputation: 2871Reputation: 2871Reputation: 2871
Quote:
Originally Posted by cynwulf View Post
There is no substitute for knowing vi basics.
I agree. However, I've not gone very far beyond the basics. Strangely, I do configuration files, shell scripting, and CSS using vi only. Other scripting, occasional attmpts at programming, and some XHTML / XML gets done in Emacs only. The division is almost exclusive. So I use them both so much that I did not vote in the poll, just commented.
 
Old 03-27-2017, 02:46 PM   #15
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Original Poster
Rep: Reputation: 213Reputation: 213Reputation: 213
Quote:
Originally Posted by chrism01 View Post
emacs vs vi is prob the oldest flame war in *nix history

Its certainly handy to know the basics of vi as it comes as part of the basic install in just about all forms of *nix: Commercial eg Solaris,..., Linux (although default tends to be vim), *BSD inc MacOSX etc.
Its been around forever and is very lightweight.
You often used to get a (cutdown) version on rescue floppies and also handy over slow/low bandwidth lines.
The problem with emacs is the constant use of CTRL, which is kind of difficult to get used.
There aren't easiest movement of cursors using hjkl ? It is more natural, nan?

Does it have something to do to the abscence of arrows on first computers in history?
 
  


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
[SOLVED] vim&emacs khw_2003 Red Hat 4 02-03-2014 05:19 PM
Emacs vs Vim splintercdo General 19 11-20-2011 09:10 AM
Quitting emacs and vim xeon123 Linux - General 2 08-25-2011 06:13 PM
regarding colors in vim and emacs pranith Linux - Newbie 0 02-10-2005 03:10 AM
Emacs or Vim? Whats best for me? wiggywag Linux - Software 19 10-15-2003 06:22 PM

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

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