> first, is there a way i can scroll text under the cursor ( so that the
> cursor stays on the same place in the terminal, but the text scrolls
> anyway )
> i just think that would be really cool.
If you want the cursor to stay in the middle of the screen, you
can set your 'scrolloff' setting to some ridiculously high value
such as
:set scrolloff=9999
If, however, you want to pan the text under your cursor, you have
to do a bit more work to intercept the various commands that
would move as you desire. Something like
:nnoremap j j<c-e>
:nnoremap k k<c-y>
might do the trick. Fine-grained control when doing larger jumps
becomes problematic merely for having to intercept them all and
get vim to do something intelligent for each one. Not
impossible, but perhaps more trouble than it's worth.
> second. i do a lot of rails stuff, so i open and close a lot of rails tags.
> <% stuff here %>
> <%= output stuff here %>
>
> does someone have a suggestion to automate some of this ?
There are some plugins/scripts on the vim.org site that ease
working with tagged-style documents (html, xml, wml, docbook,
etc) so you might try searching there for keywords like "tag" and
"close". Or you could do some work with insert-mode mappings and
abbreviations.
Just a few ideas,
-tim