vim-FORTRAN-UPPER

August 23, 2022 ยท View on GitHub

Uppercase Fortran keywords without holing Shift or using CAPS LOCK. Based on vim-SQL-UPPER by Jorengarenar.

Installation

vim-plug:

Plug 'wcdawn/vim-FORTRAN-UPPER'

Vim's packages

cd ~/.vim/pack/plugins/start
git clone https://github.com/wcdawn/vim-FORTRAN-UPPER.git

Usage

When you type a Fortran keyword in an Fortran file, it will be automatically uppercased after you finish writting it.

Words in comments and strings will be ignored.

Configuration

There is one variable, g:FORTRAN_UPPER. Default value is 0 (no capitalization applied by default).

ValueDescription
1Keywords based on SIMULATE5 style from SSP.
2Extensive list of keywords based on style from nfherrin.
5Keywords returned by vim's syntaxcomplete#OmniSyntaxList() function
listYou can provide your own list of keywords, e.g. let g:FORTRAN_UPPER = [ "implicit", "none" ]
*Everything else disables auto-uppering