LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 02-03-2006, 08:44 AM   #1
StevenO
Member
 
Registered: Jan 2006
Distribution: Slackware 10.2
Posts: 45

Rep: Reputation: 15
Guys, do you use VI/VIM for your daily tasks?


I broke out into cold sweat after I finished editing some text documents using vim. I understand that veterans prefer VI/VIM anytime.

PS: This is not some emac vs vi debate. Im just trying to appreciate VI/VIM.

Last edited by StevenO; 02-03-2006 at 08:46 AM.
 
Old 02-03-2006, 08:58 AM   #2
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
its one of those things that once you get used to it, it's very effective for everyday use.

I use vi everytime i edit a file. infact i've got 'vi-itis'. When i use a word processor i keep typing vi command and become surprised by the results.

vi, is very fast and powerful, if you can climb the steep learning curve. that said, its not a competition. whatever works best for you. i just use vi so much because i work on hp unix and emacs etc isn't on there (by default)

also if you are a sys admin it's pretty much a must have skill as when systems go down or there is not GUI to use, you need to be able to use vi to get things done.

but yes, it is pretty scary. I would recommend trying to learn at least a little vi. it will help you in a crisis:

http://ce.uml.edu/vi.htm

there are others like the above...
 
Old 02-03-2006, 09:09 AM   #3
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 48
I really like vim, and I don't use very many of the "features", I tend to use it more like a word processor, where I use the arrow keys to navigate, and so forth. The only ones I do use are 'cw' 'r' 'p<and variations>' and 'd<and variations>'
 
Old 02-03-2006, 09:14 AM   #4
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
I don't have any other editors installed. . .
 
Old 02-03-2006, 09:15 AM   #5
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
i love being able to do replaces and stuff:

:1,$ s/oldtext/newtext/g

ah happy days. Where's my sed/awk pocket reference gone... :-D

the most important key to learn is "/" to searh for things. e.g

/sometextiwannafind

and press 'n' to find the next instance.

And also ling number eg. SHIFT G takes you to the bottom of a page and 343 SHIFT G takes you to line 343. Anyway, i'm sure that VI tutor is better than anything i could do... lol
 
Old 02-03-2006, 09:16 AM   #6
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
i bet you've got ed and sed..... you can even use a word processor like OoO
 
Old 02-03-2006, 09:21 AM   #7
Stack
Member
 
Registered: Oct 2003
Distribution: FreeBSD
Posts: 325

Rep: Reputation: 30
I just it on a daily basis because i like instant load times... Not to mention you can type all day in vim and never have to take your hands off the keyboard.
 
Old 02-03-2006, 10:14 AM   #8
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
is there anything else for a sysadmin !?!?

Serious, when you start to use find/replace, macros, and other cool stuff, them you will realize that there is no substitute for vi !
 
Old 02-03-2006, 11:23 AM   #9
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
Quote:
When i use a word processor i keep typing vi command and become surprised by the results.
I do that all the time. I'm constantly having to backspace ":wq" when I'm using notepad. Maybe I need to investigate if there is vi for windows.....
 
Old 02-03-2006, 11:36 AM   #10
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
Of course there is, I use it all the time: http://www.vim.org/download.php
 
Old 02-03-2006, 11:40 AM   #11
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
vi is used by every time a file needs to be edited.. there are no alternatives, nothing amounts to vi, it's the best..
 
Old 02-03-2006, 11:42 AM   #12
geeman2.0
Member
 
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo, Slackware
Posts: 345

Rep: Reputation: 30
I use it for just about everything.
From daily tasks, writing shopping lists, writing code, etc...
It's so fast and efficient once you've got it down. I only know a handful of basic commands compared to the gurus out there, but even that is enough to let vi's beauty shine through.

The only time I use OpenOffice instead of vi is for editing my resume, since so many companies expect it in MS Word format
 
Old 02-03-2006, 12:20 PM   #13
Dragineez
Member
 
Registered: Oct 2005
Location: Annapolis
Distribution: Ubuntu
Posts: 278

Rep: Reputation: 41
WordStar vs WordPerfect

In the fledgling days of the micro-computer revolution the predominant word processor was WordStar. It was obviously a vi derivative - and WordStar and I never developed a good relationship. WordPerfect came along and quickly supplanted WordStar as the world's word processor of choice. Why? Because the vast majority of users - me included - don't have minds that think in a vi sort of way.

I can use vi. I can get it to do what I need; and I curse it furiously every time I'm forced to use it. No dig against vi or the people that use it. Using and loving vi doesn't mean you're ugly, cruel, or anti-social (doesn't mean you're not either - come to think of it). I have many friends that are fervent vi users. Just not my cuppa.
 
Old 02-03-2006, 12:59 PM   #14
Padma
Member
 
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808

Rep: Reputation: 30
I learned vi 20 years ago. I use it frequently at work, when I have to edit files on our Solaris boxen. I use it at home for quick and easy edits on my Linux box. But I will admit, that if my editing needs are large and/or complex, I'm more likely to fire up KWrite, for instance.
 
Old 02-03-2006, 01:34 PM   #15
Stack
Member
 
Registered: Oct 2003
Distribution: FreeBSD
Posts: 325

Rep: Reputation: 30
Quote:
Originally Posted by geeman2.0
The only time I use OpenOffice instead of vi is for editing my resume, since so many companies expect it in MS Word format
Here is a piece of advice. Don't try to make word documents using OO. Your resume would go straight to the trash the second one of those tabs/tables is misaligned.
 
  


Reply



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
encryption with Vim (vim -x) mikshaw Linux - Software 2 03-07-2007 09:00 AM
Scheduled tasks? onionkn1ght Linux - Software 3 01-11-2005 10:20 PM
cron tasks MaverickApollo Linux - Software 1 02-02-2004 01:06 PM
suspending tasks ??? flynnhandley Linux - Software 2 10-01-2003 11:32 PM
Need some tasks AMDPwred Linux - General 5 02-28-2003 03:22 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 07:25 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
Open Source Consulting | Domain Registration