Skip to content

Commit 5f8d41a

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents f9a612a + 60cce2f commit 5f8d41a

29 files changed

+524
-106
lines changed

runtime/autoload/tohtml.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
" Vim autoload file for the tohtml plugin.
22
" Maintainer: Ben Fritz <fritzophrenic@gmail.com>
3-
" Last Change: 2013 Jun 19
3+
" Last Change: 2013 Sep 03
44
"
55
" Additional contributors:
66
"
@@ -302,7 +302,7 @@ func! tohtml#Convert2HTML(line1, line2) "{{{
302302
else "{{{
303303
let win_list = []
304304
let buf_list = []
305-
windo | if &diff | call add(win_list, winbufnr(0)) | endif
305+
windo if &diff | call add(win_list, winbufnr(0)) | endif
306306
let s:settings.whole_filler = 1
307307
let g:html_diff_win_num = 0
308308
for window in win_list

runtime/doc/syntax.txt

Lines changed: 30 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*syntax.txt* For Vim version 7.4. Last change: 2015 Aug 13
1+
*syntax.txt* For Vim version 7.4. Last change: 2015 Sep 29
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -422,18 +422,19 @@ and last line to be converted. Example, using the last set Visual area: >
422422
*:TOhtml*
423423
:[range]TOhtml The ":TOhtml" command is defined in a standard plugin.
424424
This command will source |2html.vim| for you. When a
425-
range is given, set |g:html_start_line| and
426-
|g:html_end_line| to the start and end of the range,
427-
respectively. Default range is the entire buffer.
428-
429-
If the current window is part of a |diff|, unless
430-
|g:html_diff_one_file| is set, :TOhtml will convert
431-
all windows which are part of the diff in the current
432-
tab and place them side-by-side in a <table> element
433-
in the generated HTML. With |g:html_line_ids| you can
434-
jump to lines in specific windows with (for example)
435-
#W1L42 for line 42 in the first diffed window, or
436-
#W3L87 for line 87 in the third.
425+
range is given, this command sets |g:html_start_line|
426+
and |g:html_end_line| to the start and end of the
427+
range, respectively. Default range is the entire
428+
buffer.
429+
430+
If the current window is part of a |diff|, unless
431+
|g:html_diff_one_file| is set, :TOhtml will convert
432+
all windows which are part of the diff in the current
433+
tab and place them side-by-side in a <table> element
434+
in the generated HTML. With |g:html_line_ids| you can
435+
jump to lines in specific windows with (for example)
436+
#W1L42 for line 42 in the first diffed window, or
437+
#W3L87 for line 87 in the third.
437438

438439
Examples: >
439440
@@ -747,6 +748,22 @@ and UTF-32 instead, use: >
747748
Note that documents encoded in either UTF-32 or UTF-16 have known
748749
compatibility problems with some major browsers.
749750

751+
*g:html_font*
752+
Default: "monospace"
753+
You can specify the font or fonts used in the converted document using
754+
g:html_font. If this option is set to a string, then the value will be
755+
surrounded with single quotes. If this option is set to a list then each list
756+
item is surrounded by single quotes and the list is joined with commas. Either
757+
way, "monospace" is added as the fallback generic family name and the entire
758+
result used as the font family (using CSS) or font face (if not using CSS).
759+
Examples: >
760+
761+
" font-family: 'Consolas', monospace;
762+
:let g:html_font = "Consolas"
763+
764+
" font-family: 'DejaVu Sans Mono', 'Consolas', monospace;
765+
:let g:html_font = ["DejaVu Sans Mono", "Consolas"]
766+
<
750767
*convert-to-XML* *convert-to-XHTML* *g:html_use_xhtml*
751768
Default: 0.
752769
When 0, generate standard HTML 4.01 (strict when possible).

