aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-22 23:04:18 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-22 23:04:18 +1200
commitf8d5b799f539ecf9d388ce1aeb39fb0ae3a6ea67 (patch)
tree216ea7202f6a7c3f59d8aec9459c318e9e93919c /vim
parentb86eb2a908a56e1c809ff3fccee1d4cec6069a47 (diff)
downloaddotfiles-f8d5b799f539ecf9d388ce1aeb39fb0ae3a6ea67.tar.gz
Add mapping to toggle 'autoindent'
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 20e687b7..48578ee2 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -448,6 +448,9 @@ nnoremap <Leader><Delete> :bdelete<CR>
" \INS edits a new buffer
nnoremap <Leader><Insert> :<C-U>enew<CR>
+" \TAB toggles 'autoindent'
+nnoremap <Leader><Tab> :<C-U>setlocal autoindent! autoindent?<CR>
+
" Execution mappings; each of these clobbers register z
" \@ executes line in normal mode