diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-02 11:52:52 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-02 12:03:34 -0400 |
commit | abb13dde980b21b39e9d700370e3e82835007cb6 (patch) | |
tree | 6922c9b0eec02bb4acff1ba57dc4b9dea7b71b9d /runtime/ftplugin/fortran.vim | |
parent | b8f3ef10c943730df8d82f229bc8b1da3a3c8294 (diff) | |
download | rneovim-abb13dde980b21b39e9d700370e3e82835007cb6.tar.gz rneovim-abb13dde980b21b39e9d700370e3e82835007cb6.tar.bz2 rneovim-abb13dde980b21b39e9d700370e3e82835007cb6.zip |
vim-patch:130cbfc31235
Update runtime files
https://github.com/vim/vim/commit/130cbfc31235c6cb52ffe718ea0a5bb50fbbc9fd
Diffstat (limited to 'runtime/ftplugin/fortran.vim')
-rw-r--r-- | runtime/ftplugin/fortran.vim | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/runtime/ftplugin/fortran.vim b/runtime/ftplugin/fortran.vim index b9ba3c4722..26dc90a184 100644 --- a/runtime/ftplugin/fortran.vim +++ b/runtime/ftplugin/fortran.vim @@ -1,13 +1,13 @@ " Vim settings file " Language: Fortran 2008 (and older: Fortran 2003, 95, 90, 77, 66) -" Version: (v52) 2020 October 07 +" Version: (v53) 2021 April 06 " Maintainer: Ajit J. Thakkar <ajit@unb.ca>; <http://www2.unb.ca/~ajit/> " Usage: For instructions, do :help fortran-plugin from Vim " Credits: " Version 0.1 was created in September 2000 by Ajit Thakkar. " Since then, useful suggestions and contributions have been made, in order, by: " Stefano Zacchiroli, Hendrik Merx, Ben Fritz, David Barnett, Eisuke Kawashima, -" and Doug Kearns. +" Doug Kearns, and Fritz Reese. " Only do these settings when not done yet for this buffer if exists("b:did_ftplugin") @@ -66,12 +66,19 @@ endif " Set comments and textwidth according to source type if (b:fortran_fixed_source == 1) setlocal comments=:!,:*,:C - " Fixed format requires a textwidth of 72 for code - setlocal tw=72 + " Fixed format requires a textwidth of 72 for code, + " but some vendor extensions allow longer lines + if exists("fortran_extended_line_length") + setlocal tw=132 + elseif exists("fortran_cardimage_line_length") + setlocal tw=80 + else + setlocal tw=72 " If you need to add "&" on continued lines so that the code is " compatible with both free and fixed format, then you should do so " in column 73 and uncomment the next line " setlocal tw=73 + endif else setlocal comments=:! " Free format allows a textwidth of 132 |