-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add git, editor configurations and guidelines
- Loading branch information
Showing
4 changed files
with
93 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,43 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
tab_width = 4 | ||
end_of_line = lf | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
# Set default charset | ||
[*.py] | ||
charset = utf-8 | ||
|
||
# Matches multiple files with brace expansion notation | ||
# 4 space indentation | ||
[*.{py,tex,par}] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
# Matches the exact file SIZE, | ||
# and fortran files | ||
[{SIZE,lib/Nek5000/core/*,*.{f,f90,inc,usr}}] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
# Tab indentation (no size specified) | ||
[{Makefile,makefile,Makefile.*}] | ||
indent_style = tab | ||
indent_size = unset | ||
tab_width = unset | ||
|
||
# Indentation override for all JS under lib directory | ||
# [lib/**.js] | ||
# indent_style = space | ||
# indent_size = 2 | ||
|
||
# Matches the exact files either package.json or .travis.yml | ||
# [{package.json,.travis.yml}] |
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,32 @@ | ||
# Prerequisites | ||
*.d | ||
|
||
# Compiled Object files | ||
*.slo | ||
*.lo | ||
*.o | ||
*.obj | ||
|
||
# Precompiled Headers | ||
*.gch | ||
*.pch | ||
|
||
# Compiled Dynamic libraries | ||
*.so | ||
*.dylib | ||
*.dll | ||
|
||
# Fortran module files | ||
*.mod | ||
*.smod | ||
|
||
# Compiled Static libraries | ||
*.lai | ||
*.la | ||
*.a | ||
*.lib | ||
|
||
# Executables | ||
*.exe | ||
*.out | ||
*.app |
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,5 @@ | ||
"{{{ Nek5000 | ||
au BufNewFile,BufRead *.usr,*.inc,SIZE set filetype=fortran | ||
au BufNewFile,BufRead *.par set filetype=cfg | ||
au BufNewFile,BufRead * if &syntax == '' | set syntax=fortran | endif | ||
"}}} |
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,13 @@ | ||
# General guidelines | ||
|
||
* Use an editor which supports [EditorConfig](http://editorconfig.org/) | ||
* Follow [Fortran best practices](https://www.fortran90.org/src/best-practices.html) | ||
|
||
## Vim | ||
|
||
Vim users could benefit by setting: | ||
```vim | ||
set exrc | ||
set secure | ||
``` | ||
which enables syntax highlighting for file extensions used in `lib/Nek5000`. |