LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-11-2006, 05:25 AM   #16
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 30

Quote:
Originally Posted by anjanesh
Hey - mc is pretty good - how is that its not better than vi ?
When you get used to vi, or its cousin vim, you can do things insanely fast with it. I should probably change 'get used to' to 'become and expert in', which will take years and years since there's so many things to learn and new tips to take in. That's not to say that mc isn't good (it is) - it's just that vi has the potential to be amazing in the hands of the right user. I guess that's what nitinatindore means.

AlienDog - I suppose what's odd for some is less odd for others; I've never noticed vi to be *that* odd, and personally I like the fact that j and k by default go up/down one logical line rather than one screen line (probably comes from editing code - if I'm on line 45 character 12, I want "down a line" to put me on line 46 character 12 instead of, say, line 45 character 92). But then yes, it is pretty complex and with a user interface of that type they're not going to please everyone. And the size thing isn't so much of an issue since it has to be installed...
 
Old 01-11-2006, 06:17 AM   #17
anjanesh
Member
 
Registered: Sep 2004
Location: Navi Mumbai
Distribution: Ubuntu 12.04 64-bit
Posts: 230

Original Poster
Rep: Reputation: 30
Since Im using all this via SSH, its probably slow over the network - need to start using these on a Linux box directly.
BTW, one thing I liked abt mc is that it allows mouse interaction - within Putty.
So far I could find anything that'll allow mouse within Putty - except mc.
 
Old 01-11-2006, 07:00 AM   #18
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 46
Quote:
Originally Posted by Dtsazza
AlienDog - I suppose what's odd for some is less odd for others; I've never noticed vi to be *that* odd, and personally I like the fact that j and k by default go up/down one logical line rather than one screen line (probably comes from editing code - if I'm on line 45 character 12, I want "down a line" to put me on line 46 character 12 instead of, say, line 45 character 92). But then yes, it is pretty complex and with a user interface of that type they're not going to please everyone. And the size thing isn't so much of an issue since it has to be installed...
Naturally it'a matter of preference, and the good thing about vi(m) is that most anything can be changed, it just takes quite a lot of work. I complained about the size of vim because compared to other vi clones it's _huge_ and for example compared to elvis, which is about 10 MB smaller, it really isn't that much better. Unfortunately Elvis doesn't support UTF-8 which makes it useless for me Really it doesn't _have_ to be installed. Single UNIX Specification says that it has to, but really it's up to the user. There are some programs that use vi (visudo comes to mind), but other editors can well replace it for those programs also.

I have a long term love/hate relationship with the vi family. I can't make up my mind whether I love them or hate them. They certainly get the job done and become quite efficient when you've used them for years. But then if you have to spend years in learning to edit text, can you really call that efficient afterall? Bill Joy has talked extensively about the shortcomings of vi and the alike, the fact that often goes unnoticed by vi enthusiasts...

Last edited by alienDog; 01-11-2006 at 07:01 AM.
 
Old 01-11-2006, 07:20 AM   #19
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,161
Blog Entries: 4

Rep: Reputation: 135Reputation: 135
vim is quite simple once you figure out the basic commands. Otherwise I hardly use any of the features and I use it only for simple text editing.

I prefer pico or nano for the basics, but since vi(m) is everywhere you got to at least know the basics. When I first used vim, I used to reboot the machine to exit, since I hadn't a clue as to how to quit it in the first place.
 
Old 02-01-2006, 10:41 PM   #20
anjanesh
Member
 
Registered: Sep 2004
Location: Navi Mumbai
Distribution: Ubuntu 12.04 64-bit
Posts: 230

Original Poster
Rep: Reputation: 30
I tried editing a 224 MB file in mc but I was getting the error 'File to large' etc.
How do I edit this 224 MB file ? I thought linux editors could edit 1 GB files.
All I need to change is ENGINE=MyISAM to Type=MyISAM.
Any idea how to edt this in vi or someother editor ?

Thanks
 
Old 02-01-2006, 11:28 PM   #21
devinnull
Member
 
Registered: Dec 2005
Location: UT-USA
Distribution: RHEL 3/4 Servers - FC 5 x64 on the desktop - Edubuntu for the kiddies
Posts: 53

Rep: Reputation: 15
Since this is the newb forum...another thing you can do to start out is use VNC to remotely access your desktop or use webmin to admin you machine. Both need to be installed of course but are very available for most any distro if not standard.

They let you work remotely and can be a help in figuring out some of the other tasks if you still need the GUI. i.e. To set you that remote X session.
 
Old 02-02-2006, 03:06 AM   #22
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
As to know which editor is best suited for the job, I don't know.
Just try a few and see how they behave.

Each editor is implemented differently, so they will behave differently with respect to handling large files.
For vi(m), at least, I can assure that it will take a long time to open such a file (vi(m) reads part of the file into memory). But others can be more efficient, perhaps.

In theory, Linux files can typically grow to 2GB (due to a hardware limitation on 32 bit systems).
When hard disks are addressed using 64bits, then you can even have larger files than that. But your kernel and filesystem need to support that.
So, you could open large files in text editors. But the problem will most likely be performance.
However, as you already pointed out, some editors may refuse to open large files, probably for protecting you agains their poor performance or simply because their implementation isn't capable of handling such large files.
To make a long story short, it really depends on the editor you're using, really.
 
Old 02-02-2006, 06:18 AM   #23
anjanesh
Member
 
Registered: Sep 2004
Location: Navi Mumbai
Distribution: Ubuntu 12.04 64-bit
Posts: 230

Original Poster
Rep: Reputation: 30
Thanks very much - managed to edit in vi - checked up vi features online.
Edited the 224 MB file - slow in loading - but easy enough.
 
Old 03-30-2014, 06:06 PM   #24
Jpm60621
LQ Newbie
 
Registered: Mar 2014
Posts: 1

Rep: Reputation: Disabled
Finally something I can help with

On Ubuntu server, I use nano - it's more user friendly than vi IMO. The. Ok and from your ssh session print is $ sudo nano path/filename
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Terragen Alternative AMMullan Linux - Software 1 09-07-2006 03:25 AM
Alternative to Cubase? little_penguin Linux - Software 7 05-14-2005 12:48 AM
IE alternative jkassemi Linux - Software 12 04-11-2005 11:35 PM
No Alternative to MS? nuka_t General 6 01-14-2005 01:32 PM
du alternative plisken Linux - General 3 07-09-2003 11:28 PM


All times are GMT -5. The time now is 04:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration