commit 8faa6d18a091e5ecc3a2ecf1ccc97f25b4eceea0
parent 26ef955be65d6003afba75bb3e19a5f27cfa4c69
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Wed, 7 Nov 2018 14:50:26 +0100
Mapping to quickly reindent code
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/vim/map.vimrc b/vim/map.vimrc
@@ -39,6 +39,9 @@ nnoremap <leader>qq mzggg?G`z
" 'zoom to head level'
nnoremap zh mzzt10<c-u>`z
+" Reindent the file
+nnoremap <leader>= mlgg=G`lzz
+
" Tab mappings
nnoremap <C-t> :tabnew<cr>
nnoremap <C-c> :tabclose<cr>