diff --git a/states/neovim/templates/init.vim.j2 b/states/neovim/templates/init.vim.j2 index 1b2b1a2..f963f50 100644 --- a/states/neovim/templates/init.vim.j2 +++ b/states/neovim/templates/init.vim.j2 @@ -28,6 +28,11 @@ function! RemoveComments() "silent sort endfunction +function! Reformat() + :normal gg=G +endfunction + +command! Reformat call Reformat() command! RemoveComments call RemoveComments() nnoremap :!%:p