thanks for all the help, gents doing just what i want now.
sk On 3/27/07, fREW <[EMAIL PROTECTED]> wrote:
On 3/27/07, Andy Wokula <[EMAIL PROTECTED]> wrote: > shawn bright schrieb: > > lo there, > > > > i have two quick questions. > > 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. > > Without mappings: > > " keep cursor in same column > :set nostartofline > " global, also has influence on other commands > > " how many lines to scroll > :set scroll=1 > " local to window > > Then use Ctrl-D and Ctrl-U. A count changes the value of 'scroll'. > > Don't miss the help: > :h 'sol > :h 'scr > > -- > Regards, > Andy > > EOM > What I would do for the rails stuff (and what I actually do for Template Toolkit w/ perl) is use abbreviations. For example: :ab RLS <% %>^]hhi :ab RL= <%= %>^]hhi That way when you type RLS(space) it will put you inside the brackets automatically. Note: the ^] is a literal, so to type it you need to do <C-v><Esc>. -- -fREW
