Skip to content

Commit 81cbb88

Browse files
committed
Update runtime files. Make matchparen plugin backwards compatible.
Add json filetype.
1 parent 4ac9105 commit 81cbb88

File tree

12 files changed

+133
-24
lines changed

12 files changed

+133
-24
lines changed

runtime/doc/editing.txt

Lines changed: 6 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: 2014 May 02
1+
*editing.txt* For Vim version 7.4. Last change: 2014 Jul 19
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1362,6 +1362,11 @@ cannot be read without the right key.
13621362
{only available when compiled with the |+cryptv| feature} *E833*
13631363

13641364
The text in the swap file and the undo file is also encrypted. *E843*
1365+
However, this is done block-by-block and may reduce the time needed to crack a
1366+
password. You can disable the swap file, but then a crash will cause you to
1367+
lose your work. The undo file can be disabled without much disadvantage. >
1368+
:set noundofile
1369+
:noswapfile edit secrets
13651370
13661371
Note: The text in memory is not encrypted. A system administrator may be able
13671372
to see your text while you are editing it. When filtering text with

runtime/doc/eval.txt

Lines changed: 2 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: 2014 Jul 06
1+
*eval.txt* For Vim version 7.4. Last change: 2014 Jul 19
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -6512,7 +6512,7 @@ winsaveview() Returns a |Dictionary| that contains information to restore
65126512
buffer and you want to go back to the original view.
65136513
This does not save fold information. Use the 'foldenable'
65146514
option to temporarily switch off folding, so that folds are
6515-
not opened when moving around.
6515+
not opened when moving around. This may have side effects.
65166516
The return value includes:
65176517
lnum cursor line number
65186518
col cursor column (Note: the first column

runtime/doc/todo.txt

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*todo.txt* For Vim version 7.4. Last change: 2014 Jul 10
1+
*todo.txt* For Vim version 7.4. Last change: 2014 Jul 19
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -34,7 +34,7 @@ not be repeated below, unless there is extra information.
3434
*known-bugs*
3535
-------------------- Known bugs and current work -----------------------
3636

37-
Forfeit test_listlbr when encoding is not utf8? (Danek Duvall)
37+
Completion menu: remove redraw (Hirohito Higashi)
3838

3939
Regexp problems:
4040
- Bug with pattern: '\vblock (\d+)\.\n.*\d+%(\1)@<!\.$'
@@ -49,12 +49,41 @@ Regexp problems:
4949
- Does not work with NFA regexp engine:
5050
\%u, \%x, \%o, \%d followed by a composing character
5151

52-
Patch to set y_width when getting the register from the clipboard.
53-
(Yukihiro Nakadaira, 2014 Jul 10)
52+
Crash when splitting the window when the size is tiny.
53+
(Yukihiro Nakadaira, 2014 Jul 15-16)
54+
55+
Another problem with splitting window. (Yukihiro Nakadaira, 2014 Jul 17)
56+
Patch Jul 17.
57+
58+
Using freed memory when jumping from a quickfix list. (lcd47, 2014 Jul 17)
59+
60+
Patch to fix valgrind error. (Dominique Pelle, 2014 Jul 9)
61+
62+
Vroom filetype support. (David Barnett, 2014 Jul 10)
63+
64+
u_undo error. Reproduce with description from Ayberk Ozgur, 2014 Jul 17.
65+
66+
Updated Django files. (Dave Hodder, 2014 Jul 13)
67+
68+
Title of quickfist list is not kept for setqflist(list 'r').
69+
(Lcd, 2014 Jul 17) With test Jul 18.
70+
71+
Patch to fix noremap flags not cleared after typing Esc. (Jacob Niehus, 2014
72+
Jul 9)
5473

5574
Problem that a previous silent ":throw" causes a following try/catch not to
5675
work. (ZyX, 2013 Sep 28)
5776

77+
DiffChange highlighting doesn't combine with 'cursurline'. (Benjamin Fritz)
78+
Patch by Christian (2014 Jul 12)
79+
80+
BufWinLeave autocommand executed in the wrong buffer? (Davit Samvelyan, 2014
81+
Jul 14)
82+
83+
When 'clipboard' is "unnamed", :g/pat/d is very slow. Only set the clipboard
84+
after the last delete? (Praful, 2014 May 28)
85+
Patch by Christian Brabandt, 2014 Jun 18. Update Jun 25.
86+
5887
Completion for :buf does not use 'wildignorecase'. (Akshay H, 2014 May 31)
5988

6089
":cd C:\Windows\System32\drivers\etc*" does not work, even though the
@@ -93,6 +122,8 @@ Phpcomplete.vim update. (Complex, 2014 Jan 15)
93122

94123
PHP syntax is extremely slow. (Anhad Jai Singh, 2014 Jan 19)
95124

125+
Patch for matchparen. (James McCoy, 2014 Jul 11)
126+
96127
Spell files use a latin single quote. Unicode also has another single quote:
97128
0x2019. (Ron Aaron, 2014 Apr 4)
98129
New OpenOffice spell files support this with ICONV. But they are not
@@ -128,10 +159,6 @@ from?
128159
Problem with upwards search on Windows (works OK on Linux). (Brett Stahlman,
129160
2014 Jun 8)
130161

131-
When 'clipboard' is "unnamed", :g/pat/d is very slow. Only set the clipboard
132-
after the last delete? (Praful, 2014 May 28)
133-
Patch by Christian Brabandt, 2014 Jun 18. Update Jun 25.
134-
135162
Include a plugin manager with Vim? Neobundle seems to be the best currently.
136163
Long message about this from ZyX, 2014 Mar 23. And following replies.
137164
Also see http://vim-wiki.mawercer.de/wiki/topic/vim%20plugin%20managment.html
@@ -493,6 +520,9 @@ Aug 16)
493520
When there are no command line arguments ":next" and ":argu" give E163, which
494521
is confusing. Should say "the argument list is empty".
495522

