diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-02-28 09:57:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-28 09:57:46 +0100 |
commit | 2872e57af26685cd485c7419ffaccee779927a1b (patch) | |
tree | 3288f0c6b69552e19d8de4014194a1b60c97bcfc /runtime | |
parent | 5ed753044d650e7c2c0b65f0b04831097078d48a (diff) | |
parent | adc6e636fea64a432656d747f3979d682c94d6e2 (diff) | |
download | rneovim-2872e57af26685cd485c7419ffaccee779927a1b.tar.gz rneovim-2872e57af26685cd485c7419ffaccee779927a1b.tar.bz2 rneovim-2872e57af26685cd485c7419ffaccee779927a1b.zip |
Merge #6191 from jamessan/vim-42ebd06
vim-patch:42ebd06,7.4.2098,6f1d9a0,7.4.2095
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 20 | ||||
-rw-r--r-- | runtime/doc/index.txt | 4 | ||||
-rw-r--r-- | runtime/doc/message.txt | 4 | ||||
-rw-r--r-- | runtime/doc/quickfix.txt | 17 | ||||
-rw-r--r-- | runtime/filetype.vim | 2 | ||||
-rw-r--r-- | runtime/menu.vim | 4 |
6 files changed, 38 insertions, 13 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 1ce2511f3c..7ce47179b8 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1197,7 +1197,7 @@ lambda expression *expr-lambda* *lambda* {args -> expr1} lambda expression A lambda expression creates a new unnamed function which returns the result of -evaluating |expr1|. Lambda expressions are differ from |user-functions| in +evaluating |expr1|. Lambda expressions differ from |user-functions| in the following ways: 1. The body of the lambda expression is an |expr1| and not a sequence of |Ex| @@ -1946,6 +1946,8 @@ assert_equal({exp}, {act} [, {msg}]) none assert {exp} is equal to {act} assert_exception( {error} [, {msg}]) none assert {error} is in v:exception assert_fails( {cmd} [, {error}]) none assert {cmd} fails assert_false({actual} [, {msg}]) none assert {actual} is false +assert_inrange({lower}, {upper}, {actual} [, {msg}]) + none assert {actual} is inside the range assert_match( {pat}, {text} [, {msg}]) none assert {pat} matches {text} assert_notequal( {exp}, {act} [, {msg}]) none assert {exp} is not equal {act} assert_notmatch( {pat}, {text} [, {msg}]) none assert {pat} not matches {text} @@ -2460,8 +2462,16 @@ assert_false({actual} [, {msg}]) *assert_false()* |v:errors|, like with |assert_equal()|. A value is false when it is zero or |v:false|. When "{actual}" is not a number or |v:false| the assert fails. - When {msg} is omitted an error in the form "Expected False but - got {actual}" is produced. + When {msg} is omitted an error in the form + "Expected False but got {actual}" is produced. + +assert_inrange({lower}, {upper}, {actual} [, {msg}]) *assert_inrange()* + This asserts number values. When {actual} is lower than + {lower} or higher than {upper} an error message is added to + |v:errors|. + When {msg} is omitted an error in the form + "Expected range {lower} - {upper}, but got {actual}" is + produced. *assert_match()* assert_match({pattern}, {actual} [, {msg}]) @@ -2476,8 +2486,8 @@ assert_match({pattern}, {actual} [, {msg}]) Use "^" and "$" to match with the start and end of the text. Use both to match the whole text. - When {msg} is omitted an error in the form "Pattern {pattern} - does not match {actual}" is produced. + When {msg} is omitted an error in the form + "Pattern {pattern} does not match {actual}" is produced. Example: > assert_match('^f.*o$', 'foobar') < Will result in a string to be added to |v:errors|: diff --git a/runtime/doc/index.txt b/runtime/doc/index.txt index 7388652f16..cedf0266d6 100644 --- a/runtime/doc/index.txt +++ b/runtime/doc/index.txt @@ -1,4 +1,4 @@ -*index.txt* For Vim version 7.4. Last change: 2016 Jun 12 +*index.txt* For Vim version 7.4. Last change: 2016 Jul 16 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1152,6 +1152,7 @@ tag command action ~ |:chdir| :chd[ir] change directory |:checkpath| :che[ckpath] list included files |:checktime| :checkt[ime] check timestamp of loaded buffers +|:chistory| :chi[story] list the error lists |:clast| :cla[st] go to the specified error, default last one |:clearjumps| :cle[arjumps] clear the jump list |:clist| :cl[ist] list all errors @@ -1313,6 +1314,7 @@ tag command action ~ |:lgrep| :lgr[ep] run 'grepprg' and jump to first match |:lgrepadd| :lgrepa[dd] like :grep, but append to current list |:lhelpgrep| :lh[elpgrep] like ":helpgrep" but uses location list +|:lhistory| :lhi[story] list the location lists |:ll| :ll go to specific location |:llast| :lla[st] go to the specified location, default last one |:llist| :lli[st] list all locations diff --git a/runtime/doc/message.txt b/runtime/doc/message.txt index fd66a5dafb..b3a4bf9d72 100644 --- a/runtime/doc/message.txt +++ b/runtime/doc/message.txt @@ -1,4 +1,4 @@ -*message.txt* For Vim version 7.4. Last change: 2016 Jul 14 +*message.txt* For Vim version 7.4. Last change: 2016 Jul 16 VIM REFERENCE MANUAL by Bram Moolenaar @@ -668,7 +668,7 @@ Vim and restart it. *E931* > Buffer cannot be registered -Out of memory or a duplicate buffer number. May habben after W14. Looking up +Out of memory or a duplicate buffer number. May happen after W14. Looking up a buffer will not always work, better restart Vim. *E296* *E297* > diff --git a/runtime/doc/quickfix.txt b/runtime/doc/quickfix.txt index 0b7907e364..ec0b2cfef6 100644 --- a/runtime/doc/quickfix.txt +++ b/runtime/doc/quickfix.txt @@ -1,4 +1,4 @@ -*quickfix.txt* For Vim version 7.4. Last change: 2016 Jul 07 +*quickfix.txt* For Vim version 7.4. Last change: 2016 Jul 17 VIM REFERENCE MANUAL by Bram Moolenaar @@ -525,7 +525,7 @@ lists. They set one of the existing error lists as the current one. list, an error message is given. *:lolder* *:lol* -:lol[der] [count] Same as ":colder", except use the location list for +:lol[der] [count] Same as `:colder`, except use the location list for the current window instead of the quickfix list. *:cnewer* *:cnew* *E381* @@ -534,9 +534,20 @@ lists. They set one of the existing error lists as the current one. list, an error message is given. *:lnewer* *:lnew* -:lnew[er] [count] Same as ":cnewer", except use the location list for +:lnew[er] [count] Same as `:cnewer`, except use the location list for the current window instead of the quickfix list. + *:chistory* *:chi* +:chi[story] Show the list of error lists. The current list is + marked with ">". The output looks like: + error list 1 of 3; 43 errors ~ + > error list 2 of 3; 0 errors ~ + error list 3 of 3; 15 errors ~ + + *:lhistory* *:lhi* +:lhi[story] Show the list of location lists, otherwise like + `:chistory`. + When adding a new error list, it becomes the current list. When ":colder" has been used and ":make" or ":grep" is used to add a new error diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 24587c56dc..f9d7f86a97 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -2642,6 +2642,8 @@ au BufNewFile,BufRead [rR]akefile* call s:StarSetf('ruby') " Mail (also matches muttrc.vim, so this is below the other checks) au BufNewFile,BufRead mutt[[:alnum:]._-]\\\{6\} setf mail +au BufNewFile,BufRead reportbug-* call s:StarSetf('mail') + " Modconf au BufNewFile,BufRead */etc/modutils/* \ if executable(expand("<afile>")) != 1 diff --git a/runtime/menu.vim b/runtime/menu.vim index 5cbc0faabd..4971baa936 100644 --- a/runtime/menu.vim +++ b/runtime/menu.vim @@ -188,7 +188,7 @@ an 20.435 &Edit.Startup\ &Settings :call <SID>EditVimrc()<CR> fun! s:EditVimrc() if $MYVIMRC != '' let fname = $MYVIMRC - elseif has("win32") || has("dos32") || has("dos16") + elseif has("win32") if $HOME != '' let fname = $HOME . "/_vimrc" else @@ -552,7 +552,7 @@ endfun func! s:XxdFind() if !exists("g:xxdprogram") " On the PC xxd may not be in the path but in the install directory - if (has("win32") || has("dos32")) && !executable("xxd") + if has("win32") && !executable("xxd") let g:xxdprogram = $VIMRUNTIME . (&shellslash ? '/' : '\') . "xxd.exe" else let g:xxdprogram = "xxd" |