l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2003 May 13 16:07

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] missing vim
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] missing vim


> I need to spend more time with the manual myself.  If you are looking
> for a basic tutorial enter:
>         C-h t

Already been through that, but thanks. (-:

> Not sure, but both C-<uparrow> and C-<downarrow> jump mode-specific
> paragraphs.  That may be what you are looking for.

Note quite. Suppose my cursor is in the "l" in "looking" in the above
sentence, and I want to move it to the "d" in "downarrow". If they are
two physical lines, that is easy, but if it's just one long line that's
been wrapped, how do I move up by virtual/screen lines instead of
physical lines?

In vim, I could type gk to do the above.

> M-g doesn't work on my system.  I believe it works with your system
> because because you remapped the key combo.  I use C-c g <linenumber>
> <enter>.  To get this to work I put this in my .emacs:

I don't have any problems going to specific lines; seeing line numbers
on each line is just an interface tweak I'd like to be able to make.

> I also like to know which column number I am in:
>         (column-number-mode t)

Didn't know that one! It's handy. Thanks.

> The closest things which I actually use are:
>      M-< move to top of buffer
>      M-> move to bottom of buffer
>      C-l center buffer around point

H/M/L basically saves time when I see text I want to edit at the top or
bottom of the screen but my cursor is many lines away. 

> > > (7) Folding -- automatically collapse sections of the code based on some
> > >     criteria. In vim: set fdm=indent
> I am not sure what you mean.  Do you have a short example?


def printstuff():
	print "some stuff"
	print "some other stuff"


def printstuff():
----(2 lines)--------------

so the function is essentially collapsed until I inspect it. If your
source code contains a lot of functions, folding lets you see an
overview of the structure of the file without seeing the contents 
of each function.

When you expand a function, you see an overview of its logic without
having to see all the nested stuff, etc. Very nice. Load a reasonably
large C/C++ source code file in vim, type ":set fdm=indent" and play
with it. (-:

One other question, and I can't believe I forgot this one.

Are there emacs commands for moving forward or backwards to a specific
character? I use f/F and t/T (and ;) all the time in vim and it saves me
from spending a lot of time holding down arrow keys.

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!