523+
xterm supports escape sequences to mark a paste operation. Need to be
524+
enabled. (Bruno Sutic, 2014 Jul 11) How to know the terminal supports this?
525+
496526
URXVT:
497527
- will get stuck if byte sequence does not contain the expected semicolon.
498528
- Use urxvt mouse support also in xterm. Explanations:

runtime/filetype.vim

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim support file to detect file types
22
"
33
" Maintainer: Bram Moolenaar <[email protected]>
4-
" Last Change: 2014 Jul 09
4+
" Last Change: 2014 Jul 16
55

66
" Listen very carefully, I will say this only once
77
if exists("did_load_filetypes")
@@ -989,7 +989,7 @@ au BufNewFile,BufRead *.java,*.jav setf java
989989
au BufNewFile,BufRead *.jj,*.jjt setf javacc
990990

991991
" JavaScript, ECMAScript
992-
au BufNewFile,BufRead *.js,*.javascript,*.es,*.jsx,*.json setf javascript
992+
au BufNewFile,BufRead *.js,*.javascript,*.es,*.jsx setf javascript
993993

994994
" Java Server Pages
995995
au BufNewFile,BufRead *.jsp setf jsp
@@ -1007,6 +1007,9 @@ au BufNewFile,BufRead *.jgr setf jgraph
10071007
" Jovial
10081008
au BufNewFile,BufRead *.jov,*.j73,*.jovial setf jovial
10091009

1010+
" JSON
1011+
au BufNewFile,BufRead *.json setf json
1012+
10101013
" Kixtart
10111014
au BufNewFile,BufRead *.kix setf kix
10121015

runtime/ftplugin/json.vim

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
" Vim filetype plugin
2+
" Language: JSON
3+
" Maintainer: David Barnett <[email protected]>
4+
" Last Change: 2014 Jul 16
5+
6+
if exists('b:did_ftplugin')
7+
finish
8+
endif
9+
let b:did_ftplugin = 1
10+
11+
let b:undo_ftplugin = 'setlocal formatoptions< comments< commentstring<'
12+
13+
setlocal formatoptions-=t
14+
15+
" JSON has no comments.
16+
setlocal comments=
17+
setlocal commentstring=

