Skip to content

Commit 3d372e3

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents f6c0c77 + 885f24f commit 3d372e3

31 files changed

Lines changed: 1328 additions & 747 deletions

runtime/autoload/sqlcomplete.vim

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
" Vim OMNI completion script for SQL
22
" Language: SQL
33
" Maintainer: David Fishburn <dfishburn dot vim at gmail dot com>
4-
" Version: 15.0
5-
" Last Change: 2013 May 13
4+
" Version: 16.0
5+
" Last Change: 2015 Dec 29
66
" Homepage: http://www.vim.org/scripts/script.php?script_id=1572
77
" Usage: For detailed help
88
" ":help sql.txt"
@@ -16,6 +16,12 @@
1616
" look backwards to a FROM clause and find the first table
1717
" and complete it.
1818
"
19+
" Version 16.0 (Dec 2015)
20+
" - NF: If reseting the cache and table, procedure or view completion
21+
" had been used via dbext, have dbext delete or recreate the
22+
" dictionary so that new objects are picked up for the
23+
" next completion.
24+
"
1925
" Version 15.0 (May 2013)
2026
" - NF: Changed the SQL precached syntax items, omni_sql_precache_syntax_groups,
2127
" to use regular expressions to pick up extended syntax group names.
@@ -103,7 +109,7 @@ endif
103109
if exists('g:loaded_sql_completion')
104110
finish
105111
endif
106-
let g:loaded_sql_completion = 150
112+
let g:loaded_sql_completion = 160
107113
let s:keepcpo= &cpo
108114
set cpo&vim
109115

@@ -459,6 +465,29 @@ function! sqlcomplete#Complete(findstart, base)
459465
let s:tbl_cols = []
460466
let s:syn_list = []
461467
let s:syn_value = []
468+
469+
if s:sql_file_table != ""
470+
if g:loaded_dbext >= 2300
471+
call DB_DictionaryDelete("table")
472+
else
473+
DBCompleteTables!
474+
endif
475+
endif
476+
if s:sql_file_procedure != ""
477+
if g:loaded_dbext >= 2300
478+
call DB_DictionaryDelete("procedure")
479+
else
480+
DBCompleteProcedures!
481+
endif
482+
endif
483+
if s:sql_file_view != ""
484+
if g:loaded_dbext >= 2300
485+
call DB_DictionaryDelete("view")
486+
else
487+
DBCompleteViews!
488+
endif
489+
endif
490+
462491
let s:sql_file_table = ""
463492
let s:sql_file_procedure = ""
464493
let s:sql_file_view = ""

runtime/doc/change.txt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*change.txt* For Vim version 7.4. Last change: 2016 Jan 19
1+
*change.txt* For Vim version 7.4. Last change: 2016 Jan 31
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -977,8 +977,6 @@ This replaces each 'E' character with a euro sign. Read more in |<Char->|.
977977
`:retab!` may also change a sequence of spaces by
978978
<Tab> characters, which can mess up a printf().
979979
{not in Vi}
980-
Not available when |+ex_extra| feature was disabled at
981-
compile time.
982980

983981
*retab-example*
984982
Example for using autocommands and ":retab" to edit a file which is stored
@@ -1354,22 +1352,16 @@ The next three commands always work on whole lines.
13541352
Center lines in [range] between [width] columns
13551353
(default 'textwidth' or 80 when 'textwidth' is 0).
13561354
{not in Vi}
1357-
Not available when |+ex_extra| feature was disabled at
1358-
compile time.
13591355

13601356
:[range]ri[ght] [width] *:ri* *:right*
13611357
Right-align lines in [range] at [width] columns
13621358
(default 'textwidth' or 80 when 'textwidth' is 0).
13631359
{not in Vi}
1364-
Not available when |+ex_extra| feature was disabled at
1365-
compile time.
13661360

13671361
*:le* *:left*
13681362
:[range]le[ft] [indent]
13691363
Left-align lines in [range]. Sets the indent in the
13701364
lines to [indent] (default 0). {not in Vi}
1371-
Not available when |+ex_extra| feature was disabled at
1372-
compile time.
13731365

