diff options
author | Bram Moolenaar <Bram@vim.org> | 2011-02-25 14:42:19 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2011-02-25 14:42:19 +0100 |
commit | 0065402f9a7e1317a58884f4e3588cdc6a8d3b92 (patch) | |
tree | 253048de056029ae93335f1c3273c14ea968b50f /runtime | |
parent | c30846f525a7aace2999e83126b0847254ddaa8b (diff) | |
download | vim-git-0065402f9a7e1317a58884f4e3588cdc6a8d3b92.tar.gz |
Runtime file updates.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/cmdline.txt | 4 | ||||
-rw-r--r-- | runtime/doc/eval.txt | 6 | ||||
-rw-r--r-- | runtime/doc/options.txt | 14 | ||||
-rw-r--r-- | runtime/doc/term.txt | 3 | ||||
-rw-r--r-- | runtime/doc/todo.txt | 52 | ||||
-rw-r--r-- | runtime/doc/usr_41.txt | 14 | ||||
-rw-r--r-- | runtime/filetype.vim | 6 | ||||
-rw-r--r-- | runtime/syntax/sudoers.vim | 86 |
8 files changed, 140 insertions, 45 deletions
diff --git a/runtime/doc/cmdline.txt b/runtime/doc/cmdline.txt index 1368dbfcb..39893d78d 100644 --- a/runtime/doc/cmdline.txt +++ b/runtime/doc/cmdline.txt @@ -1,4 +1,4 @@ -*cmdline.txt* For Vim version 7.3. Last change: 2010 Nov 28 +*cmdline.txt* For Vim version 7.3. Last change: 2011 Feb 10 VIM REFERENCE MANUAL by Bram Moolenaar @@ -782,7 +782,7 @@ it, no matter how many backslashes. *:<cword>* *:<cWORD>* *:<cfile>* *<cfile>* *:<sfile>* *<sfile>* *:<afile>* *<afile>* *:<abuf>* *<abuf>* *:<amatch>* *<amatch>* - *E495* *E496* *E497* *E499* *E500* + *<slnum>* *E495* *E496* *E497* *E499* *E500* Note: these are typed literally, they are not special keys! <cword> is replaced with the word under the cursor (like |star|) <cWORD> is replaced with the WORD under the cursor (see |WORD|) diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 1a44a6800..c599e8a93 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1,4 +1,4 @@ -*eval.txt* For Vim version 7.3. Last change: 2011 Feb 07 +*eval.txt* For Vim version 7.3. Last change: 2011 Feb 11 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1286,7 +1286,9 @@ v:beval_text The text under or after the mouse pointer. Usually a word as *v:beval_winnr* *beval_winnr-variable* v:beval_winnr The number of the window, over which the mouse pointer is. Only - valid while evaluating the 'balloonexpr' option. + valid while evaluating the 'balloonexpr' option. The first + window has number zero (unlike most other places where a + window gets a number). *v:char* *char-variable* v:char Argument for evaluating 'formatexpr' and used for the typed diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 983cf5b34..939a81d00 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 Jan 30 +*options.txt* For Vim version 7.3. Last change: 2011 Feb 15 VIM REFERENCE MANUAL by Bram Moolenaar @@ -3078,8 +3078,10 @@ A jump table for the options with a short description can be found at |Q_op|. {not in Vi} {not available when compiled without the |+folding| feature} - Sets the minimum number of screen lines for a fold to be displayed - closed. Also for manually closed folds. + Sets the number of screen lines above which a fold can be displayed + closed. Also for manually closed folds. With the default value of + one a fold can only be closed if it takes up two or more screen lines. + Set to zero to be able to close folds of just one screen line. Note that this only has an effect of what is displayed. After using "zc" to close a fold, which is displayed open because it's smaller than 'foldminlines', a following "zc" may close a containing fold. @@ -6488,7 +6490,7 @@ A jump table for the options with a short description can be found at |Q_op|. where it was the last time the buffer was edited. NOTE: This option is set when 'compatible' is set. - *'statusline'* *'stl'* *E540* *E541* *E542* + *'statusline'* *'stl'* *E540* *E542* 'statusline' 'stl' string (default empty) global or local to window |global-local| {not in Vi} @@ -6501,7 +6503,7 @@ A jump table for the options with a short description can be found at |Q_op|. normal text. Each status line item is of the form: %-0{minwid}.{maxwid}{item} All fields except the {item} is optional. A single percent sign can - be given as "%%". Up to 80 items can be specified. + be given as "%%". Up to 80 items can be specified. *E541* When the option starts with "%!" then it is used as an expression, evaluated and the result is used as the option value. Example: > @@ -6554,7 +6556,7 @@ A jump table for the options with a short description can be found at |Q_op|. k S Value of "b:keymap_name" or 'keymap' when |:lmap| mappings are being used: "<keymap>" n N Buffer number. - b N Value of byte under cursor. + b N Value of character under cursor. B N As above, in hexadecimal. o N Byte number in file of byte under cursor, first byte is 1. Mnemonic: Offset from start of file (with one added) diff --git a/runtime/doc/term.txt b/runtime/doc/term.txt index 8dc977395..362a18944 100644 --- a/runtime/doc/term.txt +++ b/runtime/doc/term.txt @@ -1,4 +1,4 @@ -*term.txt* For Vim version 7.3. Last change: 2009 Nov 05 +*term.txt* For Vim version 7.3. Last change: 2011 Feb 16 VIM REFERENCE MANUAL by Bram Moolenaar @@ -665,6 +665,7 @@ When the X-server clipboard is available, the command server described in *xterm-copy-paste* NOTE: In some (older) xterms, it's not possible to move the cursor past column 95. This is an xterm problem, not Vim's. Get a newer xterm |color-xterm|. +Now the limit is 223 columns. Copy/paste in xterm with (current mode NOT included in 'mouse'): 1. Press left mouse button on first letter of text, move mouse pointer to last diff --git a/runtime/doc/todo.txt b/runtime/doc/todo.txt index b6d039673..df2176deb 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 Feb 09 +*todo.txt* For Vim version 7.3. Last change: 2011 Feb 25 VIM REFERENCE MANUAL by Bram Moolenaar @@ -30,18 +30,11 @@ be worked on, but only if you sponsor Vim development. See |sponsor|. *known-bugs* -------------------- Known bugs and current work ----------------------- -Still crash with 'statusline'. (Christian Brabandt, 2011 Feb 2) -Can't reproduce it. +New r and rhelp syntax files. (Jakson Alves de Aquino, 2011 Feb 20) -Problems with building after 7.3.050, -as-needed does not work for gcc 4.4.1? -(Charles Campbell, 2010 Nov 7) Or is the problem that we should use -ltinfo, -because nothing is used from ncurses? +In file message show "blowfish" instead of "crypted" when using blowfish. -Patch for 'changedtick' in getbufvar(). (Christian Brabandt, 2011 Jan 16) - -Patch to avoid exiting for VTALRM. (Dominique Pelle, 2011 Jan 16) - -Documentation patches. (Javier Rojas, 2011 Feb 2) +Patch to fix drag-n-drop in KDE. (Florian Degner, 2011 Feb 23) Syntax region with 'concealends' and a 'cchar' value, 'conceallevel' set to 2, only one of the two ends gets the cchar displayed. (Brett Stahlman, 2010 Aug @@ -49,6 +42,8 @@ only one of the two ends gets the cchar displayed. (Brett Stahlman, 2010 Aug Bug in repeating Visual "u". (Lawrence Kesteloot, 2010 Dec 20) +Crash with big .xpm file. (Yukihiro Nakadaira, 2011 Feb 18) + Windows keys not set properly on Windows 7? (cncyber, 2010 Aug 26) This line hangs Vim, because of syntax HL: @@ -57,6 +52,9 @@ call append(line, "INFO ....12....18....24....30....36....42....48....54....60. Building the MingW version without clipboard but with multi-byte doesn't work. (Bill Lam, 2010 Sep 18) +When using a Vim server, a # in the path causes an error message. +(Jeff Lanzarotta, 2011 Feb 17) + Bug: E685 error for func_unref(). (ZyX, 2010 Aug 5) Using ":break" or something else that stops executing commands inside a @@ -75,9 +73,6 @@ Needs tests. string() can't parse back "inf" and "nan". Fix documentation or fix code? (ZyX, 2010 Aug 23) -Patch to fix wront eol handling when writing a file. (Kevin Goodsell, 2011 Jan -12) - maparg() does not show the <script> flag. When temporarily changing a mapping, how to restore the script ID? @@ -96,8 +91,6 @@ Bug in try/catch: return with invalid compare throws error that isn't caught. Highlighting stops working after changing it many times. Script to reproduce it: Pablo Contreras, 2010 Oct 12 Windows XP and 7. Font is never freed? -Patch to fix quoting in MingW makefile. (Weasley, 2011 Jan 10) - After patch 7.3.097 still get E15. (Yukihiro Nakadaira, 2011 Jan 18) Also for another example (ZyX, 2011 Jan 24) @@ -113,8 +106,9 @@ Problem with "syn sync gouphere". (Gustavo Niemeyer, 2011 Jan 27) Loading autoload script even when usage is inside "if 0". (Christian Brabandt, 2010 Dec 18) -When 'cursorcolumn' is set locally to a window, ":new" opens a window with the -same highlighting but 'cursorcolumn' is empty. (Tyru, 2010 Nov 15) +When 'colorcolumn' is set locally to a window, ":new" opens a window with the +same highlighting but 'colorcolumn' is empty. (Tyru, 2010 Nov 15) +Patch by Christian Brabandt, 2011 Feb 13 (but move further down). In the sandbox it's not allowed to do many things, but it's possible to change or set variables. Add a way to prevent variables from being changed in the @@ -173,6 +167,8 @@ Method to reproduce it: Jan 16. Patch to improve optwin.vim. (ZyX, 2011 Jan 29) +Patch for Python 3 support. (lilydjwg, 2011 Feb 24) + New esperanto spell file can't be processed. (Dominique Pelle, 2011 Jan 30) - move compflags to separate growarray? - instead of a regexp use a hashtable. Expand '?', '*", '+'. What would be @@ -283,6 +279,8 @@ Patch to make more characters work in dialogs. (Yankwei Jia, 2010 Aug 4) Patch for VisVim, pass file name to VimOpenFile. (Jiri Sedlak, 2010 Nov 12) +":com" changes the multi-byte text of :echo. (Dimitar Dimitrov, 2011 Feb 11) + When 'lines' is 25 and 'scrolloff' is 12, "j" scrolls zero or two lines instead of one. (Constantin Pan, 2010 Sep 10) @@ -368,6 +366,10 @@ Only with "vim -u NONE". Problem with editing file in binary mode. (Ingo Krabbe, 2009 Oct 8) +With 'wildmode' set to "longest:full,full" and pressing Tab once the first +entry in wildmenu is highlighted, that shouldn't happen. (Yuki Watanabe, 2011 +Feb 12) + Display error when 'tabline' that includes a file name with double-width characters. (2010 Aug 14, bootleq) @@ -379,7 +381,8 @@ 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) -Better #if 0 syntax highlighting for C code. (Ben Schmidt, 2011 Jan 20) +Patch for better #if 0 syntax highlighting for C code. (Ben Schmidt, 2011 Jan +20) Change to C syntax folding to make it work much faster, but a bit less reliable. (Lech Lorens, 2009 Nov 9) Enable with an option? @@ -520,6 +523,9 @@ Ignore window options when not in the right window? Perhaps we need to use a hidden window for applying autocommands to a buffer that doesn't have a window. +When "b" is a symlink to directory "a", resolve("b/") doesn't result in "a/". +(ZyX, 2011 Feb 12) + When using "ab foo bar" and mapping <Tab> to <Esc>, pressing <Tab> after foo doesn't trigger the abbreviation like <Esc> would. (Ramana Kumar, 2009 Sep 6) @@ -1276,6 +1282,9 @@ check the result of has("patch13"). Cursor line at bottom of window instead of halfway after saving view and restoring. Only with 'nowrap'. (Robert Webb, 2008 Aug 25) +Netrw has trouble executing autocommands only for a directory. Add <isdir> +and <notisdir> to autocommand patterns? Also <isfile>? + Add command modifier that skips wildcard expansion, so that you don't need to put backslashes before special chars, only for white space. @@ -1390,6 +1399,11 @@ Patch to support horizontal scroll wheel in GTK. Untested. (Bjorn Winckler, 2010 Jun 30) +At next release: +- Rename src/Makefile and create a new one like toplevel Makefile that + creates auto/config.mk when it's not there? (Ben Schmidt, 2011 Feb 11) + + More patches: - Another patch for Javascript indenting. (Hari Kumar, 2010 Jul 11) Needs a few tests. diff --git a/runtime/doc/usr_41.txt b/runtime/doc/usr_41.txt index c990ba15b..8342f76a2 100644 --- a/runtime/doc/usr_41.txt +++ b/runtime/doc/usr_41.txt @@ -1,4 +1,4 @@ -*usr_41.txt* For Vim version 7.3. Last change: 2011 Feb 01 +*usr_41.txt* For Vim version 7.3. Last change: 2011 Feb 15 VIM USER MANUAL - by Bram Moolenaar @@ -313,7 +313,7 @@ The usual precedence is used. Example: > :echo 10 + 5 * 2 < 20 ~ -Grouping is done with braces. No surprises here. Example: > +Grouping is done with parentheses. No surprises here. Example: > :echo (10 + 5) * 2 < 30 ~ @@ -537,7 +537,7 @@ way. A few examples will be given in this section. You can find the whole list here: |functions|. A function is called with the ":call" command. The parameters are passed in -between braces, separated by commas. Example: > +between parentheses separated by commas. Example: > :call search("Date: ", "W") @@ -1017,7 +1017,7 @@ so on. The variable "a:0" contains the number of extra arguments. :function Show(start, ...) : echohl Title - : echo "Show is " . a:start + : echo "start is " . a:start : echohl None : let index = 1 : while index <= a:0 @@ -1285,7 +1285,7 @@ local variable will then refer to that Dictionary. split(a:line) -The split() function takes a string, chops it into white separated words +The split() function takes a string, chops it into whitespace separated words and returns a list with these words. Thus in the example it returns: > :echo split('three two five one') @@ -1402,7 +1402,7 @@ Let's start with an example: > The ":read" command will fail if the file does not exist. Instead of generating an error message, this code catches the error and gives the user a -nice message instead. +nice message. For the commands in between ":try" and ":endtry" errors are turned into exceptions. An exception is a string. In the case of an error the string @@ -1479,7 +1479,7 @@ escaped by a "\" (backslash) as in the following example: > :set tags=my\ nice\ file -The same example written as > +The same example written as: > :set tags=my nice file diff --git a/runtime/filetype.vim b/runtime/filetype.vim index ef1318088..3b01aaf42 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: 2010 Dec 17 +" Last Change: 2011 Feb 23 " Listen very carefully, I will say this only once if exists("did_load_filetypes") @@ -1100,8 +1100,8 @@ au BufNewFile,BufRead *.mel setf mel " Mercurial config (looks like generic config file) au BufNewFile,BufRead *.hgrc,*hgrc setf cfg -" Messages -au BufNewFile,BufRead /var/log/messages,/var/log/messages.*[0-9] setf messages +" 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 " Metafont au BufNewFile,BufRead *.mf setf mf diff --git a/runtime/syntax/sudoers.vim b/runtime/syntax/sudoers.vim index 1bcd03f95..fffc1cf8b 100644 --- a/runtime/syntax/sudoers.vim +++ b/runtime/syntax/sudoers.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: sudoers(5) configuration files " Maintainer: Nikolai Weibull <now@bitwi.se> -" Latest Revision: 2007-08-02 +" Latest Revision: 2011-02-24 if exists("b:current_syntax") finish @@ -149,10 +149,86 @@ syn match sudoersDefaultTypeGreaterThan contained '>' nextgroup=@sudoersUser s " TODO: could also deal with special characters here syn match sudoersBooleanParameter contained '!' nextgroup=sudoersBooleanParameter skipwhite skipnl -syn keyword sudoersBooleanParameter contained long_opt_prompt ignore_dot mail_always mail_badpass mail_no_user mail_no_perms tty_tickets lecture authenticate root_sudo log_host log_year shell_noargs set_home always_set_home path_info preserve_groups fqdn insults requiretty env_editor rootpw runaspw targetpw set_logname stay_setuid env_reset use_loginclass nextgroup=sudoersParameterListComma skipwhite skipnl -syn keyword sudoersIntegerParameter contained passwd_tries loglinelen timestamp_timeout passwd_timeout umask nextgroup=sudoersIntegerParameterEquals skipwhite skipnl -syn keyword sudoersStringParameter contained mailsub badpass_message timestampdir timestampowner passprompt runas_default syslog_goodpri syslog_badpri editor logfile syslog mailerpath mailerflags mailto exempt_group verifypw listpw nextgroup=sudoersStringParameterEquals skipwhite skipnl -syn keyword sudoersListParameter contained env_check env_delete env_keep nextgroup=sudoersListParameterEquals skipwhite skipnl +syn keyword sudoersBooleanParameter contained skipwhite skipnl + \ always_set_home + \ authenticate + \ closefrom_override + \ env_editor + \ env_reset + \ fqdn + \ ignore_dot + \ ignore_local_sudoers + \ insults + \ log_host + \ log_year + \ long_otp_prompt + \ mail_always + \ mail_badpass + \ mail_no_host + \ mail_no_perms + \ mail_no_user + \ noexec + \ path_info + \ passprompt_override + \ preserve_groups + \ requiretty + \ root_sudo + \ rootpw + \ runaspw + \ set_home + \ set_logname + \ setenv + \ shell_noargs + \ stay_setuid + \ targetpw + \ tty_tickets + \ visiblepw + +syn keyword sudoersIntegerParameter contained + \ nextgroup=sudoersIntegerParameterEquals + \ skipwhite skipnl + \ closefrom + \ passwd_tries + \ loglinelen + \ passwd_timeout + \ timestamp_timeout + \ umask + +syn keyword sudoersStringParameter contained + \ nextgroup=sudoersStringParameterEquals + \ skipwhite skipnl + \ badpass_message + \ editor + \ mailsub + \ noexec_file + \ passprompt + \ runas_default + \ syslog_badpri + \ syslog_goodpri + \ sudoers_locale + \ timestampdir + \ timestampowner + \ askpass + \ env_file + \ exempt_group + \ lecture + \ lecture_file + \ listpw + \ logfile + \ mailerflags + \ mailerpath + \ mailfrom + \ mailto + \ secure_path + \ syslog + \ verifypw + +syn keyword sudoersListParameter contained + \ nextgroup=sudoersListParameterEquals + \ skipwhite skipnl + \ env_check + \ env_delete + \ env_keep syn match sudoersParameterListComma contained ',' nextgroup=@sudoersParameter skipwhite skipnl |