runtime/indent/json.vim

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
" Vim indent file
2+
" Language: JSON
3+
" Maintainer: David Barnett <[email protected]>
4+
" Last Change: 2014 Jul 16
5+
6+
if exists('b:did_indent')
7+
finish
8+
endif
9+
10+
" JSON is a subset of JavaScript. JavaScript indenting should work fine.
11+
runtime! indent/javascript.vim
12+
13+
let b:did_indent = 1

runtime/plugin/matchparen.vim

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
" Vim plugin for showing matching parens
22
" Maintainer: Bram Moolenaar <[email protected]>
3-
" Last Change: 2014 Jul 09
3+
" Last Change: 2014 Jul 19
44

55
" Exit quickly when:
66
" - this plugin was already loaded (or disabled)
@@ -88,7 +88,13 @@ function! s:Highlight_Matching_Pair()
8888
" Find the match. When it was just before the cursor move it there for a
8989
" moment.
9090
if before > 0
91-
let save_cursor = getcurpos()
91+
let has_getcurpos = exists("*getcurpos")
92+
if has_getcurpos
93+
" getcurpos() is more efficient but doesn't exist before 7.4.313.
94+
let save_cursor = getcurpos()
95+
else
96+
let save_cursor = winsaveview()
97+
endif
9298
call cursor(c_lnum, c_col - before)
9399
endif
94100

@@ -148,7 +154,11 @@ function! s:Highlight_Matching_Pair()
148154
endtry
149155

150156
if before > 0
151-
call setpos('.', save_cursor)
157+
if has_getcurpos
158+
call setpos('.', save_cursor)
159+
else
160+
call winrestview(save_cursor)
161+
endif
152162
endif
153163

154164
" If a match is found setup match highlighting.

runtime/syntax/debchangelog.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Maintainer: Debian Vim Maintainers <[email protected]>
44
" Former Maintainers: Gerfried Fuchs <[email protected]>
55
" Wichert Akkerman <[email protected]>
6-
" Last Change: 2014 Jan 20
6+
" Last Change: 2014 Jul 11
77
" URL: http://anonscm.debian.org/hg/pkg-vim/vim/raw-file/unstable/runtime/syntax/debchangelog.vim
88

99
" Standard syntax initialization
@@ -19,7 +19,7 @@ syn case ignore
1919
" Define some common expressions we can use later on
2020
syn match debchangelogName contained "^[[:alnum:]][[:alnum:].+-]\+ "
2121
syn match debchangelogUrgency contained "; urgency=\(low\|medium\|high\|critical\|emergency\)\( \S.*\)\="
22-
syn match debchangelogTarget contained "\v %(frozen|unstable|%(testing|%(old)=stable)%(-proposed-updates|-security)=|experimental|squeeze-%(backports%(-sloppy)=|volatile)|wheezy-backports|%(lucid|precise|quantal|saucy|trusty)%(-%(security|proposed|updates|backports|commercial|partner))=)+"
22+
syn match debchangelogTarget contained "\v %(frozen|unstable|%(testing|%(old)=stable)%(-proposed-updates|-security)=|experimental|squeeze-%(backports%(-sloppy)=|volatile)|wheezy-backports|%(devel|lucid|precise|trusty|utopic)%(-%(security|proposed|updates|backports|commercial|partner))=)+"
2323
syn match debchangelogVersion contained "(.\{-})"
2424
syn match debchangelogCloses contained "closes:\_s*\(bug\)\=#\=\_s\=\d\+\(,\_s*\(bug\)\=#\=\_s\=\d\+\)*"
2525
syn match debchangelogLP contained "\clp:\s\+#\d\+\(,\s*#\d\+\)*"

runtime/syntax/debcontrol.vim

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Maintainer: Debian Vim Maintainers <[email protected]>
44
" Former Maintainers: Gerfried Fuchs <[email protected]>
55
" Wichert Akkerman <[email protected]>
6-
" Last Change: 2013 Oct 28
6+
" Last Change: 2014 May 01
77
" URL: http://anonscm.debian.org/hg/pkg-vim/vim/raw-file/unstable/runtime/syntax/debcontrol.vim
88

99
" Standard syntax initialization
@@ -13,6 +13,9 @@ elseif exists("b:current_syntax")
1313
finish
1414
endif
1515

16+
let s:cpo_save = &cpo
17+
set cpo&vim
18+
1619
" Should match case except for the keys of each field
1720
syn case match
1821

