err_teapot([{expr}]) *err_teapot()*
Produce an error with number 418, needed for implementation of
- RFC 2325.
+ RFC 2324.
If {expr} is present and it is TRUE error 503 is given,
indicating that coffee is temporarily not available.
If {expr} is present it must be a String.
*printf-$*
In certain languages, error and informative messages are
more readable when the order of words is different from the
- corresponding message in English. To accomodate translations
+ corresponding message in English. To accommodate translations
having a different word order, positional arguments may be
used to indicate this. For instance: >
'/' the last search pattern
':' the last command-line
'.' the last inserted text
- *i_CTRL-R_-*
+ *i_CTRL-R_-*
'-' the last small (less than a line) delete
register. This is repeatable using |.| since
it remembers the register to put instead of
it doesn't!
CTRL-W n *CTRL-W_n*
-CTRL-W CTRL_N *CTRL-W_CTRL-N*
+CTRL-W CTRL-N *CTRL-W_CTRL-N*
:[N]new [++opt] [+cmd] *:new*
Create a new window and start editing an empty file in it.
Make new window N high (default is to use half the existing
let &l:define='\v(<fn>|<const>|<var>|^\s*\#\s*define)'
-" Safety check: don't execute zip from current directory
+" Safety check: don't execute zig from current directory
if !exists('g:zig_std_dir') && exists('*json_decode') &&
\ executable('zig') && get(g:, 'zig_exec', get(g:, 'plugin_exec', 0))
\ && (fnamemodify(exepath("zig"), ":p:h") != s:tmp_cwd
# --enable-gui=gtk or leave out --enable-gnome-check.
#
# GNOME makes sense only for GTK+ 2. Avoid use of --enable-gnome-check with
-# GTK+ 3 build, as the functionality of GNOME is already incooperated into
+# GTK+ 3 build, as the functionality of GNOME is already incorporated into
# GTK+ 3.
#
# If the selected GUI isn't found, the GUI is disabled automatically
EXTERN char e_member_str_type_mismatch_expected_str_but_got_str[]
INIT(= N_("E1406: Member \"%s\": type mismatch, expected %s but got %s"));
EXTERN char e_method_str_type_mismatch_expected_str_but_got_str[]
- INIT(= N_("E1407: Member \"%s\": type mismatch, expected %s but got %s"));
+ INIT(= N_("E1407: Method \"%s\": type mismatch, expected %s but got %s"));
EXTERN char e_aptypes_is_null_nr_str[]
INIT(= "E1408: Internal error: ap_types or ap_types[idx] is NULL: %d: %s");
EXTERN char e_interface_static_direct_access_str[]
}
- // End Visual mode before switching to another buffer, so the text can be
- // copied into the GUI selection buffer.
- // Careful: may trigger ModeChanged() autocommand
+ // End Visual mode before switching to another buffer, so the text can be
+ // copied into the GUI selection buffer.
+ // Careful: may trigger ModeChanged() autocommand
// Should we block autocommands here?
reset_VIsual();
*
* ATTENTION:
* ==========
- * Also we use an allocated search context here, this functions are NOT
- * thread-safe!!!!!
+ * Also we use an allocated search context here, these functions are NOT
+ * thread-safe!
*
* To minimize parameter passing (or because I'm to lazy), only the
* external visible functions get a search context as a parameter. This is
}
// Real windows can get focus ... GtkPlug, being a mere container can't,
- // only its widgets. Arguably, this could be common code and we not use
- // the window focus at all, but let's be safe.
+ // only its widgets. Arguably, this could be common code and we do not
+ // use the window focus at all, but let's be safe.
if (gtk_socket_id == 0)
{
g_signal_connect(G_OBJECT(gui.mainwin), "focus-out-event",
st.found_all = FALSE;
st.ins_buf = curbuf;
vim_free(st.e_cpt_copy);
- // Make a copy of 'complete', if case the buffer is wiped out.
+ // Make a copy of 'complete', in case the buffer is wiped out.
st.e_cpt_copy = vim_strsave((compl_cont_status & CONT_LOCAL)
? (char_u *)"." : curbuf->b_p_cpt);
st.e_cpt = st.e_cpt_copy == NULL ? (char_u *)"" : st.e_cpt_copy;
&& !skip_term_loop)
{
// If terminal_loop() returns OK we got a key that is handled
- // in Normal model. With FAIL we first need to position the
+ // in Normal mode. With FAIL we first need to position the
// cursor and the screen needs to be redrawn.
if (terminal_loop(TRUE) == OK)
normal_cmd(&oa, TRUE);
0x2021, // ‡ double dagger
0x2026, // … horizontal ellipsis
0x2030, // ‰ per mille sign
- 0x2031, // ‱ per then thousand sign
+ 0x2031, // ‱ per ten thousand sign
0x203c, // ‼ double exclamation mark
0x2047, // ⁇ double question mark
0x2048, // ⁈ question exclamation mark
do_mousescroll_horiz(long_u leftcol)
{
if (curwin->w_p_wrap)
- return FALSE; // no wrapping, no scrolling
+ return FALSE; // no horizontal scrolling when wrapping
if (curwin->w_leftcol == (colnr_T)leftcol)
return FALSE; // already there
WHEN THERE IS A MISTAKE
If you find there is a mistake in one of the translations, please report this
-to the maintainer of the translation. His/her E-mail address is in the
+to the maintainer of the translation. His/her e-mail address is in the
comments at the start of the file. You can also see this with the ":messages"
command in Vim when the translation is being used.
There is one special message:
msgid "Messages maintainer: The Vim Project"
- You should include your name and E-mail address instead, for example:
+ You should include your name and e-mail address instead, for example:
msgstr "Berichten übersetzt bei: John Doe <john@doe.org>"
(3) Clean up
static long sound_id = 0;
-// soundcb_T is typdef'ed in proto/sound.pro
+// soundcb_T is typedef'ed in proto/sound.pro
struct soundcb_S {
callback_T snd_callback;
#ifdef FEAT_EVAL
/*
* Change <SID>Func to K_SNR <script-nr> _Func. This name is used
- * for script-locla user functions.
+ * for script-local user functions.
* (room: 5 * 6 = 30 bytes; needed: 3 + <nr> + 1 <= 14)
* Also change <SID>name.Func to K_SNR <import-script-nr> _Func.
* Only if "name" is recognized as an import.
" Test for BufUnload autocommand that unloads all the other buffers
func Test_bufunload_all()
let g:test_is_flaky = 1
- call writefile(['Test file Xxx1'], 'Xxx1', 'D')"
- call writefile(['Test file Xxx2'], 'Xxx2', 'D')"
+ call writefile(['Test file Xxx1'], 'Xxx1', 'D')
+ call writefile(['Test file Xxx2'], 'Xxx2', 'D')
let content =<< trim [CODE]
func UnloadAllBufs()
let start = reltime()
let handle = ch_open('localhost:9876', s:chopt)
if ch_status(handle) != "fail"
- " Oops, port does exists.
+ " Oops, port exists.
call ch_close(handle)
else
let elapsed = reltime(start)
try
let handle = ch_open('localhost:9867', {'waittime': 500})
if ch_status(handle) != "fail"
- " Oops, port does exists.
+ " Oops, port exists.
call ch_close(handle)
else
" Failed connection should wait about 500 msec. Can be longer if the
endfunc
func Test_edit_MOUSE()
- " This is a simple test, since we not really using the mouse here
+ " This is a simple test, since we're not really using the mouse here
CheckFeature mouse
10new
call setline(1, range(1, 100))
close!
set charconvert&
- " 'charconvert' function doesn't create a output file
+ " 'charconvert' function doesn't create an output file
func Cconv1()
endfunc
set charconvert=Cconv1()
call term_sendkeys(buf, getstate)
call WaitForAssert({-> assert_match('state: mSc; mode: n', term_getline(buf, 6))}, 1000)
- " A operator is pending
+ " An operator is pending
call term_sendkeys(buf, ":call RunTimer()\<CR>y")
call TermWait(buf, 25)
call term_sendkeys(buf, "y")
hi clear
endfunc
-" Test for 'ctermul in a highlight group
+" Test for 'ctermul' in a highlight group
func Test_highlight_ctermul()
CheckNotGui
call assert_notmatch('ctermul=', HighlightArgs('Normal'))
endtry
call assert_equal('Vim(let):E716: "1500"', str)
- " lookup each items
+ " lookup each item
for i in range(1500)
call assert_equal(3000 - i, d[i])
endfor
func Test_mkview_terminal_windows()
CheckFeature terminal
- " create two window on the same terminal to check this is handled OK
+ " create two windows on the same terminal to check this is handled OK
terminal
let term_buf = bufnr()
exe 'sbuf ' .. term_buf
endfunc
func Test_normal07_internalfmt()
- " basic test for internal formmatter to textwidth of 12
+ " basic test for internal formatter to textwidth of 12
let list=range(1,11)
call map(list, 'v:val." "')
10new
exe "norm! G0\<c-v>4k4ly"
exe "norm! gvood"
call assert_equal(['', 'abfgh', 'abfgh', 'abfgh', 'fgh', 'fgh', 'fgh', 'fgh', 'fgh'], getline(1,'$'))
- " gv cannot be used in operator pending mode
+ " gv cannot be used in operator pending mode
call assert_beeps('normal! cgv')
" gv should beep without a previously selected visual area
new
let bufnr = bufnr('%')
put ="abcdef"
silent! s/\%')/\=R()
- call assert_fails(':%s/./\=R()/g', 'E565')
+ call assert_fails(':%s/./\=R()/g', 'E565:')
delfunc R
exe bufnr .. "bw!"
endfunc
enddef
endclass
END
- v9.CheckScriptFailure(lines, 'E1407: Member "IsEven": type mismatch, expected func(number): bool but got func(number): string')
+ v9.CheckScriptFailure(lines, 'E1407: Method "IsEven": type mismatch, expected func(number): bool but got func(number): string')
lines =<< trim END
vim9script
enddef
endclass
END
- v9.CheckScriptFailure(lines, 'E1407: Member "IsEven": type mismatch, expected func(number): bool but got func(bool): bool')
+ v9.CheckScriptFailure(lines, 'E1407: Method "IsEven": type mismatch, expected func(number): bool but got func(bool): bool')
lines =<< trim END
vim9script
enddef
endclass
END
- v9.CheckScriptFailure(lines, 'E1407: Member "IsEven": type mismatch, expected func(number): bool but got func(number, ...list<number>): bool')
+ v9.CheckScriptFailure(lines, 'E1407: Method "IsEven": type mismatch, expected func(number): bool but got func(number, ...list<number>): bool')
# access superclass interface members from subclass, mix variable order
lines =<< trim END
enddef
endclass
END
- v9.CheckScriptFailure(lines, 'E1407: Member "Foo": type mismatch, expected func(string, number): list<number> but got func(number, string): list<string>')
+ v9.CheckScriptFailure(lines, 'E1407: Method "Foo": type mismatch, expected func(string, number): list<number> but got func(number, string): list<string>')
# Use an abstract class to invoke an abstract method
# FIXME: This should fail
" should be given.
"
" This test reuses the function MESSAGES() from the previous test.
-" This functions checks the messages in g:msgfile.
+" This function checks the messages in g:msgfile.
"-------------------------------------------------------------------------------
func Test_nested_while_error()
" error messages should be given.
"
" This test reuses the function MESSAGES() from the previous test.
-" This functions checks the messages in g:msgfile.
+" This function checks the messages in g:msgfile.
"-------------------------------------------------------------------------------
func Test_nested_cont_break_error()
" should be given.
"
" This test reuses the function MESSAGES() from the previous test.
-" This functions checks the messages in g:msgfile.
+" This function check the messages in g:msgfile.
"-------------------------------------------------------------------------------
func Test_nested_endtry_error()
set virtualedit=
endfunc
-" Using "C" then then <CR> moves the last remaining character to the next
+" Using "C" then <CR> moves the last remaining character to the next
" line. (Mary Ellen Foster)
func Test_ve_del_to_eol()
new
}
/*
- * Like tv_get_numbe() but in Vim9 script do convert a number in a string to a
+ * Like tv_get_number() but in Vim9 script do convert a number in a string to a
* number without giving an error.
*/
varnumber_T
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1886,
/**/
1885,
/**/
ISN_SOURCE, // source autoload script, isn_arg.number is the script ID
ISN_INSTR, // instructions compiled from expression
- ISN_CONSTRUCT, // construct an object, using contstruct_T
+ ISN_CONSTRUCT, // construct an object, using construct_T
ISN_GET_OBJ_MEMBER, // object member, index is isn_arg.number
ISN_GET_ITF_MEMBER, // interface member, index is isn_arg.classmember
ISN_STORE_THIS, // store value in "this" object member, index is
{
// If a type check is needed that means assigning "any" or
// "unknown" to a more specific type, which fails here.
- // Execpt when it looks like a lambda, since they have an
+ // Except when it looks like a lambda, since they have an
// incomplete type.
type_mismatch_where(expected, actual_type, where);
res = FAIL;