dotfiles

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

commit 520e18a880e5a0042739bde814508bfb7fd0c9be
parent fea8aa11e559210eb308f6e2af30533bdf606368
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Fri,  9 Feb 2018 14:50:20 -0500

Add fortran filetype configuration

Diffstat:
Alinks/.vim/ftplugin/fortran.vim | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git a/links/.vim/ftplugin/fortran.vim b/links/.vim/ftplugin/fortran.vim @@ -0,0 +1,16 @@ +augroup fortran_config + + setlocal autoindent shiftwidth=2 expandtab + setlocal indentkeys=o,O,*<Return>,!^F + + let s:extfname = expand("%:e") + if s:extfname ==? "f90" + let fortran_free_source=1 + unlet! fortran_fixed_source + else + let fortran_fixed_source=1 + unlet! fortran_free_source + endif + + +augroup END