runtime/doc/tags

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6054,6 +6054,7 @@ g:html_dynamic_folds syntax.txt /*g:html_dynamic_folds*
60546054
g:html_encoding_override syntax.txt /*g:html_encoding_override*
60556055
g:html_end_line syntax.txt /*g:html_end_line*
60566056
g:html_expand_tabs syntax.txt /*g:html_expand_tabs*
6057+
g:html_font syntax.txt /*g:html_font*
60576058
g:html_hover_unfold syntax.txt /*g:html_hover_unfold*
60586059
g:html_id_expr syntax.txt /*g:html_id_expr*
60596060
g:html_ignore_conceal syntax.txt /*g:html_ignore_conceal*

runtime/doc/todo.txt

Lines changed: 15 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: 2015 Sep 25
1+
*todo.txt* For Vim version 7.4. Last change: 2015 Oct 13
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -72,6 +72,8 @@ Regexp problems:
7272
col and vcol when moving to another line.
7373
- this doesn't work: "syntax match ErrorMsg /.\%9l\%>20c\&\%<28c/". Leaving
7474
out the \& works. Seems any column check after \& fails.
75+
- The pattern "\1" with the old engine gives E65, with the new engine it
76+
matches the empty string. (Dominique Pelle, 2015 Oct 2)
7577

7678
Still using freed memory after using setloclist(). (lcd, 2014 Jul 23)
7779
More info Jul 24. Not clear why.
@@ -101,7 +103,8 @@ Same for src/xxd/Make_cyg.mak
101103

102104
Python: ":py raw_input('prompt')" doesn't work. (Manu Hack)
103105

104-
2html update. (Ben Fritz, 2015 Sep 9)
106+
Patch to add debug backtrace. (Alberto Fanjul, 2015 Sep 27)
107+
Asked for :frame command.
105108

106109
MS-Windows: When editing a file with a leading space, writing it uses the
107110
wrong name. (Aram, 2014 Nov 7) Vim 7.4.
@@ -112,8 +115,6 @@ specifically? First try with the parens, then without.
112115
Value returned by virtcol() changes depending on how lines wrap. This is
113116
inconsistent with the documentation.
114117

115-
Add bzl filetype support. (David Barnett, 2015 Aug 11)
116-
117118
When complete() first argument is before where insert started and 'backspace'
118119
is Vi compatible, the completion fails. (Hirohito Higashi, 2015 Feb 19)
119120

@@ -126,15 +127,21 @@ Goes away when disabling the swap file. (might1, Feb 16)
126127
MS-Windows: Crash opening very long file name starting with "\\".
127128
(Christian Brock, 2012 Jun 29)
128129

129-
The OptionSet autocommand event is not always triggered. (Rick Howe, 2015 Sep
130-
24): setwinvar(), :diffthis, :diffoff.
130+
If libiconv.dll is not found search for libiconv2.dll. (Yasuhiro Matsumoto,
131+
2015 Oct 7)
131132

132-
The argument for "-S" is not taken literally, the ":so" command expands
133-
wildcards. Add a ":nowild" command modifier? (ZyX, 2015 March 4)
133+
The OptionSet autocommand event is not always triggered. (Rick Howe, 2015 Sep
134+
24): :diffthis, :diffoff.
134135

135136
":set all&" still does not handle all side effects. Centralize handling side
136137
effects for when set by the user, on init and when reset to default.
137138

139+
":tag" does not jump to the right entry of a :tselect. (James Speros, 2015 Oct
140+
9)
141+
142+
The argument for "-S" is not taken literally, the ":so" command expands
143+
wildcards. Add a ":nowild" command modifier? (ZyX, 2015 March 4)
144+
138145
Proposal to make options.txt easier to read. (Arnaud Decara, 2015 Aug 5)
139146
Update Aug 14.
140147

runtime/filetype.vim

Lines changed: 7 additions & 1 deletion
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 <Bram@vim.org>
4-
" Last Change: 2015 Sep 22
4+
" Last Change: 2015 Oct 13
55

66
" Listen very carefully, I will say this only once
77
if exists("did_load_filetypes")
@@ -308,6 +308,9 @@ au BufNewFile,BufRead *.bl setf blank
308308
" Blkid cache file
309309
au BufNewFile,BufRead */etc/blkid.tab,*/etc/blkid.tab.old setf xml
310310

311+
" Bazel (http://bazel.io)
312+
autocmd BufRead,BufNewFile *.bzl,BUILD,WORKSPACE setfiletype bzl
313+
311314
" C or lpc
312315
au BufNewFile,BufRead *.c call s:FTlpc()
313316

