Mercurial > vim
annotate runtime/compiler/gcc.vim @ 8659:72e2f387466f v7.4.1619
commit https://github.com/vim/vim/commit/364fa5c7ec2a99a791c8f8b66fe70b0bf1dd9a41
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 20 17:53:25 2016 +0100
patch 7.4.1619
Problem: When 'fileformats' is set in the vimrc it applies to new buffers
but not the initial buffer.
Solution: Set 'fileformat' when starting up. (Mike Williams)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 20 Mar 2016 18:00:05 +0100 |
parents | 7818ca6de3d0 |
children | b73f9ed65072 |
rev | line source |
---|---|
375 | 1 " Vim compiler file |
2 " Compiler: GNU C Compiler | |
839 | 3 " Maintainer: Nikolai Weibull <now@bitwi.se> |
2608
7d8af31066c8
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
2236
diff
changeset
|
4 " Latest Revision: 2010-10-14 |
375 | 5 |
6 if exists("current_compiler") | |
7 finish | |
8 endif | |
9 let current_compiler = "gcc" | |
10 | |
11 let s:cpo_save = &cpo | |
3237 | 12 set cpo&vim |
375 | 13 |
1621 | 14 CompilerSet errorformat= |
2034 | 15 \%*[^\"]\"%f\"%*\\D%l:%c:\ %m, |
375 | 16 \%*[^\"]\"%f\"%*\\D%l:\ %m, |
2034 | 17 \\"%f\"%*\\D%l:%c:\ %m, |
375 | 18 \\"%f\"%*\\D%l:\ %m, |
19 \%-G%f:%l:\ %trror:\ (Each\ undeclared\ identifier\ is\ reported\ only\ once, | |
20 \%-G%f:%l:\ %trror:\ for\ each\ function\ it\ appears\ in.), | |
2608
7d8af31066c8
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
2236
diff
changeset
|
21 \%f:%l:%c:\ %trror:\ %m, |
2236
dc2e5ec0500d
Added the undofile() function. Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2034
diff
changeset
|
22 \%f:%l:%c:\ %tarning:\ %m, |
2034 | 23 \%f:%l:%c:\ %m, |
2608
7d8af31066c8
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
2236
diff
changeset
|
24 \%f:%l:\ %trror:\ %m, |
2236
dc2e5ec0500d
Added the undofile() function. Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2034
diff
changeset
|
25 \%f:%l:\ %tarning:\ %m, |
375 | 26 \%f:%l:\ %m, |
27 \\"%f\"\\,\ line\ %l%*\\D%c%*[^\ ]\ %m, | |
5555 | 28 \%D%*\\a[%*\\d]:\ Entering\ directory\ [`']%f', |
29 \%X%*\\a[%*\\d]:\ Leaving\ directory\ [`']%f', | |
30 \%D%*\\a:\ Entering\ directory\ [`']%f', | |
31 \%X%*\\a:\ Leaving\ directory\ [`']%f', | |
375 | 32 \%DMaking\ %*\\a\ in\ %f |
33 | |
1213 | 34 if exists('g:compiler_gcc_ignore_unmatched_lines') |
1621 | 35 CompilerSet errorformat+=%-G%.%# |
1213 | 36 endif |
37 | |
375 | 38 let &cpo = s:cpo_save |
39 unlet s:cpo_save |