Post #264,390
8/10/06 11:50:13 AM
|

Emacs.
Best multiple-machine environment feature:
Open a dired (directory edit: ls on steroids) remotely via scp/ssh, then edit and save the files remotely as if they were local. This works over FTP as well.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #264,393
8/10/06 11:54:26 AM
|

You can do that in vi, too
I wouldn't be surprised if the interface is a little clunkier though. I remember setting up a bash alias to handle the remoting part. Something like 'alias vir = 'vim -r user@host:/'. (Don't use that command, it's pseudo-bash.)
===
Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats]. [link|http://DocHope.com|http://DocHope.com]
|
Post #264,396
8/10/06 12:26:49 PM
|

I don't see that in the man page.
The closest thing is "--remote", which isn't the same thing at all as it requires a "vim server" (shudder) running on the remote machine.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #264,399
8/10/06 12:38:20 PM
|

Nope, it's a plugin
[link|http://www.vim.org/tips/tip.php?tip_id=337|The tip on it] says the plugin is installed by default, though. To me that's close enough to "default behavior" as to make no difference.
Oh, and when I said the auto-completion above was done via a macro, I meant plugin.
===
Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats]. [link|http://DocHope.com|http://DocHope.com]
|
Post #264,401
8/10/06 12:44:37 PM
|

Looks somewhat similar
Except for the remote file browsing capability you get with dired in Emacs.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #264,404
8/10/06 12:55:09 PM
|

Yeah, it's not as general-purpose
That's why I set up the alias. Actually probably a quick bash script, now that I think about it. I had to already know the remote file structure for it to be useful. And if I knew that, and had SSH access, I'd just connect to the remote box and edit in vim there.
===
Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats]. [link|http://DocHope.com|http://DocHope.com]
|
Post #264,408
8/10/06 12:57:19 PM
|

Right.
I like to use Emacs to browse the file structure on the web servers in DEV. Sometimes I use it to make remote mods to Javascript files for testing as well.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #264,397
8/10/06 12:27:34 PM
|

nano can edit files on remote machines...
just not as pretty.
But I believe its simplicity is a big plus.
Basically it is reading a file into a new buffer, using the execute command from the read-file command
But still at this point the peep needs something simple in character mode.
-- [link|mailto:greg@gregfolkert.net|greg], [link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwetheyFreedom is not FREE. Yeah, but 10s of Trillions of US Dollars? SELECT * FROM scog WHERE ethics > 0;
0 rows returned.
|
Post #264,398
8/10/06 12:32:21 PM
|

Emacs is as simple as you make it.
"emacs somefile" <use arrow, page, home, end keys to move around> Type some stuff to put it in the file. C-x C-c to save and exit (That's the one key combo you *have* to learn, and even that could be rebound to F10 or something).
If they know the bash keybindings, then they know a good portion of the basic Emacs bindings as well.
The advantage of Emacs is that it grows with the user. It's a lot simpler for people to learn than vim if they are new to both (I've verified that here with QA people coming from Notepad to a Solaris environment). The modal nature of vi/vim kills newbies every time.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #264,406
8/10/06 12:55:19 PM
|

"Modal == teh sukc" for newbies, indeedly do.
If I had to do it all over again, I'd choose emacs... everyday and twice on Sunday.
The thing is, unlearning the bad habits vi/vim have taught me over the years would be very difficult. Its like learning to live with a chronic pain, you learn to love it after a while and define your life around and with it.
-- [link|mailto:greg@gregfolkert.net|greg], [link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwetheyFreedom is not FREE. Yeah, but 10s of Trillions of US Dollars? SELECT * FROM scog WHERE ethics > 0;
0 rows returned.
|
Post #264,764
8/14/06 1:10:34 AM
|

What bad habits would they be? (new thread)
Created as new thread #264763 titled [link|/forums/render/content/show?contentid=264763|What bad habits would they be?]
"Insert crowbar. Apply force."
|