@@ -23,8 +26,17 @@ syn match debcontrolElse "^.*$"
2326
syn match debControlComma ", *"
2427
syn match debControlSpace " "
2528

29+
let s:kernels = '\%(linux\|hurd\|kfreebsd\|knetbsd\|kopensolaris\|netbsd\)'
30+
let s:archs = '\%(alpha\|amd64\|armeb\|armel\|armhf\|arm64\|avr32\|hppa\|i386'
31+
\ . '\|ia64\|lpia\|m32r\|m68k\|mipsel\|mips\|powerpcspe\|powerpc\|ppc64el'
32+
\ . '\|ppc64\|s390x\|s390\|sh3eb\|sh3\|sh4eb\|sh4\|sh\|sparc64\|sparc\|x32\)'
33+
let s:pairs = 'hurd-i386\|kfreebsd-i386\|kfreebsd-amd64\|knetbsd-i386\|kopensolaris-i386\|netbsd-alpha\|netbsd-i386'
34+
2635
" Define some common expressions we can use later on
27-
syn match debcontrolArchitecture contained "\%(all\|linux-any\|\%(any-\)\=\%(alpha\|amd64\|arm\%(e[bl]\|hf\|64\)\=\|avr32\|hppa\|i386\|ia64\|lpia\|m32r\|m68k\|mips\%(el\)\=\|powerpc\%(spe\)\=\|ppc64\|s390x\=\|sh[34]\(eb\)\=\|sh\|sparc\%(64\)\=\)\|x32\|hurd-\%(i386\|any\)\|kfreebsd-\%(i386\|amd64\|any\)\|knetbsd-\%(i386\|any\)\|kopensolaris-\%(i386\|any\)\|netbsd-\%(alpha\|i386\|any\)\|any\)"
36+
exe 'syn match debcontrolArchitecture contained "\%(all\|'. s:kernels .'-any\|\%(any-\)\='. s:archs .'\|'. s:pairs .'\|any\)"'
37+
38+
unlet s:kernels s:archs s:pairs
39+
2840
syn match debcontrolMultiArch contained "\%(no\|foreign\|allowed\|same\)"
2941
syn match debcontrolName contained "[a-z0-9][a-z0-9+.-]\+"
3042
syn match debcontrolPriority contained "\(extra\|important\|optional\|required\|standard\)"
@@ -108,4 +120,7 @@ endif
108120

109121
let b:current_syntax = "debcontrol"
110122

123+
let &cpo = s:cpo_save
124+
unlet s:cpo_save
125+
111126
" vim: ts=8 sw=2

runtime/syntax/debsources.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
" Language: Debian sources.list
33
" Maintainer: Debian Vim Maintainers <[email protected]>
44
" Former Maintainer: Matthijs Mohlmann <[email protected]>
5-
" Last Change: 2014 Jan 20
5+
" Last Change: 2014 Jul 11
66
" URL: http://anonscm.debian.org/hg/pkg-vim/vim/raw-file/unstable/runtime/syntax/debsources.vim
77

88
" Standard syntax initialization
@@ -23,7 +23,7 @@ syn match debsourcesComment /#.*/ contains=@Spell
2323

2424
" Match uri's
2525
syn match debsourcesUri +\(http://\|ftp://\|[rs]sh://\|debtorrent://\|\(cdrom\|copy\|file\):\)[^' <>"]\++
26-
syn match debsourcesDistrKeyword +\([[:alnum:]_./]*\)\(squeeze\|wheezy\|\(old\)\=stable\|testing\|unstable\|sid\|rc-buggy\|experimental\|lucid\|precise\|quantal\|saucy\|trusty\)\([-[:alnum:]_./]*\)+
26+
syn match debsourcesDistrKeyword +\([[:alnum:]_./]*\)\(squeeze\|wheezy\|jessie\|\(old\)\=stable\|testing\|unstable\|sid\|rc-buggy\|experimental\|devel\|lucid\|precise\|trusty\|utopic\)\([-[:alnum:]_./]*\)+
2727

2828
" Associate our matches and regions with pretty colours
2929
hi def link debsourcesLine Error

0 commit comments

Comments
 (0)