Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a5a0b3c
commit 6b2e659
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
" To adhere to the style guidelines in ABIN | ||
" (3-space indentation, not tabs) | ||
" please place this file in ~/.vim/ftplugin/ | ||
" (you might need to create that directory) | ||
" | ||
" Also, copy content from file "vimrc" to your ~/.vimrc file | ||
" | ||
" $ cat vimrc >> ~/.vimrc | ||
|
||
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 | ||
let s:extfname = expand("%:e") | ||
if s:extfname ==? "f95" | ||
let fortran_free_source=1 | ||
unlet! fortran_fixed_source | ||
endif | ||
let s:extfname = expand("%:e") | ||
if s:extfname ==? "F90" | ||
let fortran_free_source=1 | ||
unlet! fortran_fixed_source | ||
endif | ||
let s:extfname = expand("%:e") | ||
if s:extfname ==? "F95" | ||
let fortran_free_source=1 | ||
unlet! fortran_fixed_source | ||
endif | ||
|
||
set expandtab | ||
set shiftwidth=3 | ||
set softtabstop=3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
filetype plugin on | ||
:let fortran_free_source=1 | ||
syntax on | ||
|
||
filetype indent on | ||
filetype indent plugin on |