Skip to content

Instantly share code, notes, and snippets.

@jamesnvc
Created September 1, 2011 14:29
Show Gist options
  • Select an option

  • Save jamesnvc/1186281 to your computer and use it in GitHub Desktop.

Select an option

Save jamesnvc/1186281 to your computer and use it in GitHub Desktop.
" 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
@jamesnvc

jamesnvc commented Sep 1, 2011 via email

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment