someone mentioned tab completion the other day in vim - and the C-d bit
for choices. in that behaviour, vim follows most shells. however vim
also offers tab completion in insert mode.
if you're typing ~/.moz you can then press C-xC-f to "tab out" the
filename. there's a description of what you can do next at the bottom
of the screen - C-n for the next match is the one i use most. once you
have the match you want just go back to typing as normal.
some other random features:
you can have vim pull up a man page by pressing K over a word. so
if you edit this and press K over "fopen" it will bring up the fopen
man page. the one downside i've seen is that it doesn't let you
specify a section. i rarely want to see the man page for printf(1)
for instance - man 3 printf is usually more useful.
it's easy to dump the contents of a command into your buffer. a
quick way to stick a calendar into a mail is to enter !!cal in
command mode like so:
May 2004
Su Mo Tu We Th Fr Sa
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31
you can also filter a section of text. again in command mode you
can do !}fmt to format a paragraph. the } is a movement command,
you can replace that with any movement command: 5} or { or G for
example.
kevin
--
kevin at ie.suberic.net ~ "you're either with us or against us." --dubya
iraq: vietnam again? ~ in that simplistic world-view progressives and
a new lbj selected - ~ liberals are "us" while bush and bin laden are
"looney bush junior" ~ "against us."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.linux.ie/pipermail/ilug/attachments/20040519/a8d23a9d/attachment.pgp
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!