diff --git a/.vimrc b/.vimrc index ddbc0497..baff550e 100755 --- a/.vimrc +++ b/.vimrc @@ -217,6 +217,8 @@ func FormartSrc() exec "!astyle --style=gnu --suffix=none %" elseif &filetype == 'xml' exec "!astyle --style=gnu --suffix=none %" + else + exec "normal gg=G" endif exec "e! %" endfunc