Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 26 additions & 2 deletions learners/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,29 @@ We recommend installing **GFortran** as your first compiler.

### GFortran

GFortran is a free open source compiler.
GFortran is a free open-source compiler.
It is part of the Gnu Compiler Collection (GCC).
Comprehensive installation instructions are on the
[GFortran install page on fortran-lang][install-gfortran].

You can also install GFortran via [conda](https://docs.conda.io/projects/conda/en/latest/user-guide/install/index.html):
Check whether you already have GFortran installed:

```bash
gfortran --version
```

If GFortran is installed, this should print a few lines related to GFortran's version number and license.
If there is instead a "Command not found" message, install GFortran via your system's package manager, for example

```bash
sudo apt install gfortran
```

on Debian-based systems. See [the website][install-gfortran] for instructions for other operating systems.
Note that this requires root access.

Without root access,
you can also install GFortran locally with [conda](https://docs.conda.io/projects/conda/en/latest/user-guide/install/index.html):

```bash
$ conda install conda-forge::gfortran
Expand Down Expand Up @@ -227,6 +244,7 @@ Setup instructions for some editors are available below.
Editor Setup Quick Links:

- [Emacs](#emacs)
- [Vim](#vim)
- [VS Code](#vs-code)

### Emacs
Expand Down Expand Up @@ -267,6 +285,12 @@ This file is stored in your home directory.

:::::::::::::::::::::::::

### Vim
[Vim][vim-link] is powerful customizable command-line text editor. Fortran syntax highlighting and indenting are present by default.

To add additional Fortran features including syntax checking, linting, and keyboard shortcuts, install vim plugin [vimf90][vimf90-link]
by following the instructions for Vundle or another vim plugin manager.

### VS Code

[Visual Studio Code (VS Code)][vscode-link] is another powerful cross-platform IDE.
Expand Down
3 changes: 3 additions & 0 deletions links.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@ any links that you are not going to use.
[emacs-link]: https://www.gnu.org/software/emacs/
[emacs-init-link]: https://www.gnu.org/software/emacs/manual/html_node/emacs/Init-File.html

[vim-link]: https://www.vim.org/
[vimf90-link]: https://rudrab.github.io/vimf90/

[vscode-link]: https://code.visualstudio.com
[vscode-modern-fortran]: https://marketplace.visualstudio.com/items?itemName=fortran-lang.linter-gfortran