You are not logged in.
read this tutorial:
http://www.vi-improved.org/tutorial.php
I think it's great.
Offline
I hated vi/vim for the longest but once I forced myself to use it, I quickly fell in love with it.
Now, all I can say is WOW!
oz
Offline
i used vim for some time now, but I never got past dd :w :wq, etc. so thanks, that tutorial really helped me.
Offline
yeah, I think one important thing the tutorial points out is to not use insert mode to often (unless creating a totally new document) - cw and r/R are important
I think everyone hates vi(m) at first... I remember first time I used it I couldn't figure out how to exit... it was a nightmare
Offline
I've read this page before but then I forgot about it,
nice explanations for rc files and other stuff,
arch + gentoo + initng + python = enlisy
Offline
Thanks phrak - might wean me off nano
Offline
Nice link.
i frequently use vim, but jump back into gedit, or nedit for "difficult" stuff. Coward that i am.
Added to my bookmarks thanks.
I remember first time I used it I couldn't figure out how to exit... it was a nightmare
You mean theres another way other than hitting the big [X] in the top right ?
Offline
You mean theres another way other than hitting the big [X] in the top right ?
I meant console vim - I think I was in slackware or debian at the time... and something said "hey edit this file with [vim filename]" and I wondered to myself what vim was...
Offline
to me it was a pan scouring powder! (uk tv adverts)
Emacs in uni frightened the bejeezus out of me. refused to use it on the home pc. Discovering Vi made emacs look easy ... ish.
Think it was Vi i met in the console. Had to "phone a friend" to save / quit etc.
funny how things change, and less is more
Offline
I think everyone hates vi(m) at first... I remember first time I used it I couldn't figure out how to exit... it was a nightmare
Amen! I got stuck for about 10 minutes my first time using Vim because I couldn't figure out what the hell this Insert Mode was and how to get out of it.....
Excellent tutorial. I may just have to force myself to use Vim more.
·¬»· i am shadowhand, powered by webfaction
Offline
BTW you can also start vimtutor (which is included in vim package) for a quick 30 min lesson. Vimtutor is available in several languages.
Offline
Haha ya the first time i used vim, right after switching from windows i also got stuck and couldnt exit, but my ninja like windows reflexes hit the power button in no time. i rebooted and decided to never use vim again.
Now i use it every day and love it.
edit: ya vimtutor is great thats what got me back to using it.
Offline
BTW you can also start vimtutor (which is included in vim package) for a quick 30 min lesson. Vimtutor is available in several languages.
Yeah, the built-in tutor is how I learned vim and I still fire it up every now and then.
oz
Offline
Socrates: sometimes you will try to write to a read only file
Socrates: and it will say "read-only file"
Socrates: and you type
Socrates: :w! to say "fuck you, I don't care it is read only"
confusing ... does this mean that it would even write the file if you don't have permissions to it? what magic is this? (i never used ! with w before)
The impossible missions are the only ones which succeed.
Offline
confusing ... does this mean that it would even write the file if you don't have permissions to it? what magic is this? (i never used ! with w before)
If I recall, it checks if it can flip the permissions so you have write capability (it tries a chmod) - it will fail if it cannot chmod it, otherwise it writes to the file.... I don't know if it chmods the file back to the original permissions or not...
Offline
i used vim for some time now, but I never got past dd :w :wq, etc. so thanks, that tutorial really helped me.
I've been using Vim for years now and I realised a while back that I'll never take advantage of its full power. There's a lot to learn I suppose. A while back, I knocked up a single page reference sheet of useful Vim commands. I know I have to refer to it every now and again. Maybe some of you guys may find it useful too.
http://www.comp.leeds.ac.uk/andyr/misc/vim/vim.pdf
Naturally, you can only fit a tiny subset of functionality onto a single sheet, so forgive me if I've missed your favourite commands!
Also, whilst on the subject of Vim, I also wrote another page regarding adding spell checking functionality. This is handy for me as I write Latex files and HTML pages in Vim, and so like to spell check my contents. Again, others may be interested, so here's the link:
Offline
Nice PDF cheat sheet, arooaroo. [printing] I've never gotten the hang of vi or vim. (Been using emacs since 1984.) So, much appreciated!
One thing that surprized me about emacs and Arch, however, is the dependencies seem to include xorg and gnome libs. Why? :shock: What ever happened to plain old terminal-mode emacs?
Sorry to stear off-topic, but this has been bugging me, as I often need to build minimal-install boxes -- but I can't kick emacs, baby... I just can't kick it... 8)
Offline
One thing that surprized me about emacs and Arch, however, is the dependencies seem to include xorg and gnome libs. Why? :shock: What ever happened to plain old terminal-mode emacs?
Sorry to stear off-topic, but this has been bugging me, as I often need to build minimal-install boxes -- but I can't kick emacs, baby... I just can't kick it... 8)
That's very surprising. You're right, you should be able to use emacs from a shell. I'd get in touch with the maintainer (Judd in this case) to query this. There must be a good reason because Judd knows what he's doing.
In the meantime, you could always download the pkgbuild and remove the X deps yourself.
Offline
well, at the very least it could be split up the was vim/gvim are - the vim package contains everything vim needs (syntax files, plugins, etc) and the gvim package contains just the X-based binary and depends on the vim package.... maybe emacs+xemacs can be done the same way... *shrug*
Offline
dp wrote:confusing ... does this mean that it would even write the file if you don't have permissions to it? what magic is this? (i never used ! with w before)
If I recall, it checks if it can flip the permissions so you have write capability (it tries a chmod) - it will fail if it cannot chmod it, otherwise it writes to the file.... I don't know if it chmods the file back to the original permissions or not...
thanks for the info ... in most cases i own my files and have rw access to them, so i never used w! untill now
The impossible missions are the only ones which succeed.
Offline
"To anyone NOT using vim..."
Keep up the good work?
Offline
i used vim for some time now, but I never got past dd :w :wq, etc. so thanks, that tutorial really helped me.
Me too , so this tutorial is very helpful to take full advantage of the great Vim
Arch GNU/Linux 0.7.1 (Noodle)
Linux 2.6.14-archck1
Offline
"To anyone NOT using vim..."
Keep up the good work?
how's your Eight Megs doing? Swapping? Constantly? :twisted:
Offline
I'm using vim all the time.
At home, at work, in the car, on the street. in the restaurant.
But I always find better new cool features from those vim-related sites... It's great!
Very nice link phrakture!
Hello girls, I like rock climbing, mountain biking and rafting! Write me!
Offline
With the current demand for easy to use utilities and under constant pressure from newbie friendly types, Vim Devs have given in, and regardless of bloat, have released a Newbie happy, easy to use, Os independent version.
The FAQ is included with the package.
Its easy enough for the wife/granny/househusband to use and is guaranteed to work, even in inexperienced hands.
Link :- Easy Vim
Offline