My vim configuration
git clone https://github.com/m-col/vim-misc
Files | Refs | Readme

-rw-r--r-- start/self/plugin/indent.vim


      1 "------------------------------------------------------------------
      2 "  Indentation of entire file
      3 "------------------------------------------------------------------
      4 
      5 "function! IndentFile()
      6 "    mkview
      7 "    let l:win_view = winsaveview()
      8 "    :normal! gg=G
      9 "    silent loadview
     10 "    call winrestview(l:win_view)
     11 "endfunction
     12 "
     13 "nnoremap <C-i> :call IndentFile()<CR>
     14