map something to <C-V><tab>, and it will insert a real tab character for
you.
for example:
inoremap <silent> <F6> <c-v><tab>
will map F6 for you, replace it with anything you want.

I always need such a map, since I've set 'expandtab' all the time.
--
Sincerely, Pan, Shi Zhu. ext: 2606


wangxu <[EMAIL PROTECTED]> 写于 2007-04-11 23:16:08:

> That's a very good tip: )
> I also wanna know how to insert a "Tab" when I editing files like
> /etc/hosts?
> Can I?
>
> [EMAIL PROTECTED] wrote:
> > wangxu <[EMAIL PROTECTED]> 写于 2007-04-05 21:08:43:
> >
> >> but in this situation,is there any way to auto-indent *.py?
> >>
> >>
> >
> >  << is "decrease indent" (hold on Shift, then '<' twice)
> >  >> is "increase indent"
> > You can use << or >> command in Normal mode and Visual mode. which is
as
> > good as, if no better than, the <tab> key.
> >
> > --
> > Sincerely, Pan, Shi Zhu. ext: 2606
>

Reply via email to