![]() ![]() |
Jun 16 2004, 06:52 AM
Post
#31
|
|
|
Group: Members Posts: 233 Joined: 2-December 03 From: Boston, MA Member No.: 1,029 |
QUOTE copy the word "The" with three keystrokes: y3l (yank three characters to the right)
I can do that in two: yw (yank word) QUOTE Brief was and is still one of the best text editors ever developed.
I must concur with this. Brief was awesome! The best thing about it is that it was totally programmable using a special compiled macro language. Most of the basic editor functionality was implemented in the same macro language and you could change it all you wanted. You could also implement major new features with ease. The only problem with this, of course, is that you were lost on someone else's machine. Oh well. QUOTE How do you set the delete key to work instead of sending ^? in vi on the SL5500?
It's probably easier to just use vi's delete key: x ~ray |
|
|
|
Jun 16 2004, 07:53 AM
Post
#32
|
|
![]() Group: Members Posts: 125 Joined: 16-November 03 From: Lisboa Member No.: 940 |
QUOTE (...)it was the only game in town(...)
This is why I learned to use VI, because situations like that can happen, and then I got myself just using it for everyday file editing tasks. Each one uses what fits best to ones needs, you can use an electric screwdriver, it is better, but sometimes there's only a normal screwdriver... |
|
|
|
Jun 16 2004, 07:58 AM
Post
#33
|
|
|
Group: Members Posts: 219 Joined: 14-February 04 Member No.: 1,861 |
Another reason to learn vi is that you can use it to edit shell commands. I use this all the time:
bash/ksh: set -o vi Hit ESC Now you are in vi mode, you and J/K through commands (sorry no arrows anymore), / to search for previous commands, you can insert, delete chars, jump by word or EOL. Very nice. To get it back to arrorws type: set -o emacs You can use the arrows again and emacs commands as well. |
|
|
|
Jun 16 2004, 08:06 AM
Post
#34
|
|
|
Group: Members Posts: 1,284 Joined: 31-January 04 From: Vancouver, BC -> NYC, NY Member No.: 1,633 |
agreed. VI is the basic editor for unix/linux. Once you are competent with it, you will no longer have to worry about what system you are on or whether it has nano or pico on it. You just go in and edit. When a unix system is down to init 1, it won't matter what unix machine you're on.
QUOTE You'll find vi (or a variant of it) on just about every *nix box in the world. Basic competence can be a real help when you end up on one of them. Keeps you from having to just stare dumbly at a shell prompt.
|
|
|
|
Jun 24 2004, 01:01 PM
Post
#35
|
|
|
Group: Members Posts: 44 Joined: 18-June 04 From: Essex, UK Member No.: 3,744 |
i would say folks, (speaking from non-pda vi use) if you know how to use it, then vi can be the best editor ever.
it has scripting and excellent syntax highlighting. the reason it is on every unix system is because it is so so small, compared to emacs vi is absolutely tiny, if you are a unix user, even if u prefer emacs, its always good to know vi well as sometimes you will have such a broken system to fix that the only thing that will still work is vi. vim is alot easier than vi, (vim can emulate vi awell) vim is simply vi with some more clever stuff that you will never see (often) built in. seriously, (on a non-pda) once you get the hang of the commands, its great. [insert] - switches you between insert and replace mode [esc] - puts you in command mode [esc] v - puts you in visual mode (for copy and paste etc) [shift]aa - move between windows - command mode - :q # quit :q! # quit without save :w # save :wq # save and quit :u # undo :split file.txt # open another file in a vertical split window :read file.txt # read in file.txt at the current location :-) |
|
|
|
Jun 24 2004, 01:30 PM
Post
#36
|
|
|
Group: Members Posts: 57 Joined: 29-May 03 From: USA Member No.: 61 |
Sometimes the system is so broken that even vi doesn't work. That's why in addition to vi , I also know ed -- it always works. And, of course, it is much more obfuscated than vi
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 18th June 2013 - 11:21 PM |