LinuxQuestions.org
Review your favorite Linux distribution.
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 04-11-2007, 07:28 AM   #1
Diego Torquemada
LQ Newbie
 
Registered: Jan 2007
Location: Innsbruck, Austria
Distribution: Fedora Core 4
Posts: 14

Rep: Reputation: 0
Vi/Vim/gVim vs Kate


Sorry for calling to the holy war... but I just google it and I did not find anything relevant...

My question is, what does the horrible editor Vim and its variants can do that Kate cannot? Something that would make me beg the developers of Kate to implement...

I know that Vi it has compiler integration, for programming... but in that case I would just use a MODERN IDE like KDevelop...

So, any comments are welcome

Diego

Last edited by Diego Torquemada; 04-11-2007 at 07:38 AM.
 
Old 04-11-2007, 08:00 AM   #2
trevelluk
Member
 
Registered: Nov 2003
Location: Bristol, UK
Distribution: Debian Lenny, Gentoo (at work)
Posts: 388

Rep: Reputation: 32
Well, one of the really, really big advantages is that vi(m) runs from the command line, and so can be used over SSH connections without the hassle of setting up X forwarding.
 
Old 04-11-2007, 08:43 AM   #3
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 47
That "horrible editor" is immensely powerful and easy to use once you take the time to learn it.

As the saying goes, it's very user-friendly, it's just quite selective about who its friends are..

If you don't seen any advantage in using it, it's very simple: Don't. If you really want to know why others do, run through vimtutor, google some basic tutorials, and look at the vim web page to find out just how much it can really do.
 
Old 04-11-2007, 08:44 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
vi (vim--whatever) is in a class of CLI editors which maximizes power and speed, but requires you to learn a bunch of commands. If you do not need its features then don't bother with it.
Have you tried NANO?
 
Old 04-11-2007, 04:42 PM   #5
Diego Torquemada
LQ Newbie
 
Registered: Jan 2007
Location: Innsbruck, Austria
Distribution: Fedora Core 4
Posts: 14

Original Poster
Rep: Reputation: 0
In fact I have done the vimtutor, and I have spent some afternoons trying to learn vim from some tutorials... it is not so much difficult, but I dont find anything that I say this is a must to, that Kate does not offer me... that is why I want something that hooks me. I dont understand then why do people love vim over the intuitive Kate. (However, my best editor ever is ULTRAEDIT, in Windows)

BTW, I think I can do editing with SSH using also Midnight Commander, and that also does not require too much graphical power, and that editor is not bad, and it is quite intuitive.
 
Old 04-11-2007, 08:34 PM   #6
SlowCoder
Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Fedora (Desktop), CentOS (Server), Knoppix (Diags)
Posts: 934

Rep: Reputation: 38
Like other posters said, there are multiple reasons for using vi(m). 1. It's run from the console, so you don't need to be running X, and has a great deal of features.
2. Just about every linux box has it installed as a default package, even ancient distibutions. So you can learn just one, albeit painful, editor, and be ready to go on any linux box you're on.
3. It has a bunch of features, many of which (I believe) are designed to assist with programming and scripting, which other editors do not have.

Otherwise, I agree with you; it can be a pain if you don't know what you're doing. If you don't like it, don't use it.

I personally like 'nano', which is a clone of the old 'pico' editor that came as part of the 'pine' email package. 'nano' is very intuitive as a CLI editor.
 
Old 04-11-2007, 08:43 PM   #7
fjd
Member
 
Registered: Apr 2006
Distribution: Ubuntu 10.10
Posts: 39

Rep: Reputation: 15
Vi/Vim becomes second nature when you're using it day in and day out. One of the really powerful features that is highly productive us you never have to take your hands off the keyboard to use the mouse (a pro and a con). you can use the command line to do regular expressions multi commands, and something close to a macro in Vi. all without taking your twitching fingers off the keyboard to help productivity.

You asked for an example of what vi can do and Kate can't. It's not something you do every day but how about in one command inserting a tab at the beginning of the line only in lines 5 though 20. Another cool vi feature is whatever command you last did just hit the . key to redo. Delete the next few words from the cursor with a :3dw go to command mode =: execute '3' of the next command and of course d=delete w=word.

I use vi where needed and I use the appropriate IDE when I develop. Kate is in my hot list because I use it for cut and paste as well as normal editing with a mouse. When you're in a console window it's easier to do vi file vs kate filename, wait for kate to launch the gui and edit using keyboard and mouse, and save.

It's not going to win a beauty contest...but in the productivity arena for quick editing it's has what's needed. It's all personal preference in the end.

FJD

Last edited by fjd; 04-11-2007 at 08:55 PM.
 
Old 04-01-2009, 09:19 AM   #8
sathiyamoorthy
Member
 
Registered: Feb 2008
Posts: 32

Rep: Reputation: 15
Arrow

traffic driving links removed

Last edited by Tinkster; 04-01-2009 at 12:02 PM.
 
  


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
gvim or vim? Abomb Programming 28 12-15-2006 12:27 AM
does anyone know how to enable line completions in vim or gvim Joseph Schiller Linux - Software 2 10-31-2005 10:11 PM
prompt within gvim/vim/vi zchoyt Linux - Software 6 02-02-2005 07:30 AM
vim or gvim raees Linux - General 7 03-17-2004 06:02 PM
vim / gvim Shak Linux - Software 4 04-03-2003 10:25 AM


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