summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-04-28 19:02:44 +0200
committerBram Moolenaar <Bram@vim.org>2011-04-28 19:02:44 +0200
commit8e5af3e531b986985e2be05e7be652119e76889f (patch)
treefc070684f7cd2d32222d94e180f9ff3b9b2e3f2e /runtime
parentb453a53b59b55a399f0ff2e473cba796d95a2a0b (diff)
Updated runtime files.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/autoload/htmlcomplete.vim3
-rw-r--r--runtime/autoload/tohtml.vim31
-rw-r--r--runtime/compiler/cs.vim12
-rw-r--r--runtime/doc/autocmd.txt7
-rw-r--r--runtime/doc/diff.txt6
-rw-r--r--runtime/doc/indent.txt4
-rw-r--r--runtime/doc/map.txt5
-rw-r--r--runtime/doc/options.txt9
-rw-r--r--runtime/doc/pattern.txt9
-rw-r--r--runtime/doc/syntax.txt45
-rw-r--r--runtime/doc/todo.txt53
-rw-r--r--runtime/filetype.vim69
-rw-r--r--runtime/ftplugin/pascal.vim9
-rw-r--r--runtime/plugin/tohtml.vim20
-rw-r--r--runtime/syntax/2html.vim17
-rw-r--r--runtime/syntax/crontab.vim5
-rw-r--r--runtime/syntax/dirpager.vim33
-rw-r--r--runtime/syntax/dnsmasq.vim104
-rw-r--r--runtime/syntax/gnash.vim99
-rw-r--r--runtime/syntax/idlang.vim4
-rw-r--r--runtime/syntax/pov.vim54
-rw-r--r--runtime/syntax/povini.vim18
-rw-r--r--runtime/syntax/ratpoison.vim14
-rw-r--r--runtime/vimrc_example.vim4
24 files changed, 501 insertions, 133 deletions
diff --git a/runtime/autoload/htmlcomplete.vim b/runtime/autoload/htmlcomplete.vim
index 5420321b6e..b2f1aeeb90 100644
--- a/runtime/autoload/htmlcomplete.vim
+++ b/runtime/autoload/htmlcomplete.vim
@@ -1,7 +1,7 @@
" Vim completion script
" Language: HTML and XHTML
" Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
-" Last Change: 2006 Oct 19
+" Last Change: 2011 Apr 28
function! htmlcomplete#CompleteTags(findstart, base)
if a:findstart
@@ -285,6 +285,7 @@ function! htmlcomplete#CompleteTags(findstart, base)
let cssfiles = styletable + secimportfiles
let classes = []
for file in cssfiles
+ let classlines = []
if filereadable(file)
let stylesheet = readfile(file)
let stylefile = join(stylesheet, ' ')
diff --git a/runtime/autoload/tohtml.vim b/runtime/autoload/tohtml.vim
index ce97ec9fa2..ad33cee1da 100644
--- a/runtime/autoload/tohtml.vim
+++ b/runtime/autoload/tohtml.vim
@@ -1,6 +1,6 @@
" Vim autoload file for the tohtml plugin.
" Maintainer: Ben Fritz <fritzophrenic@gmail.com>
-" Last Change: 2011 Jan 05
+" Last Change: 2011 Apr 05
"
" Additional contributors:
"
@@ -16,7 +16,7 @@ set cpo-=C
" Automatically find charsets from all encodings supported natively by Vim. With
" the 8bit- and 2byte- prefixes, Vim can actually support more encodings than
" this. Let the user specify these however since they won't be supported on
-" every system. TODO: how? g:html_charsets and g:html_encodings?
+" every system.
"
" Note, not all of Vim's supported encodings have a charset to use.
"
@@ -312,8 +312,9 @@ func! tohtml#Convert2HTML(line1, line2) "{{{
" figure out whether current charset and encoding will work, if not
" default to UTF-8
if !exists('g:html_use_encoding') &&
- \ (&l:fileencoding!='' && &l:fileencoding!=s:settings.vim_encoding ||
- \ &l:fileencoding=='' && &encoding!=s:settings.vim_encoding)
+ \ (((&l:fileencoding=='' || (&l:buftype!='' && &l:buftype!=?'help'))
+ \ && &encoding!=?s:settings.vim_encoding)
+ \ || &l:fileencoding!='' && &l:fileencoding!=?s:settings.vim_encoding)
echohl WarningMsg
echomsg "TOhtml: mismatched file encodings in Diff buffers, using UTF-8"
echohl None
@@ -603,6 +604,7 @@ func! tohtml#GetUserSettings() "{{{
call tohtml#GetOption(user_settings, 'no_progress', !has("statusline") )
call tohtml#GetOption(user_settings, 'diff_one_file', 0 )
call tohtml#GetOption(user_settings, 'number_lines', &number )
+ call tohtml#GetOption(user_settings, 'pre_wrap', &wrap )
call tohtml#GetOption(user_settings, 'use_css', 1 )
call tohtml#GetOption(user_settings, 'ignore_conceal', 0 )
call tohtml#GetOption(user_settings, 'ignore_folding', 0 )
@@ -641,7 +643,13 @@ func! tohtml#GetUserSettings() "{{{
" aren't allowed inside a <pre> block
if !user_settings.use_css
let user_settings.no_pre = 1
- endif "}}}
+ endif
+
+ " pre_wrap doesn't do anything if not using pre or not using CSS
+ if user_settings.no_pre || !user_settings.use_css
+ let user_settings.pre_wrap=0
+ endif
+ "}}}
" set up expand_tabs option after all the overrides so we know the
" appropriate defaults {{{
@@ -669,9 +677,16 @@ func! tohtml#GetUserSettings() "{{{
endif
else
" Figure out proper MIME charset from 'fileencoding' if possible
- if &l:fileencoding != ''
- let user_settings.vim_encoding = &l:fileencoding
- call tohtml#CharsetFromEncoding(user_settings)
+ if &l:fileencoding != ''
+ " If the buffer is not a "normal" type, the 'fileencoding' value may not
+ " be trusted; since the buffer should not be written the fileencoding is
+ " not intended to be used.
+ if &l:buftype=='' || &l:buftype==?'help'
+ let user_settings.vim_encoding = &l:fileencoding
+ call tohtml#CharsetFromEncoding(user_settings)
+ else
+ let user_settings.encoding = '' " trigger detection using &encoding
+ endif
endif
" else from 'encoding' if possible
diff --git a/runtime/compiler/cs.vim b/runtime/compiler/cs.vim
index 5b75d6d2a1..7ba0b609fc 100644
--- a/runtime/compiler/cs.vim
+++ b/runtime/compiler/cs.vim
@@ -1,7 +1,8 @@
" Vim compiler file
-" Compiler: ms C#
-" Maintainer: Joseph H. Yao (hyao@sina.com)
-" Last Change: 2004 Mar 27
+" Compiler: Microsoft Visual Studio C#
+" Maintainer: Zhou YiChao (broken.zhou@gmail.com)
+" Previous Maintainer: Joseph H. Yao (hyao@sina.com)
+" Last Change: 2011 Apr 21
if exists("current_compiler")
finish
@@ -12,8 +13,9 @@ if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
-" default errorformat
CompilerSet errorformat&
+CompilerSet errorformat+=%f(%l\\,%v):\ %t%*[^:]:\ %m,
+ \%trror%*[^:]:\ %m,
+ \%tarning%*[^:]:\ %m
-" default make
CompilerSet makeprg=csc\ %
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt
index c129e3fc83..d40df23416 100644
--- a/runtime/doc/autocmd.txt
+++ b/runtime/doc/autocmd.txt
@@ -1,4 +1,4 @@
-*autocmd.txt* For Vim version 7.3. Last change: 2010 Jul 22
+*autocmd.txt* For Vim version 7.3. Last change: 2011 Apr 26
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -786,7 +786,10 @@ TermChanged After the value of 'term' has changed. Useful
TermResponse After the response to |t_RV| is received from
the terminal. The value of |v:termresponse|
can be used to do things depending on the
- terminal version.
+ terminal version. Note that this event may be
+ triggered halfway executing another event,
+ especially if file I/O, a shell command or
+ anything else that takes time is involved.
*User*
User Never executed automatically. To be used for
autocommands that are only executed with
diff --git a/runtime/doc/diff.txt b/runtime/doc/diff.txt
index 01767f905e..288ddd78a8 100644
--- a/runtime/doc/diff.txt
+++ b/runtime/doc/diff.txt
@@ -1,4 +1,4 @@
-*diff.txt* For Vim version 7.3. Last change: 2010 Dec 08
+*diff.txt* For Vim version 7.3. Last change: 2011 Apr 14
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -167,8 +167,8 @@ in diff mode in one window and "normal" in another window. It is also
possible to view the changes you have made to a buffer since the file was
loaded. Since Vim doesn't allow having two buffers for the same file, you
need another buffer. This command is useful: >
- command DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis
- \ | wincmd p | diffthis
+ command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_
+ \ | diffthis | wincmd p | diffthis
(this is in |vimrc_example.vim|). Use ":DiffOrig" to see the differences
between the current buffer and the file it was loaded from.
diff --git a/runtime/doc/indent.txt b/runtime/doc/indent.txt
index 3e06aaacf6..405c3dd8b1 100644
--- a/runtime/doc/indent.txt
+++ b/runtime/doc/indent.txt
@@ -1,4 +1,4 @@
-*indent.txt* For Vim version 7.3. Last change: 2011 Mar 18
+*indent.txt* For Vim version 7.3. Last change: 2011 Apr 25
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -472,6 +472,8 @@ assume a 'shiftwidth' of 4.
*N Vim searches for unclosed comments at most N lines away. This
limits the time needed to search for the start of a comment.
+ If your /* */ comments stop indenting afer N lines this is the
+ value you will want to change.
(default 70 lines).
#N When N is non-zero recognize shell/Perl comments, starting with
diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt
index c18eed104a..29b9e9f35e 100644
--- a/runtime/doc/map.txt
+++ b/runtime/doc/map.txt
@@ -1,4 +1,4 @@
-*map.txt* For Vim version 7.3. Last change: 2010 Nov 10
+*map.txt* For Vim version 7.3. Last change: 2011 Apr 13
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1291,7 +1291,8 @@ Possible attributes are:
-range Range allowed, default is current line
-range=% Range allowed, default is whole file (1,$)
-range=N A count (default N) which is specified in the line
- number position (like |:split|)
+ number position (like |:split|); allows for zero line
+ number.
-count=N A count (default N) which is specified either in the line
number position, or as an initial argument (like |:Next|).
Specifying -count (without a default) acts like -count=0
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index 166c0aaad1..a367e06b75 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -1,4 +1,4 @@
-*options.txt* For Vim version 7.3. Last change: 2011 Mar 22
+*options.txt* For Vim version 7.3. Last change: 2011 Apr 15
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -5907,9 +5907,10 @@ A jump table for the options with a short description can be found at |Q_op|.
For Unix the default it "| tee". The stdout of the compiler is saved
in a file and echoed to the screen. If the 'shell' option is "csh" or
"tcsh" after initializations, the default becomes "|& tee". If the
- 'shell' option is "sh", "ksh", "zsh" or "bash" the default becomes
- "2>&1| tee". This means that stderr is also included. Before using
- the 'shell' option a path is removed, thus "/bin/sh" uses "sh".
+ 'shell' option is "sh", "ksh", "mksh", "pdksh", "zsh" or "bash" the
+ default becomes "2>&1| tee". This means that stderr is also included.
+ Before using the 'shell' option a path is removed, thus "/bin/sh" uses
+ "sh".
The initialization of this option is done after reading the ".vimrc"
and the other initializations, so that when the 'shell' option is set
there, the 'shellpipe' option changes automatically, unless it was
diff --git a/runtime/doc/pattern.txt b/runtime/doc/pattern.txt
index 0fd31d658f..84cd7360a0 100644
--- a/runtime/doc/pattern.txt
+++ b/runtime/doc/pattern.txt
@@ -1,4 +1,4 @@
-*pattern.txt* For Vim version 7.3. Last change: 2011 Feb 25
+*pattern.txt* For Vim version 7.3. Last change: 2011 Apr 28
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -651,6 +651,13 @@ overview.
"foobar" you could use "\(foo\)\@!...bar", but that doesn't match a
bar at the start of a line. Use "\(foo\)\@<!bar".
+ Useful example: to find "foo" in a line that does not contain "bar": >
+ /^\%(.*bar\)\@!.*\zsfoo
+< This pattern first checks that there is not a single position in the
+ line where "bar" matches. If ".*bar" matches somewhere the \@! will
+ reject the pattern. When there is no match any "foo" will be found.
+ The "\zs" is to have the match start just before "foo".
+
*/\@<=*
\@<= Matches with zero width if the preceding atom matches just before what
follows. |/zero-width| {not in Vi}
diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt
index 6c3927410c..c30926715c 100644
--- a/runtime/doc/syntax.txt
+++ b/runtime/doc/syntax.txt
@@ -1,4 +1,4 @@
-*syntax.txt* For Vim version 7.3. Last change: 2011 Apr 01
+*syntax.txt* For Vim version 7.3. Last change: 2011 Apr 06
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -468,18 +468,28 @@ disabled javascript to view closed folds. To use this option, use: >
Setting html_no_foldcolumn with html_dynamic_folds will automatically set
html_hover_unfold, because otherwise the folds wouldn't be dynamic.
-By default "<pre>" and "</pre>" is used around the text. This makes it show
-up as you see it in Vim, but without wrapping. If you prefer wrapping, at the
-risk of making some things look a bit different, use: >
+By default "<pre>" and "</pre>" are used around the text. When 'wrap' is set
+in the window being converted, the CSS 2.0 "white-space:pre-wrap" value is
+used to wrap the text. You can explicitly enable the wrapping with: >
+ :let g:html_pre_wrap = 1
+or disable with >
+ :let g:html_pre_wrap = 0
+This generates HTML that looks very close to the Vim window, but unfortunately
+there can be minor differences such as the lack of a 'showbreak' option in in
+the HTML, or where line breaks can occur.
+
+Another way to obtain text wrapping in the HTML, at the risk of making some
+things look even more different, is to use: >
:let g:html_no_pre = 1
This will use <br> at the end of each line and use "&nbsp;" for repeated
-spaces.
+spaces. Doing it this way is more compatible with old browsers, but modern
+browsers support the "white-space" method.
-If you do use the "<pre>" tags, <Tab> characters in the text are included in
-the generated output if they will have no effect on the appearance of the
-text and it looks like they are in the document intentionally. This allows for
-the HTML output to be copied and pasted from a browser without losing the
-actual whitespace used in the document.
+If you do stick with the default "<pre>" tags, <Tab> characters in the text
+are included in the generated output if they will have no effect on the
+appearance of the text and it looks like they are in the document
+intentionally. This allows for the HTML output to be copied and pasted from a
+browser without losing the actual whitespace used in the document.
Specifically, <Tab> characters will be included if the 'tabstop' option is set
to the default of 8, 'expandtab' is not set, and if neither the foldcolumn nor
@@ -502,13 +512,14 @@ inserted lines as with the side-by-side diff, use: >
:let g:html_whole_filler = 1
And to go back to displaying up to three lines again: >
:unlet g:html_whole_filler
-<
-TOhtml uses the current value of 'fileencoding' if set, or 'encoding' if not,
-to determine the charset and 'fileencoding' of the HTML file. In general, this
-works for the encodings mentioned specifically by name in |encoding-names|, but
-TOhtml will only automatically use those encodings which are widely supported.
-However, you can override this to support specific encodings that may not be
-automatically detected by default.
+
+For most buffers, TOhtml uses the current value of 'fileencoding' if set, or
+'encoding' if not, to determine the charset and 'fileencoding' of the HTML
+file. 'encoding' is always used for certain 'buftype' values. In general, this
+works for the encodings mentioned specifically by name in |encoding-names|,
+but TOhtml will only automatically use those encodings which are widely
+supported. However, you can override this to support specific encodings that
+may not be automatically detected by default.
To overrule all automatic charset detection, set g:html_use_encoding to the
name of the charset to be used. TOhtml will try to determine the appropriate
diff --git a/runtime/doc/todo.txt b/runtime/doc/todo.txt
index f7a96b6167..3adc36cc20 100644
--- a/runtime/doc/todo.txt
+++ b/runtime/doc/todo.txt
@@ -1,4 +1,4 @@
-*todo.txt* For Vim version 7.3. Last change: 2011 Apr 01
+*todo.txt* For Vim version 7.3. Last change: 2011 Apr 28
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -30,14 +30,11 @@ be worked on, but only if you sponsor Vim development. See |sponsor|.
*known-bugs*
-------------------- Known bugs and current work -----------------------
-Improvement patch for filetype.vim. (Thilo Six, 2011 Mar 19)
+Go through more coverity reports.
-Patch to recognize more files as log files. (Mathieu Parent, 2011 Jan 14)
+Patch for behavior of :cwindow. (Ingo Karkat, 2011 Apr 15)
-Two patches for xxd. (Florian Zumbiehl, 2011 Jan 11)
-Two updates for second one Jan 12.
-
-Go through new coverity reports.
+Configure fix for finding exctags. (Hong Xu, 2011 Aprl 2)
When 'colorcolumn' is set locally to a window, ":new" opens a window with the
same highlighting but 'colorcolumn' is empty. (Tyru, 2010 Nov 15)
@@ -45,11 +42,30 @@ Patch by Christian Brabandt, 2011 Feb 13 (but move further down).
Patch for configure related to Ruby on Mac OS X. (Bjorn Winckler, 2011 Jan 14)
+Patch to make mkdir() work properly for different encodings. (Yukihiro
+Nakadaira, 2011 Apr 23)
+
+Updated PHP syntax file. (Jason Woofenden, 2011 Apr 22)
+
+ASCII Vim logo's (Erling Westenvik, 2011 Apr 19) Add to website.
+
+Crash in autocomplete, valgrind log. (Greg Weber, 2011 Apr 22)
+
+Patch for static code analysis errors in riscOS. (Dominique Pelle, 2010 Dec 3)
+
Patch to set v:register on startup. (Ingo Karkat, 2011 Jan 16)
+Risc OS gui has obvious errors. Drop it?
+
Patch to set v:register default depending on "unnamed" in 'clipboard'. (Ingo
Karkat, 2011 Jan 16)
+Patch to add 'cscoperelative'. (Raghavendra Prabhu, 2011 Apr 18)
+
+New syntax file for dnsmasq. (Thilo Six, 2011 Apr 18)
+
+Discussion about canonicalization of Hebrew. (Ron Aaron, 2011 April 10)
+
Patch for:
InsertCharPre - user typed character Insert mode, before inserting the
char. Pattern is matched with text before the cursor.
@@ -119,6 +135,21 @@ only one of the two ends gets the cchar displayed. (Brett Stahlman, 2010 Aug
Bug in repeating Visual "u". (Lawrence Kesteloot, 2010 Dec 20)
+In GTK Gvim, setting 'lines' and 'columns' to 99999 causes a crash (Tony
+Mechelynck, 2011 Apr 25). Can reproduce the crash sometimes:
+ gvim -N -u NONE --cmd 'set lines=99999 columns=99999'
+(gvim:25968): Gdk-WARNING **: Native Windows wider or taller than 65535 pixels are not supported
+The program 'gvim' received an X Window System error.
+This probably reflects a bug in the program.
+The error was 'RenderBadPicture (invalid Picture parameter)'.
+ (Details: serial 313 error_code 161 request_code 149 minor_code 8)
+ (Note to programmers: normally, X errors are reported asynchronously;
+ that is, you will receive the error a while after causing it.
+ To debug your program, run it with the --sync command line
+ option to change this behavior. You can then get a meaningful
+ backtrace from your debugger if you break on the gdk_x_error() function.)
+Check that number of pixels doesn't go above 65535?
+
CursorHold repeats typed key when it's the start of a mapping.
(Will Gray, 2011 Mar 23)
@@ -204,8 +235,6 @@ Version of netbeans.c for use with MacVim. (Kazuki Sakamoto, 2010 Nov 18)
there is one backslash. (Ray Frush, 2010 Nov 18) What does the original ex
do?
-":find" completion does not escape space in directory name. (Isz, 2010 Nov 2)
-
Searching mixed with Visual mode doesn't redraw properly. (James Vega, 2010 Nov
22)
@@ -411,8 +440,6 @@ Undo problem: line not removed as expected when using setline() from Insert
mode. (Israel Chauca, 2010 May 13, more in second msg)
Break undo when CTRL-R = changes the text? Or save more lines?
-Patch for static code analysis errors in riscOS. (Dominique Pelle, 2010 Dec 3)
-
Patch for better #if 0 syntax highlighting for C code. (Ben Schmidt, 2011 Jan
20)
@@ -1402,9 +1429,6 @@ In gvim the backspace key produces a backspace character, but on Linux the
VERASE key is Delete. Set VERASE to Backspace? (patch by Stephane Chazelas,
2007 Oct 16)
-When entering a C /* comment, after typing <Enter> for 70 times the indent
-disappears. (Vincent Beffara, 2008 Jul 3)
-
TermResponse autocommand isn't always triggered when using vimdiff. (Aron
Griffis, 2007 Sep 19)
@@ -3768,6 +3792,7 @@ Insert mode:
7 Use CTRL-G <count> to repeat what follows. Useful for inserting a
character multiple times or repeating CTRL-Y.
- Make 'revins' work in Replace mode.
+9 Can't use multi-byte characters for 'matchpairs'.
7 Use 'matchpairs' for 'showmatch': When inserting a character check if it
appears in the rhs of 'matchpairs'.
- In Insert mode (and command line editing?): Allow undo of the last typed
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 0d78a940e4..28507b3f1f 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1,7 +1,7 @@
" Vim support file to detect file types
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
-" Last Change: 2011 Apr 01
+" Last Change: 2011 Apr 28
" Listen very carefully, I will say this only once
if exists("did_load_filetypes")
@@ -123,7 +123,7 @@ au BufNewFile,BufRead *.am
\ if expand("<afile>") !~? 'Makefile.am\>' | setf elf | endif
" ALSA configuration
-au BufNewFile,BufRead ~/.asoundrc,/usr/share/alsa/alsa.conf,*/etc/asound.conf setf alsaconf
+au BufNewFile,BufRead .asoundrc,*/usr/share/alsa/alsa.conf,*/etc/asound.conf setf alsaconf
" Arc Macro Language
au BufNewFile,BufRead *.aml setf aml
@@ -156,7 +156,7 @@ au BufNewFile,BufRead *.asp
\ endif
" Grub (must be before catch *.lst)
-au BufNewFile,BufRead /boot/grub/menu.lst,/boot/grub/grub.conf,*/etc/grub.conf setf grub
+au BufNewFile,BufRead */boot/grub/menu.lst,*/boot/grub/grub.conf,*/etc/grub.conf setf grub
" Assembly (all kinds)
" *.lst is not pure assembly, it has two extra columns (address, byte codes)
@@ -316,9 +316,6 @@ endfunc
" Calendar
au BufNewFile,BufRead calendar setf calendar
-au BufNewFile,BufRead */.calendar/*,
- \*/share/calendar/*/calendar.*,*/share/calendar/calendar.*
- \ call s:StarSetf('calendar')
" C#
au BufNewFile,BufRead *.cs setf cs
@@ -330,7 +327,7 @@ au BufNewFile,BufRead *.cabal setf cabal
au BufNewFile,BufRead *.toc setf cdrtoc
" Cdrdao config
-au BufNewFile,BufRead */etc/cdrdao.conf,*/etc/defaults/cdrdao,*/etc/default/cdrdao,~/.cdrdao setf cdrdaoconf
+au BufNewFile,BufRead */etc/cdrdao.conf,*/etc/defaults/cdrdao,*/etc/default/cdrdao,.cdrdao setf cdrdaoconf
" Cfengine
au BufNewFile,BufRead cfengine.conf setf cfengine
@@ -487,7 +484,7 @@ au BufNewFile,BufRead *.prg
au BufNewFile,BufRead CMakeLists.txt,*.cmake,*.cmake.in setf cmake
" Cmusrc
-au BufNewFile,BufRead ~/.cmus/{autosave,rc,command-history,*.theme} setf cmusrc
+au BufNewFile,BufRead */.cmus/{autosave,rc,command-history,*.theme} setf cmusrc
au BufNewFile,BufRead */cmus/{rc,*.theme} setf cmusrc
" Cobol
@@ -558,6 +555,9 @@ au BufNewFile,BufRead */etc/apt/sources.list.d/*.list setf debsources
" Deny hosts
au BufNewFile,BufRead denyhosts.conf setf denyhosts
+" dnsmasq(8) configuration files
+au BufNewFile,BufRead dnsmasq.conf setf dnsmasq
+
" ROCKLinux package description
au BufNewFile,BufRead *.desc setf desc
@@ -728,14 +728,14 @@ au BufNewFile,BufRead *.mo,*.gdmo setf gdmo
au BufNewFile,BufRead *.ged,lltxxxxx.txt setf gedcom
" Git
-autocmd BufNewFile,BufRead *.git/COMMIT_EDITMSG setf gitcommit
-autocmd BufNewFile,BufRead *.git/config,.gitconfig,.gitmodules setf gitconfig
-autocmd BufNewFile,BufRead git-rebase-todo setf gitrebase
-autocmd BufNewFile,BufRead .msg.[0-9]*
+au BufNewFile,BufRead *.git/COMMIT_EDITMSG setf gitcommit
+au BufNewFile,BufRead *.git/config,.gitconfig,.gitmodules setf gitconfig
+au BufNewFile,BufRead git-rebase-todo setf gitrebase
+au BufNewFile,BufRead .msg.[0-9]*
\ if getline(1) =~ '^From.*# This line is ignored.$' |
\ setf gitsendemail |
\ endif
-autocmd BufNewFile,BufRead *.git/**
+au BufNewFile,BufRead *.git/**
\ if getline(1) =~ '^\x\{40\}\>\|^ref: ' |
\ setf git |
\ endif
@@ -749,7 +749,10 @@ au BufNewFile,BufRead *.gp,.gprc setf gp
" GPG
au BufNewFile,BufRead */.gnupg/options setf gpg
au BufNewFile,BufRead */.gnupg/gpg.conf setf gpg
-au BufNewFile,BufRead /usr/**/gnupg/options.skel setf gpg
+au BufNewFile,BufRead */usr/**/gnupg/options.skel setf gpg
+
+" gnash(1) configuration files
+au BufNewFile,BufRead gnashrc,.gnashrc,gnashpluginrc,.gnashpluginrc setf gnash
" Gnuplot scripts
au BufNewFile,BufRead *.gpi setf gnuplot
@@ -980,7 +983,7 @@ au BufNewFile,BufRead lftp.conf,.lftprc,*lftp/rc setf lftp
au BufNewFile,BufRead *.ll setf lifelines
" Lilo: Linux loader
-au BufNewFile,BufRead lilo.conf* call s:StarSetf('lilo')
+au BufNewFile,BufRead lilo.conf setf lilo
" Lisp (*.el = ELisp, *.cl = Common Lisp, *.jl = librep Lisp)
if has("fname_case")
@@ -1103,7 +1106,7 @@ au BufNewFile,BufRead *.mel setf mel
au BufNewFile,BufRead *.hgrc,*hgrc setf cfg
" Messages (logs mostly)
-autocmd BufNewFile,BufRead */log/{auth,cron,daemon,debug,kern,lpr,mail,messages,news/news,syslog,user}{,.log,.err,.info,.warn,.crit,.notice}{,.*[0-9]*} setf messages
+au BufNewFile,BufRead */log/{auth,cron,daemon,debug,kern,lpr,mail,messages,news/news,syslog,user}{,.log,.err,.info,.warn,.crit,.notice}{,.[0-9]*,-[0-9]*} setf messages
" Metafont
au BufNewFile,BufRead *.mf setf mf
@@ -1159,11 +1162,7 @@ au BufNewFile,BufRead *.isc,*.monk,*.ssc,*.tsc setf monk
au BufNewFile,BufRead *.moo setf moo
" Modconf
-au BufNewFile,BufRead */etc/modules.conf,*/etc/modules,*/etc/conf.modules setf modconf
-au BufNewFile,BufRead */etc/modutils/*
- \ if executable(expand("<afile>")) != 1
- \| call s:StarSetf('modconf')
- \|endif
+au BufNewFile,BufRead */etc/modules.conf,*/etc/modules,*/etc/conf.modules setf modconf
" Mplayer config
au BufNewFile,BufRead mplayer.conf,*/.mplayer/config setf mplayerconf
@@ -1180,6 +1179,9 @@ au BufNewFile,BufRead *.msql setf msql
" Mysql
au BufNewFile,BufRead *.mysql setf mysql
+" Mutt setup files (must be before catch *.rc)
+au BufNewFile,BufRead */etc/Muttrc.d/* call s:StarSetf('muttrc')
+
" M$ Resource files
au BufNewFile,BufRead *.rc setf rc
@@ -1588,8 +1590,7 @@ func! s:FTr()
endfunc
" Remind
-au BufNewFile,BufRead .reminders* call s:StarSetf('remind')
-au BufNewFile,BufRead *.remind,*.rem setf remind
+au BufNewFile,BufRead .reminders,*.remind,*.rem setf remind
" Resolv.conf
au BufNewFile,BufRead resolv.conf setf resolv
@@ -2230,7 +2231,7 @@ au BufEnter *.xpm2 setf xpm2
" XFree86 config
au BufNewFile,BufRead XF86Config
\ if getline(1) =~ '\<XConfigurator\>' |
- \ let b:xf86c_xfree86_version = 3 |
+ \ let b:xf86conf_xfree86_version = 3 |
\ endif |
\ setf xf86conf
au BufNewFile,BufRead */xorg.conf.d/*.conf
@@ -2386,6 +2387,11 @@ au BufNewFile,BufRead bzr_log.* setf bzr
" BIND zone
au BufNewFile,BufRead */named/db.*,*/bind/db.* call s:StarSetf('bindzone')
+" Calendar
+au BufNewFile,BufRead */.calendar/*,
+ \*/share/calendar/*/calendar.*,*/share/calendar/calendar.*
+ \ call s:StarSetf('calendar')
+
" Changelog
au BufNewFile,BufRead [cC]hange[lL]og*
\ if getline(1) =~ '; urgency='
@@ -2397,6 +2403,9 @@ au BufNewFile,BufRead [cC]hange[lL]og*
" Crontab
au BufNewFile,BufRead crontab,crontab.*,*/etc/cron.d/* call s:StarSetf('crontab')
+" dnsmasq(8) configuration
+au BufNewFile,BufRead */etc/dnsmasq.d/* call s:StarSetf('dnsmasq')
+
" Dracula
au BufNewFile,BufRead drac.* call s:StarSetf('dracula')
@@ -2412,7 +2421,7 @@ au BufNewFile,BufRead *fvwm2rc*
\|endif
" Gedcom
-au BufNewFile,BufRead /tmp/lltmp* call s:StarSetf('gedcom')
+au BufNewFile,BufRead */tmp/lltmp* call s:StarSetf('gedcom')
" GTK RC
au BufNewFile,BufRead .gtkrc*,gtkrc* call s:StarSetf('gtkrc')
@@ -2429,6 +2438,9 @@ au! BufNewFile,BufRead *jarg*
" Kconfig
au BufNewFile,BufRead Kconfig.* call s:StarSetf('kconfig')
+" Lilo: Linux loader
+au BufNewFile,BufRead lilo.conf* call s:StarSetf('lilo')
+
" Logcheck
au BufNewFile,BufRead */etc/logcheck/*.d*/* call s:StarSetf('logcheck')
@@ -2442,6 +2454,10 @@ au BufNewFile,BufRead [rR]akefile* call s:StarSetf('ruby')
au BufNewFile,BufRead mutt[[:alnum:]._-]\{6\} setf mail
" Modconf
+au BufNewFile,BufRead */etc/modutils/*
+ \ if executable(expand("<afile>")) != 1
+ \| call s:StarSetf('modconf')
+ \|endif
au BufNewFile,BufRead */etc/modprobe.* call s:StarSetf('modconf')
" Mutt setup file
@@ -2464,6 +2480,9 @@ au BufNewFile,BufRead *termcap*
\| let b:ptcap_type = "term" | call s:StarSetf('ptcap')
\|endif
+" Remind
+au BufNewFile,BufRead .reminders* call s:StarSetf('remind')
+
" Vim script
au BufNewFile,BufRead *vimrc* call s:StarSetf('vim')
diff --git a/runtime/ftplugin/pascal.vim b/runtime/ftplugin/pascal.vim
index 3b1db4abdc..5ff18b9601 100644
--- a/runtime/ftplugin/pascal.vim
+++ b/runtime/ftplugin/pascal.vim
@@ -1,14 +1,19 @@
" Vim filetype plugin file
" Language: pascal
" Maintainer: Dan Sharp <dwsharp at users dot sourceforge dot net>
-" Last Changed: 20 Jan 2009
+" Last Changed: 11 Apr 2011
" URL: http://dwsharp.users.sourceforge.net/vim/ftplugin
if exists("b:did_ftplugin") | finish | endif
let b:did_ftplugin = 1
if exists("loaded_matchit")
- let b:match_words='\<\%(begin\|case\|try\)\>:\<end\>'
+ let b:match_ignorecase = 1 " (pascal is case-insensitive)
+
+ let b:match_words = '\<\%(begin\|case\|record\|object\|try\)\>'
+ let b:match_words .= ':\<^\s*\%(except\|finally\)\>:\<end\>'
+ let b:match_words .= ',\<repeat\>:\<until\>'
+ let b:match_words .= ',\<if\>:\<else\>'
endif
" Undo the stuff we changed.
diff --git a/runtime/plugin/tohtml.vim b/runtime/plugin/tohtml.vim
index ece30105c5..8e3810708f 100644
--- a/runtime/plugin/tohtml.vim
+++ b/runtime/plugin/tohtml.vim
@@ -1,11 +1,20 @@
" Vim plugin for converting a syntax highlighted file to HTML.
" Maintainer: Ben Fritz <fritzophrenic@gmail.com>
-" Last Change: 2011 Jan 06
+" Last Change: 2011 Apr 09
"
" The core of the code is in $VIMRUNTIME/autoload/tohtml.vim and
" $VIMRUNTIME/syntax/2html.vim
"
" TODO:
+" * Options for generating the CSS in external style sheets. New :TOcss
+" command to convert the current color scheme into a (mostly) generic CSS
+" stylesheet which can be re-used. Alternate stylesheet support?
+" * Pull in code from http://www.vim.org/scripts/script.php?script_id=3113 :
+" - listchars support
+" - full-line background highlight
+" - other?
+" * Font auto-detection similar to
+" http://www.vim.org/scripts/script.php?script_id=2384
" * Explicitly trigger IE8+ Standards Mode?
" * Make it so deleted lines in a diff don't create side-scrolling
" * Restore open/closed folds and cursor position after processing each file
@@ -19,7 +28,12 @@
"
"
" Changelog:
-" 7.3_v8 (this version): Add html_expand_tabs option to allow leaving tab
+" 7.3_v9 (this version): Add html_pre_wrap option active with html_use_css and
+" without html_no_pre, default value same as 'wrap'
+" option, (Andy Spencer). Don't use 'fileencoding' for
+" converted document encoding if 'buftype' indicates a
+" special buffer which isn't written.
+" 7.3_v8 (85c5a72551e2): Add html_expand_tabs option to allow leaving tab
" characters in generated output (Andy Spencer). Escape
" text that looks like a modeline so Vim doesn't use
" anything in the converted HTML as a modeline.
@@ -61,7 +75,7 @@
if exists('g:loaded_2html_plugin')
finish
endif
-let g:loaded_2html_plugin = 'vim7.3_v8'
<