|
Grex > Agora56 > #122: How to edit another file without save the current file in vi? | |
|
| Author |
Message |
| 22 new of 59 responses total. |
mcnally
|
|
response 38 of 59:
|
Feb 25 19:34 UTC 2006 |
Well, you must've remapped it then.. :-p
|
naftee
|
|
response 39 of 59:
|
Feb 25 21:54 UTC 2006 |
poof
|
remmers
|
|
response 40 of 59:
|
Feb 26 21:31 UTC 2006 |
Re #38: Nope, control-Z is the DEEfault.
I should mention that another reason I use emacs these days is that by
installing the nxml plugin, you get the world's greatest XML (and hence
XHTML) editor. Color syntax highlighting, on-the-fly well-formedness
checking -- and if you've specified a RelaxNG schema, it checks schema
conformance on the fly too. Awesome!
|
mcnally
|
|
response 41 of 59:
|
Feb 26 22:43 UTC 2006 |
re #40:
> Nope, control-Z is the DEEfault.
Aha! Proof of a sinister conspiracy by the authors to render their
editor invulnerable to job control, thus preventing their hapless
victims from suspending the emacs process. Eeeeeevil! :-p
|
fudge
|
|
response 42 of 59:
|
Feb 27 10:22 UTC 2006 |
I already pepper my files with ":w" 's when in gui editors... if I started
using something like emacs I'd be f**ked
|
remmers
|
|
response 43 of 59:
|
Feb 28 14:11 UTC 2006 |
Re #41: When ctrl-z is bound to vi mode switching, you can suspend emacs
by typing ctrl-x ctrl-z.
Re #42: Emacs' file-save command is ctrl-x ctrl-s, which is easier to
type than vi's :w.
|
twenex
|
|
response 44 of 59:
|
Feb 28 14:12 UTC 2006 |
<twenex raises one eyebrow>
|
fudge
|
|
response 45 of 59:
|
Feb 28 14:35 UTC 2006 |
hmm yeah but most of those key presses could do something potentially much
more nasty than putting a ":w" in a file, given that most control-##
combinations are mapped to commonly used functionality like copy/cut/paste,
undo, print... maybe 15 years ago, but today, I'm quite reluctant to embrace
an app that works completely different from the rest of the OS/Desktop/apps
|
gull
|
|
response 46 of 59:
|
Mar 4 00:30 UTC 2006 |
I don't like vi for that reason. The modal design is too different
from every other app I use.
|
kingjon
|
|
response 47 of 59:
|
Mar 4 00:58 UTC 2006 |
I *like* vi for that reason. Every other application requires me to move my
fingers too far.
|
marcvh
|
|
response 48 of 59:
|
Mar 4 03:32 UTC 2006 |
Re #46: that's just because you don't use rogue (or hack or nethack)
|
gull
|
|
response 49 of 59:
|
Mar 7 22:21 UTC 2006 |
Re resp:47: I dunno. The Esc key is way up there in the corner.
|
kingjon
|
|
response 50 of 59:
|
Mar 7 22:47 UTC 2006 |
Re #49: Sometimes I hit control-[ instead. I know that I often hit control-H
instead of backspace (but that's because Grex thinks it *is* my backspace, when
my backspace key actually sends control-?).
|
remmers
|
|
response 51 of 59:
|
Mar 7 23:04 UTC 2006 |
Vi is definitely hand and finger friendly. (You can change grex's
concept of what your backspace is, by the way...)
|
kingjon
|
|
response 52 of 59:
|
Mar 7 23:13 UTC 2006 |
Yes, but if I'm direct-dialed or sshed in from a Windows SSH client it *is*
control-H. I've asked before if there's a way to tell when I'm logging in which
it is.
|
gull
|
|
response 53 of 59:
|
Mar 8 02:05 UTC 2006 |
My favorite text-based editors are the ones that use WordStar
keystrokes, just because WordStar was the first wordprocessor I learned
to use.
|
kingjon
|
|
response 54 of 59:
|
Mar 8 03:07 UTC 2006 |
MS-DOS Edit was the first word processor I learned to use, but it didn't have
many special keystrokes. After that I went to WordPerfect for DOS (4.1? 5.1?),
and then when we got a computer with Windows (3.1) I used Wordperfect for that,
which erased the old habits because it had all the functions switched around.
|
naftee
|
|
response 55 of 59:
|
Mar 8 04:00 UTC 2006 |
MS-DOS Edit sucks balls compared to PC-DOS's E editor. I like that editor!
|
twenex
|
|
response 56 of 59:
|
Mar 8 13:24 UTC 2006 |
vi is the first editor I've (had to) learn keystrokes for.
Or was that MicroEMACS for the Amiga? If it was, they didn't stick.
|
albaugh
|
|
response 57 of 59:
|
Mar 9 21:01 UTC 2006 |
Being ignorant of other options, I have always used:
:!vi file2
|
gull
|
|
response 58 of 59:
|
Mar 18 01:11 UTC 2006 |
I learned how to use EDIT at one point, too. When I later found out
about ed, EDIT's odd syntax made more sense.
|
wilt
|
|
response 59 of 59:
|
May 16 23:52 UTC 2006 |
HACKED BY GNAA LOL JEWS DID WTC LOL
|