You are not logged in.
Today, I was learning Vi and did this sample work:
Vi is a simple and powerful editor that allows you to have full control over your work.
Key features include:
- Insert mode and command mode.
- Does not use many resources.
- Find and replace: Oh oh, you done a mistake. It's rich not rick. You can fix everywhere in your work.
- Increase of work done, because you don't have pick up the mouse to do something.
- Bookmarking: Allows you to return to that line at page 513 fast.
- Code formating: (Only in vim) Allows you to code just like if you had Notepad++ in low-resource edition.
- Edit all files at once: You can edit a couple of files, having just one window open.
- Buffers: Copy that essay into another essay in Vi, using the 36 buffers that come with Vi.
All included in Vi.
This work is done by VOT in Vi.
All problems in this work have to be reported to VOT or he might use Vi to destroy the planet.
Therefore, it is best to move to Mars.
I was frustated at first, having to go to command/insert mode, switching between lines/characters is ugly, etc. But then I realized, that vi is a really powerful tool.
I actually wrote this work in Leafpad, but it was way slower. I had to use the mouse to switch lines, etc.
I've also learned a lesson: Never press a key in command mode unless you know what it does. I pressed . and my whole line was gone. Any ideas what . does?
Offline
Have you tried vim? More features, more awesome :-)
Offline
You should also consider Emacs. It's superior in some ways (particularly customizability, extensibility and documentation), but it takes a major investment to master it, some would say a lifetime investment. Generally Vim is a better choice for sysadmins working on many systems (since some variant of vi is available on every *nix system and vi(m) is great for quick edits), and Emacs for heavy coders.
Last edited by JohannesSM64 (2011-10-27 13:39:10)
Offline
karol: I should try it, thanks!
Johannes: vi is enough really for me.
Offline
Please, oh please, oh please. If this turns into an editor war, so help me, I'll close this.
You have been warned
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Do not want: A editor war.
Do want: Tips and Hints for vim, congrats posts, how to teach parrots to use it, etc.
Last edited by VOT Productions (2011-10-27 14:50:50)
Offline
Tips and Hints for vim are plentiful on teh interwebz.
Parrots do not need to use an editor because pirates use a magnetized hook and a steady hand :-)
Offline
No one has answered the "technical" question yet: '.' repeats your last change command [:help .]. It seems in your case this was 'delete a line'. This is very useful when you want to do some repetitive task, like e.g. adding something at the end of some lines. Related but even more powerful are "complex repeats" [:help complex-repeat].
I would recommend you to do a short emacs tutorial now, so that you get an impression of how it feels, and then you choose what fits you better. I myself am a vim lover, but emacs has also a great deal to offer.
Offline
No one has answered the "technical" question yet
Sorry, I didn't think it was an actual question ;P
You can use 'undo' if something unexpected happens e.g. you deleted instead of yanking.
Offline
I just started using Vim on an experimental, text-only Arch system. I've been an Emacs user for some years now, but I want to be at least competent in Vim.
The Bytebaker -- Computer science is not a science and it's not about computers
Check out my open source software at Github
Offline
You can use 'undo' if something unexpected happens e.g. you deleted instead of yanking.
Mind you, vi has only one level undo, while vim has full undo capabilities. For me a very important difference.
zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)
Offline
karol wrote:You can use 'undo' if something unexpected happens e.g. you deleted instead of yanking.
Mind you, vi has only one level undo, while vim has full undo capabilities. For me a very important difference.
Yup, that's why I use only vim. I'm not too sloppy with my typing but had 5k+ lines disappear on me a couple times in my life :-)
Offline
vimtutor and vim user manual are good for starters
Offline
Woah, thanks for the topic activity.
Ah, thanks for telling me . is a repeat command thingy.
lijpbasin: Is vimtutor a app or a manual?
Oh and by the way, what if there isn't a pirate around and parrots want to type something up?
Offline
lijpbasin: Is vimtutor a app or a manual?
It's a command you run in a terminal. It's not exactly a manual, more like a guide or some e-tutor, hence the name.
Last edited by karol (2011-10-27 16:59:18)
Offline
I like vi, but I do not like vim.
Offline
Congratulations VOT, I also like Vim. I like it because it had a fairly shallow learning curve at the start (it isn't hard to get in and out of insert mode using 'i' and ESC), and yet after several years I still feel like I am learning new tricks.
Offline
I love vim (or vi). Been using it for years. Its totally essential if (like me) you look after tons of servers, as you can bet vi[m] is there, where the others may not. Therefore I consider it an essential for any *nix user.
Once you get the hang of it, its worth looking at tuning it to your needs via the .vimrc file. Tons of examples out there on how to do this, and worth while doing, especially the syntax highlighting.
Enjoy, its more powerful than people realize.
Offline
Surely no Community Contribution. Moving to Newbie Corner.
Please take care to select the proper forum for new threads.
To know or not to know ...
... the questions remain forever.
Offline
I like vi, but I do not like vim.
Interesting. Why is that, if I may ask?
Offline
I love the "vi experience" but I really dislike vimscript. So I switched a while back to Emacs + Evil extension (was called vimpulse back then) and now I have the best of both world \o/
Offline
I have tried emacs and vim, but I always go back to vi. But, I have been using various UNIX-type systems since the early 80's.
One great thing about vi is that if you have to work on a partially disabled system in one of those little ash shells, you still have vi when nothing else is available. If you are used to using vi, no problem.
Tim
Offline
Ah cool, dw deletes words. oh and f replaces, oh and I can run Thunar while running Vim! And directory listings! Yanking and pasting... and more!
Offline
VOT Productions wrote:lijpbasin: Is vimtutor a app or a manual?
It's a command you run in a terminal. It's not exactly a manual, more like a guide or some e-tutor, hence the name.
Thanks karol, for answering this question for me
Offline