LinuxQuestions.org
Review your favorite Linux distribution.
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 09-26-2013, 05:07 PM   #1
doughyi8u
Member
 
Registered: Apr 2010
Posts: 254

Rep: Reputation: 10
best text editor (vi vs. vim etc)


I know the basic vi commands and have been using elvis for a while. What is the best editor in your opinion. What are the differences between all the vi and vi clone editors?

Also, is emacs better to some?
 
Old 09-26-2013, 05:27 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871
http://www.linuxquestions.org/questi...ar-4175441865/
Should answer most of your questions.
 
Old 09-26-2013, 05:59 PM   #3
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
I just use vim, I only use vi if I either can't install it, or can't be bothered.

I even use vim on my phone..

I can't really comment on emacs, I was exposed to vi{m} first..

but from what I understand, bash is 'emac like' in some respects, ctrl+a .. ctrl+e Ctrl+b , ctrl+w
there is a vi mode for bash, I did turn it on once, but got 'lost' even though I use vim all the time...

link for anyone who thinks I'm making it up
http://www.catonmat.net/blog/bash-em...e-cheat-sheet/
 
Old 09-26-2013, 05:59 PM   #4
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,285

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
My brain/fingers always use vi commands, even when I'm not using vi. Makes a real mess of those Notepad files if I happen to be on a friends Windows computer at the time. Even posts to forums like this occassionally get the trailing :wq in them.
 
Old 09-26-2013, 06:14 PM   #5
doughyi8u
Member
 
Registered: Apr 2010
Posts: 254

Original Poster
Rep: Reputation: 10
I do the same thing haetrig. As far as using vi for bash, I use it and it's really useful.
Thanks for your feedback
 
Old 09-26-2013, 07:42 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871
Quote:
Originally Posted by haertig View Post
My brain/fingers always use vi commands, even when I'm not using vi. Makes a real mess of those Notepad files if I happen to be on a friends Windows computer at the time. Even posts to forums like this occassionally get the trailing :wq in them.
I had to add an alias ":q='exit'" to my shell because I got to many command not found errors. Nowadays all programs I use daily have Vim-like (or at least somewhat similar) keybindings to avoid something like that, but on Windows that still happens of course.
 
Old 12-10-2016, 09:52 AM   #7
Fat_Elvis
Member
 
Registered: Oct 2016
Distribution: FreeDOS 1.2
Posts: 309

Rep: Reputation: 92
Quote:
Originally Posted by Firerat View Post
there is a vi mode for bash, I did turn it on once, but got 'lost' even though I use vim all the time..
"set -o vi" works as expected.

You might want to mess around with ~/.inputrc too
 
Old 12-10-2016, 09:56 AM   #8
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
it all relies on personal preference.
 
Old 12-10-2016, 12:24 PM   #9
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 5,484
Blog Entries: 16

Rep: Reputation: 3252Reputation: 3252Reputation: 3252Reputation: 3252Reputation: 3252Reputation: 3252Reputation: 3252Reputation: 3252Reputation: 3252Reputation: 3252Reputation: 3252
I always use vim or gvim. Vim was my first Linux editor. I find classic vi unusable.
 
Old 12-10-2016, 03:31 PM   #10
Yoda47
Member
 
Registered: Jan 2006
Location: MI, USA
Distribution: Fedora 28
Posts: 46

Rep: Reputation: 15
I use vim in the command line, or Kate in the GUI.
 
Old 12-10-2016, 03:58 PM   #11
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 20 MATE, MX-19.3, antiX, EndeavourOS
Posts: 3,323
Blog Entries: 17

Rep: Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262
doughyi8u,

It is all down to personal preference.

My preference is for vim.

For anybody who has never used vim, here are some useful links:

http://www.oregonwebradio.net/backup...uickstart.html

http://vim.wikia.com/wiki/Tutorial

https://danielmiessler.com/study/vim/#gs.RF38Yvk

vim user manual:
http://vimdoc.sourceforge.net/htmldoc/usr_toc.html
 
Old 12-10-2016, 04:59 PM   #12
Fat_Elvis
Member
 
Registered: Oct 2016
Distribution: FreeDOS 1.2
Posts: 309

Rep: Reputation: 92
Quote:
Originally Posted by beachboy2 View Post
doughyi8u,

It is all down to personal preference.

My preference is for vim.

For anybody who has never used vim, here are some useful links:

http://www.oregonwebradio.net/backup...uickstart.html

http://vim.wikia.com/wiki/Tutorial

https://danielmiessler.com/study/vim/#gs.RF38Yvk

vim user manual:
http://vimdoc.sourceforge.net/htmldoc/usr_toc.html
For someone completely new to vim, may I suggest "vimtutor"?
 
Old 12-10-2016, 08:57 PM   #13
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 17,391
Blog Entries: 27

Rep: Reputation: 5405Reputation: 5405Reputation: 5405Reputation: 5405Reputation: 5405Reputation: 5405Reputation: 5405Reputation: 5405Reputation: 5405Reputation: 5405Reputation: 5405
vim is my preference, but I will admit that it has quite a learning curve. I think the thing that turned the trick for me was this video from Linux Voice. After I watched it, vim started to make sense.

I'm hardly expert, but I've become quite comfortable using it. Kate is my second choice, but I have no problems with using Gedit or whatever's available on the system I'm using.
 
1 members found this post helpful.
Old 12-10-2016, 09:46 PM   #14
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
My favorite editor is
Code:
less
except you can't edit with it.
 
Old 12-11-2016, 11:33 AM   #15
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 417

Rep: Reputation: 74
Quote:
Originally Posted by AwesomeMachine View Post
My favorite editor is
Code:
less
except you can't edit with it.
Well, you can actually. Hit 'v' and see.
 
1 members found this post helpful.
  


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] return text from geany or other editor to IDE after saving and closing the editor mtdew3q Programming 4 05-15-2013 10:40 PM
[SOLVED] vi / vim editor - how to display text file one line on one row ? masuch Linux - Newbie 3 08-06-2012 09:14 AM
LXer: Personalize and Optimize Vim editor using Packtís new Vim 7.2 book LXer Syndicated Linux News 0 05-20-2010 10:20 PM
Editor comparison: vim VS vim-lite, Cleaning vim Ruler2112 *BSD 4 04-13-2009 04:26 PM
Which light text editor can copy text from file and paste in browser? davidas Linux - Software 9 03-06-2006 11:28 AM

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

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