annotate runtime/compiler/g95.vim @ 23529:049b1e867137 v8.2.2307

patch 8.2.2307: a shell command in the vimrc causes terminal output Commit: https://github.com/vim/vim/commit/ebbf11c1198b7aec8a1a55f7231ecb4f1a432fa0 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 7 14:45:03 2021 +0100 patch 8.2.2307: a shell command in the vimrc causes terminal output Problem: A shell command in the vimrc causes terminal output. Solution: Do not call starttermcap() after a shell command if the termcap wasn't active before.
author Bram Moolenaar <Bram@vim.org>
date Thu, 07 Jan 2021 15:00:05 +0100
parents d1e4abe8342c
children e1df51f68736
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2751
b0d34143ebfc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 " Compiler: G95
b0d34143ebfc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2 " Maintainer: H Xu <xuhdev@gmail.com>
b0d34143ebfc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 " Version: 0.1.3
3496
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2751
diff changeset
4 " Last Change: 2012 Apr 30
2751
b0d34143ebfc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 " Homepage: http://www.vim.org/scripts/script.php?script_id=3492
b0d34143ebfc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 " https://bitbucket.org/xuhdev/compiler-g95.vim
b0d34143ebfc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 " License: Same as Vim
b0d34143ebfc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8
b0d34143ebfc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 if exists('current_compiler')
b0d34143ebfc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 finish
b0d34143ebfc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 endif
b0d34143ebfc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 let current_compiler = 'g95'
3496
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2751
diff changeset
13 let s:keepcpo= &cpo
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2751
diff changeset
14 set cpo&vim
2751
b0d34143ebfc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15
b0d34143ebfc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 if exists(":CompilerSet") != 2 " older Vim always used :setlocal
b0d34143ebfc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17 command -nargs=* CompilerSet setlocal <args>
b0d34143ebfc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 endif
b0d34143ebfc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19
b0d34143ebfc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 CompilerSet errorformat=
b0d34143ebfc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 \%AIn\ file\ %f:%l,
b0d34143ebfc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 \%-C%p1,
b0d34143ebfc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 \%-Z%trror:\ %m,
b0d34143ebfc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 \%-Z%tarning\ (%n):\ %m,
b0d34143ebfc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25 \%-C%.%#
3496
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2751
diff changeset
26
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2751
diff changeset
27 let &cpo = s:keepcpo
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2751
diff changeset
28 unlet s:keepcpo