The discussion highlights the transition from traditional text editors to Vim, emphasizing its powerful features for editing, particularly for LaTeX and programming. Users appreciate Vim's efficiency, especially its distinct modes—insert and command—which, while initially confusing, enhance productivity once mastered. Anecdotes illustrate common pitfalls for beginners, such as mistakenly executing commands in command mode. The conversation also touches on the popularity of Vim compared to Emacs, with references to humorous quotes and experiences with other editors like ed. Additionally, it notes that while Vim on Windows lacks Python support, it is fully functional on Linux, allowing for useful plugins like vimcalc and nerdtree, which enhance the editing experience. Mastery of normal mode is emphasized as key to leveraging Vim's capabilities effectively.
#1
Ackbach
Gold Member
MHB
4,148
93
I run Windows machines at the moment, but I have always had a soft spot in my heart for Linux and the open source philosophy. So I decided to start learning hard-core Vim. It's fun to see how powerful Vim is. I think I'm going to switch from TextPad to Vim for $\LaTeX$ editing now.
I am using Linux now and used vi a long time ago. However, having distinct insert and command modes seems a little crazy to me. It was fun for a while, but I felt relief when I could finally use a normal text editor where typing text always inserts it.
Some anecdotes and jokes about vi.
I read about a guy who opened a text in a vi-like editor and wanted to type "edit." He did not switch from the command mode to insert mode, so "e" selected the whole text ("everything"), "d" deleted it, "i" switched to insert mode. Thus, the whole document was replaced by the letter "t."
However, "Using a free version of vi is not a sin but a penance" (Richard Stallman).
vi has two modes – "beep repeatedly" and "break everything."
Tim O'Reilly said, in 1999, that O'Reilly Media's tutorial on vi sells twice as many copies as that on Emacs (which could mean either that vi is more popular or harder to learn).
Even earlier, I used a ed-style non-visual line-oriented text editor.
Let's look at a typical novice's session with the mighty ed:
Code:
golem$ ed
?
help
?
?
?
quit
?
exit
?
bye
?
hello?
?
eat flaming death
?
^C
?
^C
?
^D
?
---
Note the consistent user interface and error reportage. Ed is generous enough to flag errors, yet prudent enough not to overwhelm the novice with verbosity.
#3
skoker
10
0
Vim is the best! i use vim for my main editor to write c code. it is a great editor and for programming and latex. there are lots of plugins for c and latex.
if you use vim on windows from the installer it does not have python support. but on Linux it does. and you can use python plugins. this one works quite nice for quick calculations.
http://www.gregsexton.org/portfolio/vimcalc/
also the nerdtree plugin works nice if you are just starting out.
the trick to vim is to learn how to use normal mode very good. then only use insert mode and visual mode when you need to to. most people never figure this out and spend all there time in insert mode which is much slower and does not use the good features of vim.
In my discussions elsewhere, I've noticed a lot of disagreement regarding AI. A question that comes up is, "Is AI hype?" Unfortunately, when this question is asked, the one asking, as far as I can tell, may mean one of three things which can lead to lots of confusion. I'll list them out now for clarity.
1. Can AI do everything a human can do and how close are we to that?
2. Are corporations and governments using the promise of AI to gain more power for themselves?
3. Are AI and transhumans...
Sorry if 'Profile Badge' is not the correct term.
I have an MS 365 subscription and I've noticed on my Word documents the small circle with my initials in it is sometimes different in colour document to document (it's the circle at the top right of the doc, that, when you hover over it it tells you you're signed in; if you click on it you get a bit more info).
Last night I had four docs with a red circle, one with blue. When I closed the blue and opened it again it was red. Today I have 3...