indent by tab/s-tab

2 Points

sunriseyuen sunriseyuen

4 years ago

indent by tab/s-tab

    " indent by <Tab> and <S-Tab>
    inoremap <S-Tab> <C-O><LT><LT>
    nnoremap <Tab> >>
    nnoremap <S-Tab> <LT><LT>
    vnoremap <Tab> >
    vnoremap <S-Tab> <LT>

Kazark

Kazark 4 years ago

This is a very good thought, but I'll do you one better: combine with Snippet #14:

vnoremap <Tab> >gv vnoremap <S-Tab> <LT>gv