Does anyone else hate vi editor?

  • Thread starter Thread starter mesa
  • Start date Start date
AI Thread Summary
The discussion centers around the vi editor, highlighting its longstanding presence in programming and Unix systems. Users express frustration with its complexity and lack of user-friendliness, questioning why it remains a standard tool in academic settings. Some argue that vi's efficiency and speed, especially for experienced users, outweigh its learning curve. The conversation touches on alternatives like vim, emacs, and various modern editors, with some participants advocating for tools that offer better usability and features, particularly for LaTeX editing. The debate reflects a broader tension between tradition and the need for more accessible, contemporary software solutions in programming and academic environments.
mesa
Gold Member
Messages
694
Reaction score
36
This one takes the cake.

Throughout my time at University I have been forced to use many inadequate systems but vi editor tops the list. Why do we keep things like this around? To keep people out of programming? Keep the 'club' exclusive? AAAARRRRRGGGHHHHH!

My PI (and apparently many others on our campus) actually use this thing when writing papers :O
They are nuts!

There, that feels better; back to work.
 
  • Like
Likes Silicon Waffle and einswine
Computer science news on Phys.org
How are you forced to use it? Do you not have your own computer on which you can install whatever software you like?
 
Its the one editor that is on every unix system. Its small, its fast and it works without X-Windows. The vim variant is available on all major platforms.

It also has a storied history being one of the first of the screen editors that programmers encounter and its still around today and will be while Unix is still around in the world.

https://en.wikipedia.org/wiki/Vi

It can't be any harder than learning latex.
 
  • Like
Likes FactChecker
jtbell said:
How are you forced to use it? Do you not have your own computer on which you can install whatever software you like?
It's what they use for this course. Aside from my own personal dislike my PI isn't complaining.

jedishrfu said:
Its the one editor that is on every unix system. Its small, its fast and it works without X-Windows. The vim variant is available on all major platforms.

It also has a storied history being one of the first of the screen editors that programmers encounter and its still around today and will be while Unix is still around in the world.

https://en.wikipedia.org/wiki/Vi

It can't be any harder than learning latex.

Although it can produce beautiful equations, I have never been a big fan of Latex either.
A lot of this (vi editor usage difficulties) could be solved by simply allowing for copy and 'plain text' paste between notepad,word, or whatever to the editor.

I will say this, it is cool that it was the first text editor and interesting in that regard to play with, but we have come a long way since that time, why not just make it user friendly? Is it too difficult to do?
 
You can mark, copy and paste if you use the vim variant. I've done this on a mac to get syntax colored programming code into Open Office or LibreOffice.
 
Linux has nano which is like edit in DOS.
 
emacs! Once you learn to use it, it is much faster than any other editor I've tried.
 
  • Like
Likes cpscdave
vi is funny but it ruins your ESC button :frown:
 
Use a LaTeX IDE like Texworks or TexStudio. There's no reason to use a dinosaur like vi and then have to run latex 4 times or whatever. Just because your PI refuses to accept that better things have been invented since the 1970s, doesn't mean you have to tie yourself down.
 
  • Like
Likes mfb and einswine
  • #10
How is vi inadequate? Sounds to me like u simply haven't been taught how to use it properly. vi let's u zoom all over the place, have tons of files open, awesome syntax highlight. Do you expect to have a monitor and a GUI when you work on servers, you'll be very disappointed if so. By far the most useful part about vi though, is it's ability to script it from bash:
Code:
vi filename.txt -c ':g/^/m0'-c ':wq'
You sure can't do that with gedit.
 
  • Like
Likes nsaspook and Silicon Waffle
  • #11
I have a strong feeling that if he spends any significant amount of time editing LaTeX files, that configuring headless servers is not really something he needs to worry about...

P.S. Texworks and TexStudio both have regex search/replace (although it's much easier to use in Texworks).
 
  • #12
phyzguy said:
emacs! Once you learn to use it, it is much faster than any other editor I've tried.

EMACS! Best editor ever!
I even use Xemacs on windows.

Code:
sudo apt-get install emacs

But vi isn't too bad, just have to use it a bit and you'll get used to it :)
 
  • #13
Although I don't use it for Latex - I use TexStudio, Vi isn't that bad for programming. It allows to do real quick work, but it needs its time to learn it properly.
 
  • #14
I have no love for Vi either, but I also don't do a ton of editing on it. Usually it's for small files too.
 
  • #15
