aboutsummaryrefslogtreecommitdiff
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
parentRebuild dotfiles(7df) manual (diff)
downloaddotfiles-f8d5b799f539ecf9d388ce1aeb39fb0ae3a6ea67.tar.gz
dotfiles-f8d5b799f539ecf9d388ce1aeb39fb0ae3a6ea67.zip
Add mapping to toggle 'autoindent'
-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