Created
September 20, 2011 19:14
-
-
Save jaytaylor/1230027 to your computer and use it in GitHub Desktop.
Better Tab/Shift-Tab for block indentation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Paste this into your .vimrc to make tab/shift-tab work on blocks of text just like in a fancy GUI IDE | |
map <Tab> >gb | |
map <S-Tab> v<gv<ESC>0I<ESC>l | |
imap <S-Tab> <ESC>v<gv<ESC>0I | |
vnoremap <Tab> >gv | |
vnoremap <S-Tab> <gv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment