dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE

fortran.vim (439B)


      1 augroup fortran_config
      2 
      3     setlocal autoindent shiftwidth=2 expandtab
      4     setlocal indentkeys=o,O,*<Return>,!^F
      5 
      6     let s:extfname = expand("%:e")
      7     if s:extfname ==? "f90"
      8         let fortran_free_source=1
      9         unlet! fortran_fixed_source
     10     else
     11         let fortran_fixed_source=1
     12         unlet! fortran_free_source
     13     endif
     14 
     15     " automatically indent do loops, see :h ft-fortran-indent
     16     let fortran_do_enddo=1
     17 
     18 augroup END