Created
September 1, 2011 14:29
-
-
Save jamesnvc/1186281 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| " Using arrow keys to indent right/left in insert mode | |
| inoremap <Left> <Esc>:exe "normal mz<<`z".(&shiftwidth-1)."h"<CR>i | |
| inoremap <Right> <Esc>:exe "normal mz>>`z".(&shiftwidth+1)."l"<CR>i |
Author
On Thursday, 1 September, 2011 at 10:36 , sjl wrote:
Why not just:
inoremap <left> <c-d>
inoremap <right> <c-t>
Wow, awesome, I did not know about that. That is much easier, thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why not just: