forked from aniani/vim
Update runtime files
This commit is contained in:
@@ -1098,6 +1098,7 @@ a different type means the values are different: >
|
||||
echo 0 is []
|
||||
0
|
||||
"is#"/"isnot#" and "is?"/"isnot?" can be used to match and ignore case.
|
||||
In |Vim9| script this doesn't work, two strings are never identical.
|
||||
|
||||
In legacy script, when comparing a String with a Number, the String is
|
||||
converted to a Number, and the comparison is done on Numbers. This means
|
||||
|
||||
@@ -612,7 +612,8 @@ i) *v_i)* *i)* *i(*
|
||||
i( *vib* *v_ib* *v_i(* *ib*
|
||||
ib "inner block", select [count] blocks, from "[count] [("
|
||||
to the matching ')', excluding the '(' and ')' (see
|
||||
|[(|).
|
||||
|[(|). If the cursor is not inside a () block, then
|
||||
find the next "(".
|
||||
When used in Visual mode it is made characterwise.
|
||||
|
||||
a> *v_a>* *v_a<* *a>* *a<*
|
||||
|
||||
@@ -814,7 +814,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
if [[ -n "$VIM_TERMINAL" ]]; then
|
||||
PROMPT_COMMAND='_vim_sync_PWD'
|
||||
function _vim_sync_PWD() {
|
||||
printf "\033]7;file://%s\033\\" "$PWD"
|
||||
printf '\033]7;file://%s\033\\' "$PWD"
|
||||
}
|
||||
fi
|
||||
<
|
||||
@@ -823,14 +823,14 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
autoload -Uz add-zsh-hook
|
||||
add-zsh-hook -Uz chpwd _vim_sync_PWD
|
||||
function _vim_sync_PWD() {
|
||||
printf "\033]7;file://%s\033\\" "$PWD"
|
||||
printf '\033]7;file://%s\033\\' "$PWD"
|
||||
}
|
||||
fi
|
||||
<
|
||||
In a fish init file: >
|
||||
if test -n "$VIM_TERMINAL"
|
||||
function _vim_sync_PWD --on-variable=PWD
|
||||
printf "\033]7;file://%s\033\\" "$PWD"
|
||||
printf '\033]7;file://%s\033\\' "$PWD"
|
||||
end
|
||||
end
|
||||
<
|
||||
@@ -1793,7 +1793,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
|
||||
When 'cmdheight' is zero, there is no command-line unless it is being
|
||||
used. Some informative messages will not be displayed, any other
|
||||
messages will cause the |hit-enter| prompt.
|
||||
messages will cause the |hit-enter| prompt. Expect some other
|
||||
unexpected behavior too.
|
||||
|
||||
*'cmdwinheight'* *'cwh'*
|
||||
'cmdwinheight' 'cwh' number (default 7)
|
||||
|
||||
@@ -4300,6 +4300,7 @@ E1290 change.txt /*E1290*
|
||||
E1291 testing.txt /*E1291*
|
||||
E1292 cmdline.txt /*E1292*
|
||||
E1293 textprop.txt /*E1293*
|
||||
E1294 textprop.txt /*E1294*
|
||||
E13 message.txt /*E13*
|
||||
E131 eval.txt /*E131*
|
||||
E132 eval.txt /*E132*
|
||||
@@ -7933,6 +7934,7 @@ indentkeys-format indent.txt /*indentkeys-format*
|
||||
index index.txt /*index*
|
||||
index() builtin.txt /*index()*
|
||||
index.txt index.txt /*index.txt*
|
||||
indexof() builtin.txt /*indexof()*
|
||||
info-message starting.txt /*info-message*
|
||||
inform.vim syntax.txt /*inform.vim*
|
||||
informix ft_sql.txt /*informix*
|
||||
|
||||
@@ -143,12 +143,16 @@ prop_add({lnum}, {col}, {props})
|
||||
zero is used
|
||||
text text to be displayed before {col}, or after the
|
||||
line if {col} is zero
|
||||
*E1294*
|
||||
text_align when "text" is present and {col} is zero
|
||||
specifies where to display the text:
|
||||
after after the end of the line
|
||||
right right aligned in the window
|
||||
right right aligned in the window (unless
|
||||
the text wraps to the next screen
|
||||
line)
|
||||
below in the next screen line
|
||||
When omitted "after" is used.
|
||||
When omitted "after" is used. Only one
|
||||
"right" property can fit in earch line.
|
||||
text_wrap when "text" is present and {col} is zero,
|
||||
specifies what happens if the text doesn't
|
||||
fit:
|
||||
@@ -186,9 +190,10 @@ prop_add({lnum}, {col}, {props})
|
||||
buffer line, the cursor cannot be placed on it. A mouse click
|
||||
in the text will move the cursor to the first character after
|
||||
the text, or the last character of the line.
|
||||
Any Tab and other control character in the text will be
|
||||
changed to a space (Rationale: otherwise the size of the text
|
||||
is difficult to compute).
|
||||
A negative "id" will be chosen and is returned. Once a
|
||||
Any Tab in the text will be changed to a space (Rationale:
|
||||
otherwise the size of the text is difficult to compute).
|
||||
property with "text" has been added for a buffer then using a
|
||||
negative "id" for any other property will give an error:
|
||||
*E1293*
|
||||
|
||||
@@ -38,6 +38,11 @@ browser use: https://github.com/vim/vim/issues/1234
|
||||
*known-bugs*
|
||||
-------------------- Known bugs and current work -----------------------
|
||||
|
||||
Text props: Add "padding" argument - only for when using "text" and {col} is
|
||||
zero. Use tp_len field and n_attr_skip. #10906
|
||||
|
||||
Graduate FEAT_TEXTOBJ ?
|
||||
|
||||
Further Vim9 improvements, possibly after launch:
|
||||
- Use Vim9 for more runtime files.
|
||||
- Check performance with callgrind and kcachegrind.
|
||||
@@ -67,18 +72,6 @@ Further Vim9 improvements, possibly after launch:
|
||||
has(featureName), len(someString)
|
||||
- Implement as part of an expression: ++expr, --expr, expr++, expr--.
|
||||
|
||||
Update list of features to vote on:
|
||||
- Remove Athena item (won't happen)
|
||||
- Remove "add open mode" (won't happen)
|
||||
- Remove "editing of a hidden buffer" (done)
|
||||
- Change "add IDE features" to "improve terminal debugger"
|
||||
- Change "diff/merge capability for CVS" to "CVS and git"
|
||||
- Remove "pre-compile them" from "improve the performance of Vim scripts"
|
||||
- Add: multiple cursors, edit text in more than one place at a time
|
||||
- Add: fast syntax highlighting with parser instead of regex patterns
|
||||
- Add: virtual text, text properties can insert text in the line
|
||||
- Add: start first line halfway, scroll per wrapped screen line
|
||||
|
||||
Popup windows:
|
||||
- Preview popup not properly updated when it overlaps with completion menu.
|
||||
(Yegappan Lakshmanan, 2021 May 22)
|
||||
@@ -192,6 +185,7 @@ Patches considered for including:
|
||||
- use int instead of char_ for index #10818 needs a test
|
||||
- Add "-n" option to xxd. #10599 needs a test
|
||||
- allow for nesting of timeout, sketch in #10595
|
||||
- Add setcmdline() #10869
|
||||
|
||||
Add 'splitscroll' #10682 Useful? Any trouble? Null Chilly says it's OK.
|
||||
suggestion: names instead of numbers for the option value
|
||||
@@ -3958,15 +3952,16 @@ Vim script language:
|
||||
can be the plugin name.
|
||||
Perhaps also have a way to remove everything that the package added?
|
||||
including autocommands.
|
||||
7 Pre-parse or compile Vim scripts into a bytecode.
|
||||
7 Pre-parse or compile Vim scripts into a bytecode, like :def functions.
|
||||
Possibilities:
|
||||
1. Put the bytecode with the original script, with an ":if
|
||||
has('bytecode')" around it, so that it's only used with a Vim that
|
||||
supports it. Update the code with a command, can be used in an
|
||||
autocommand.
|
||||
has('bytecode-1234')" around it, so that it's only used with a Vim that
|
||||
supports the version. Update the code with a command, can be used in
|
||||
an autocommand.
|
||||
2. Use a ".vic" file (like Python use .pyc). Create it when writing a
|
||||
.vim file. Problem: distribution.
|
||||
3. Use a cache directory for each user. How to recognize which cached
|
||||
file belongs to a sourced script?
|
||||
.vim file. Problem: distribution, non-writable directory, etc.
|
||||
3. Use a cache directory for each user. Disadvantage: cache lookup may
|
||||
cost more time than bytecode wins.
|
||||
7 Add argument to winwidth() to subtract the space taken by 'foldcolumn',
|
||||
signs and/or 'number'.
|
||||
6 Add ++ and -- operators? They only work on variables (lvals), how to
|
||||
|
||||
@@ -913,6 +913,12 @@ Comparators ~
|
||||
The 'ignorecase' option is not used for comparators that use strings.
|
||||
Thus "=~" works like "=~#".
|
||||
|
||||
"is" and "isnot" (|expr-is| and |expr-isnot|) when used on strings now return
|
||||
false. In legacy script they just compare the strings, in |Vim9| script they
|
||||
check identity, and strings are copied when used, thus two strings are never
|
||||
the same (this might change some day if strings are not copied but reference
|
||||
counted).
|
||||
|
||||
|
||||
Abort after error ~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user