13741366
*gq*
13751367
gq{motion} Format the lines that {motion} moves over.

runtime/doc/develop.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*develop.txt* For Vim version 7.4. Last change: 2016 Jan 19
1+
*develop.txt* For Vim version 7.4. Last change: 2016 Jan 31
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -322,7 +322,8 @@ OK: if (cond)
322322
cmd;
323323
}
324324

325-
Functions start with:
325+
Use ANSI (new style) function declarations with the return type on a separate
326+
indented line.
326327

327328
Wrong: int function_name(int arg1, int arg2)
328329

@@ -340,8 +341,6 @@ OK: /*
340341

341342
local = arg1 * arg2;
342343

343-
NOTE: Don't use ANSI style function declarations. A few people still have to
344-
use a compiler that doesn't support it.
345344

346345

347346
SPACES AND PUNCTUATION *style-spaces*

runtime/doc/editing.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*editing.txt* For Vim version 7.4. Last change: 2016 Jan 17
1+
*editing.txt* For Vim version 7.4. Last change: 2016 Feb 01
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1468,6 +1468,8 @@ test for blowfish with: >
14681468
v:version >= 703
14691469
And for blowfish2 with: >
14701470
v:version > 704 || (v:version == 704 && has('patch401'))
1471+
If you are sure Vim includes patch 7.4.237 a simpler check is: >
1472+
has('patch-7.4.401')
14711473
<
14721474
*E817* *E818* *E819* *E820*
14731475
When encryption does not work properly, you would be able to write your text

runtime/doc/eval.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 7.4. Last change: 2016 Jan 28
1+
*eval.txt* For Vim version 7.4. Last change: 2016 Feb 01
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2668,6 +2668,8 @@ confirm({msg} [, {choices} [, {default} [, {type}]]])
26682668

26692669
connect({address}, {mode} [, {callback}]) *connect()*
26702670
Open a channel to {address}. See |channel|.
2671+
Returns the channel handle on success. Returns a negative
2672+
number for failure.
26712673

26722674
{address} has the form "hostname:port", e.g.,
26732675
"localhost:8765".
@@ -7053,7 +7055,7 @@ ebcdic Compiled on a machine with ebcdic character set.
70537055
emacs_tags Compiled with support for Emacs tags.
70547056
eval Compiled with expression evaluation support. Always
70557057
true, of course!
7056-
ex_extra Compiled with extra Ex commands |+ex_extra|.
7058+
ex_extra |+ex_extra|, always true now
70577059
extra_search Compiled with support for |'incsearch'| and
70587060
|'hlsearch'|
70597061
farsi Compiled with Farsi support |farsi|.

runtime/doc/insert.txt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*insert.txt* For Vim version 7.4. Last change: 2015 Sep 15
1+
*insert.txt* For Vim version 7.4. Last change: 2016 Jan 31
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1872,8 +1872,6 @@ NOTE: These commands cannot be used with |:global| or |:vglobal|.
18721872
or script is finished.
18731873
This command does not work from |:normal|.
18741874
{not in Vi}
1875-
{not available when compiled without the |+ex_extra|
1876-
feature}
18771875

18781876
*:stopi* *:stopinsert*
18791877
:stopi[nsert] Stop Insert mode as soon as possible. Works like
@@ -1891,15 +1889,11 @@ NOTE: These commands cannot be used with |:global| or |:vglobal|.
18911889
script that the replacement will only start after
18921890
the function or script is finished.
18931891
{not in Vi}
1894-
{not available when compiled without the |+ex_extra|
1895-
feature}
18961892

18971893
*:startgreplace*
18981894
:startg[replace][!] Just like |:startreplace|, but use Virtual Replace
18991895
mode, like with |gR|.
19001896
{not in Vi}
1901-
{not available when compiled without the |+ex_extra|
1902-
feature}
19031897

19041898
==============================================================================
19051899
10. Inserting a file *inserting-file*

runtime/doc/netbeans.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*netbeans.txt* For Vim version 7.4. Last change: 2016 Jan 27
1+
*netbeans.txt* For Vim version 7.4. Last change: 2016 Jan 31
22

33

44
VIM REFERENCE MANUAL by Gordon Prieur et al.
@@ -823,7 +823,7 @@ REJECT Not used.
823823
6.7 Protocol errors *nb-protocol_errors*
824824

825825
These errors occur when a message violates the protocol:
826-
*E627* *E628* *E629* *E630* *E631* *E632* *E633* *E634* *E635* *E636*
826+
*E627* *E628* *E629* *E632* *E633* *E634* *E635* *E636*
827827
*E637* *E638* *E639* *E640* *E641* *E642* *E643* *E644* *E645* *E646*
828828
*E647* *E648* *E649* *E650* *E651* *E652* *E653* *E654*
829829

runtime/doc/options.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 7.4. Last change: 2016 Jan 19
1+
*options.txt* For Vim version 7.4. Last change: 2016 Feb 01
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2308,7 +2308,7 @@ A jump table for the options with a short description can be found at |Q_op|.
23082308
the encrypted bytes will be different.
23092309
*blowfish2*
23102310
blowfish2 Blowfish method. Medium strong encryption. Requires
2311-
Vim 7.4.399 or later, files can NOT be read by Vim 7.3
2311+
Vim 7.4.401 or later, files can NOT be read by Vim 7.3
23122312
and older. This adds a "seed" to the file, every time
23132313
you write the file the encrypted bytes will be
23142314
different. The whole undo file is encrypted, not just
@@ -7119,7 +7119,7 @@ A jump table for the options with a short description can be found at |Q_op|.
71197119
The option consists of printf style '%' items interspersed with
71207120
normal text. Each status line item is of the form:
71217121
%-0{minwid}.{maxwid}{item}
7122-
All fields except the {item} is optional. A single percent sign can
7122+
All fields except the {item} are optional. A single percent sign can
71237123
be given as "%%". Up to 80 items can be specified. *E541*
71247124

71257125
When the option starts with "%!" then it is used as an expression,

runtime/doc/tags

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4184,8 +4184,8 @@ E627 netbeans.txt /*E627*
41844184
E628 netbeans.txt /*E628*
41854185
E629 netbeans.txt /*E629*
41864186
E63 pattern.txt /*E63*
4187-
E630 netbeans.txt /*E630*
4188-
E631 netbeans.txt /*E631*
4187+
E630 channel.txt /*E630*
4188+
E631 channel.txt /*E631*
41894189
E632 netbeans.txt /*E632*
41904190
E633 netbeans.txt /*E633*
41914191
E634 netbeans.txt /*E634*
@@ -4473,7 +4473,17 @@ E892 eval.txt /*E892*
44734473
E893 eval.txt /*E893*
44744474
E894 eval.txt /*E894*
44754475
E895 if_mzsch.txt /*E895*
4476+
E896 channel.txt /*E896*
4477+
E897 channel.txt /*E897*
4478+
E898 channel.txt /*E898*
4479+
E899 channel.txt /*E899*
44764480
E90 message.txt /*E90*
4481+
E900 channel.txt /*E900*
4482+
E901 channel.txt /*E901*
4483+
E902 channel.txt /*E902*
4484+
E903 channel.txt /*E903*
4485+
E904 channel.txt /*E904*
4486+
E905 channel.txt /*E905*
44774487
E91 options.txt /*E91*
44784488
E92 message.txt /*E92*
44794489
E93 windows.txt /*E93*
@@ -8615,6 +8625,7 @@ timestamps editing.txt /*timestamps*
86158625
tips tips.txt /*tips*
86168626
tips.txt tips.txt /*tips.txt*
86178627
todo todo.txt /*todo*
8628+
todo.txt todo.txt /*todo.txt*
86188629
toggle options.txt /*toggle*
86198630
toggle-revins version4.txt /*toggle-revins*
86208631
tolower() eval.txt /*tolower()*

0 commit comments

Comments
 (0)