Used vi/vim/elvis for years. That does not make it all that easy to learn, especially after you are already used to other editors on Windows. Some vi-isms may be counter- intiutive for some users.

There is a reason there are many editors available. That people think and work differently is an important one. Someone, who constrains others to use a particular tool because they personally use it, is not doing anyone else any favors. It is more an exercise in [ ... something else(fill in your choice)] than teaching.
 
  • #16
I used vi for years and thought it was OK. It has the advantage that you don't have to use the mouse, which slows things down.

Where I worked there was a philosophical struggle between vi and emacs. I didn't give a sh** about that. vi was more reliable at the time, so that is what I used.

There is a big advantage to a programmable editor like vi/ex.
 
  • Like
Likes FactChecker
  • #17
I use VI for any non-java related coding I do, especially when writing code that is not local to my system. Honestly though, once you spend a week or two learning how to find what you need, I code quicker in it than I do using sublime or some other editor.
 
  • #18
nedit is avail on pretty much all linux distributions now. I use it in server mode (nc) so searches and selections are shared across multiple simultaneous edit sessions. (1 executable, few hundred open files with separate icons)
(I also use xfce3 desktop so I can have positionally located active icons for the hundred or so files I usually have opened across 10 desktops)

Nedit has column cut and paste, syntax highlighting, multiple tabs (which I don't use) , macros, etc etc.

Emacs is a great editor for its hardcore users, but I hate its cryptic UI, and the fact that I can't even have simple line numbering. I've tried to transistion to it several times, but I would have to change how I do things. Nedit is the one for me.

Vim is bearable if you have to use a form of vi. I use vi when I have to, which is seldom. Sometimes (rarely) it's the only thing available.
 
  • #19
gvim (the graphics option of vim) is by far my favorite editor. It has very powerful capabilities.
 
  • Like
Likes bigfooted
  • #20
<begin advertisement>
I don't have any particular issues with vi.
If you take some time to learn it, especially how to use regEx with it, that painful editor can very quickly become a beast with limitless power.
</begin advertisement>

or use vim or gedit or nano or gvim or anything else you fancy if you just want to edit some small bit of text.
 
  • #21
The vi power users love the fact that they can do everything they want with keystrokes, and do it fast.
I can use vi, but I often make a mess because I'm looking at the keyboard and happen to be in the wrong mode.

Emacs is the same way, with more sophisticated language addons, like Verilog-mode.el, which is popular with RTL hardware designers.

Being a terrible typist, I go for nedit on linux. (and Ultraedit on the PC)
 
  • #22
  • Like
Likes Borg, cpscdave and Greg Bernhardt
  • #23
meBigGuy said:
Being a terrible typist, I go for nedit on linux. (and Ultraedit on the PC)

That's the whole point. Vi is for people who know how to type blindly. You are not assumed to do complicated 2 or 3 finger commands like control shift x all the time like in emacs or to get your hands off the keyboard to use the mouse. It works only well with an american keyboard. Therefore it works also perfectly with latex where many non-ascii characters can be inserted typing something like "a to get an ä.
 
  • #24
Vi isn't my favorite but back in the day I chose to learn/use it exclusive because it's the only visual editor that is 100% certain to be on ALL unix systems regardless of vintage, vendor or version. HPUX from the 1980s to Sun in the 90s to Mac OS X in the 21st century.

I originally used emacs and liked it but I couldn't count on it being on all the systems I was required to use so I abandoned it. Then Mac become "Unix with an awesome UX/UI" and it became moot.
 
  • Like
Likes FactChecker
  • #25
jsgruszynski said:
I chose to learn/use [Vi] exclusive because it's the only visual editor that is 100% certain to be on ALL unix systems regardless of vintage, vendor or version.
That is a real advantage. It's the same reason I like Perl for scripting. It is everywhere. Vi for editing and Perl for scripting.
 
  • #26
I used vi (and later vim) for so many years that I can do almost everything in it. But if you ask me how I did it, I can't tell you. My fingers know, but my brain can't verbalize it.

Bottom line--for either emacs or vi (or vim), you need a cheat sheet handy, plus a certain amount of practice, unless you've spent a lot of time with it.

Something like this works pretty well: https://www.fprintf.net/vimCheatSheet.html

It's old-school, but I recommend printing it out.
 
  • Like
Likes QuantumQuest
Back
Top