You are not logged in.

#1 2005-04-27 17:39:25

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

to anyone NOT using vim

read this tutorial:
http://www.vi-improved.org/tutorial.php

I think it's great.

Offline

#2 2005-04-27 17:51:50

ozar
Member
From: USA
Registered: 2005-02-18
Posts: 1,686

Re: to anyone NOT using vim

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

#3 2005-04-27 18:19:28

cmp
Member
Registered: 2005-01-03
Posts: 350

Re: to anyone NOT using vim

i used vim for some time now, but I never got past dd :w :wq, etc. so thanks, that tutorial really helped me.

Offline

#4 2005-04-27 18:50:52

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: to anyone NOT using vim

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

#5 2005-04-27 19:08:16

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: to anyone NOT using vim

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

#6 2005-04-27 19:52:25

deft
Member
Registered: 2005-03-14
Posts: 79

Re: to anyone NOT using vim

Thanks phrak - might wean me off nano wink

Offline

#7 2005-04-27 20:05:46

Kern
Member
From: UK
Registered: 2005-02-09
Posts: 464

Re: to anyone NOT using vim

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 ? smile

Offline

#8 2005-04-27 20:16:17

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: to anyone NOT using vim

Kern wrote:

You mean theres another way other than hitting the big [X] in the top right ? smile

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...  roll

Offline

#9 2005-04-27 20:25:12

Kern
Member
From: UK
Registered: 2005-02-09
Posts: 464

Re: to anyone NOT using vim

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 smile

Offline

#10 2005-04-27 20:27:02

shadowhand
Member
From: MN, USA
Registered: 2004-02-19
Posts: 1,142
Website

Re: to anyone NOT using vim

phrakture wrote:

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..... roll

Excellent tutorial. I may just have to force myself to use Vim more.


·¬»· i am shadowhand, powered by webfaction

Offline

#11 2005-04-27 20:47:41

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: to anyone NOT using vim

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

#12 2005-04-27 20:49:43

droog
Member
Registered: 2004-11-18
Posts: 877

Re: to anyone NOT using vim

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

#13 2005-04-27 22:00:51

ozar
Member
From: USA
Registered: 2005-02-18
Posts: 1,686

Re: to anyone NOT using vim

lanrat wrote:

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

#14 2005-04-27 22:24:12

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: to anyone NOT using vim

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

#15 2005-04-27 23:07:39

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: to anyone NOT using vim

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...

Offline

#16 2005-04-28 08:16:22

arooaroo
Member
From: London, UK
Registered: 2005-01-13
Posts: 1,268
Website

Re: to anyone NOT using vim

cmp wrote:

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:

http://www.comp.leeds.ac.uk/andyr/misc/vim/spell.html

Offline

#17 2005-04-28 08:35:44

soloport
Member
Registered: 2005-03-01
Posts: 442

Re: to anyone NOT using vim

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

#18 2005-04-28 08:55:03

arooaroo
Member
From: London, UK
Registered: 2005-01-13
Posts: 1,268
Website

Re: to anyone NOT using vim

soloport wrote:

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

#19 2005-04-28 14:50:59

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: to anyone NOT using vim

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

#20 2005-04-28 16:59:14

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: to anyone NOT using vim

phrakture wrote:
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

#21 2005-04-28 17:46:07

miqorz
Member
Registered: 2004-12-31
Posts: 475

Re: to anyone NOT using vim

"To anyone NOT using vim..."

Keep up the good work? wink


http://wiki2.archlinux.org/

Read it. Love it. Live it. Or die.

Offline

#22 2005-04-28 20:05:46

Meshuggin
Member
From: /home/meshuggin
Registered: 2005-03-23
Posts: 137

Re: to anyone NOT using vim

cmp wrote:

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 tongue, so this tutorial is very helpful to take full advantage of the great Vim smile


Arch GNU/Linux 0.7.1 (Noodle)
Linux 2.6.14-archck1

Offline

#23 2005-04-28 21:05:06

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: to anyone NOT using vim

miqorz wrote:

"To anyone NOT using vim..."

Keep up the good work? wink

how's your Eight Megs doing? Swapping? Constantly?  :twisted:

Offline

#24 2005-04-29 19:48:28

klapmuetz
Member
From: Germany
Registered: 2005-03-19
Posts: 75

Re: to anyone NOT using vim

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

#25 2005-04-29 20:51:12

Kern
Member
From: UK
Registered: 2005-02-09
Posts: 464

Re: to anyone NOT using vim

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

Board footer

Powered by FluxBB