@@ -2114,6 +2117,9 @@ au BufNewFile,BufRead *.cm setf voscm
21142117
" Sysctl
21152118
au BufNewFile,BufRead */etc/sysctl.conf,*/etc/sysctl.d/*.conf setf sysctl
21162119

2120+
" Systemd unit files
2121+
au BufNewFile,BufRead */systemd/*.{automount,mount,path,service,socket,swap,target,timer} setf systemd
2122+
21172123
" Synopsys Design Constraints
21182124
au BufNewFile,BufRead *.sdc setf sdc
21192125

runtime/ftplugin/bzl.vim

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
" Vim filetype plugin file
2+
" Language: Bazel (http://bazel.io)
3+
" Maintainer: David Barnett (https://github.com/google/vim-ft-bzl)
4+
" Last Change: 2015 Aug 11
5+
6+
""
7+
" @section Introduction, intro
8+
" Core settings for the bzl filetype, used for BUILD and *.bzl files for the
9+
" Bazel build system (http://bazel.io/).
10+
11+
if exists('b:did_ftplugin')
12+
finish
13+
endif
14+
15+
16+
" Vim 7.4.051 has opinionated settings in ftplugin/python.vim that try to force
17+
" PEP8 conventions on every python file, but these conflict with Google's
18+
" indentation guidelines. As a workaround, we explicitly source the system
19+
" ftplugin, but save indentation settings beforehand and restore them after.
20+
let s:save_expandtab = &l:expandtab
21+
let s:save_shiftwidth = &l:shiftwidth
22+
let s:save_softtabstop = &l:softtabstop
23+
let s:save_tabstop = &l:tabstop
24+
25+
" NOTE: Vim versions before 7.3.511 had a ftplugin/python.vim that was broken
26+
" for compatible mode.
27+
let s:save_cpo = &cpo
28+
set cpo&vim
29+
30+
" Load base python ftplugin (also defines b:did_ftplugin).
31+
source $VIMRUNTIME/ftplugin/python.vim
32+
33+
" NOTE: Vim versions before 7.4.104 and later set this in ftplugin/python.vim.
34+
setlocal comments=b:#,fb:-
35+
36+
" Restore pre-existing indentation settings.
37+
let &l:expandtab = s:save_expandtab
38+
let &l:shiftwidth = s:save_shiftwidth
39+
let &l:softtabstop = s:save_softtabstop
40+
let &l:tabstop = s:save_tabstop
41+
42+
setlocal formatoptions-=t
43+
44+
" Make gf work with imports in BUILD files.
45+
setlocal includeexpr=substitute(v:fname,'//','','')
46+
47+
" Enable syntax-based folding, if specified.
48+
if get(g:, 'ft_bzl_fold', 0)
49+
setlocal foldmethod=syntax
50+
setlocal foldtext=BzlFoldText()
51+
endif
52+
53+
if exists('*BzlFoldText')
54+
finish
55+
endif
56+
57+
function BzlFoldText() abort
58+
let l:start_num = nextnonblank(v:foldstart)
59+
let l:end_num = prevnonblank(v:foldend)
60+
61+
if l:end_num <= l:start_num + 1
62+
" If the fold is empty, don't print anything for the contents.
63+
let l:content = ''
64+
else
65+
" Otherwise look for something matching the content regex.
66+
" And if nothing matches, print an ellipsis.
67+
let l:content = '...'
68+
for l:line in getline(l:start_num + 1, l:end_num - 1)
69+
let l:content_match = matchstr(l:line, '\m\C^\s*name = \zs.*\ze,$')
70+
if !empty(l:content_match)
71+
let l:content = l:content_match
72+
break
73+
endif
74+
endfor
75+
endif
76+
77+
" Enclose content with start and end
78+
let l:start_text = getline(l:start_num)
79+
let l:end_text = substitute(getline(l:end_num), '^\s*', '', '')
80+
let l:text = l:start_text . ' ' . l:content . ' ' . l:end_text
81+
82+
" Compute the available width for the displayed text.
83+
let l:width = winwidth(0) - &foldcolumn - (&number ? &numberwidth : 0)
84+
let l:lines_folded = ' ' . string(1 + v:foldend - v:foldstart) . ' lines'
85+
86+
" Expand tabs, truncate, pad, and concatenate
87+
let l:text = substitute(l:text, '\t', repeat(' ', &tabstop), 'g')
88+
let l:text = strpart(l:text, 0, l:width - len(l:lines_folded))
89+
let l:padding = repeat(' ', l:width - len(l:lines_folded) - len(l:text))
90+
return l:text . l:padding . l:lines_folded
91+
endfunction
92+
93+
let &cpo = s:save_cpo
94+
unlet s:save_cpo

runtime/ftplugin/j.vim

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
" Language: J
33
" Maintainer: David Bürgin <676c7473@gmail.com>
44
" URL: https://github.com/glts/vim-j
5-
" Last Change: 2015-03-27
5+
" Last Change: 2015-09-27
66

77
if exists('b:did_ftplugin')
88
finish
@@ -12,13 +12,20 @@ let b:did_ftplugin = 1
1212
let s:save_cpo = &cpo
1313
set cpo&vim
1414

15-
setlocal iskeyword=48-57,A-Z,_,a-z
15+
setlocal iskeyword=48-57,A-Z,a-z,_
1616
setlocal comments=:NB.
1717
setlocal commentstring=NB.\ %s
1818
setlocal formatoptions-=t
1919
setlocal matchpairs=(:)
20+
setlocal path-=/usr/include
2021

21-
let b:undo_ftplugin = 'setlocal matchpairs< formatoptions< commentstring< comments< iskeyword<'
22+
" Includes. To make the shorthand form "require 'web/cgi'" work, double the
23+
" last path component. Also strip off leading folder names like "~addons/".
24+
setlocal include=\\v^\\s*(load\|require)\\s*'\\zs\\f+\\ze'
25+
setlocal includeexpr=substitute(substitute(tr(v:fname,'\\','/'),'\\v^[^~][^/.]*(/[^/.]+)$','&\\1',''),'\\v^\\~[^/]+/','','')
26+
setlocal suffixesadd=.ijs
27+
28+
let b:undo_ftplugin = 'setlocal matchpairs< formatoptions< commentstring< comments< iskeyword< path< include< includeexpr< suffixesadd<'
2229

2330
" Section movement with ]] ][ [[ []. The start/end patterns below are amended
2431
" inside the function in order to avoid matching on the current cursor line.

runtime/ftplugin/systemd.vim

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
" Vim filetype plugin file
2+
" Language: systemd.unit(5)
3+
4+
if !exists('b:did_ftplugin')
5+
" Looks a lot like dosini files.
6+
runtime! ftplugin/dosini.vim
7+
endif

0 commit comments

Comments
 (0)