mirror of
https://github.com/vim/vim.git
synced 2025-08-26 20:03:41 -04:00
And anticipate occasional multibyte line wrapping owing to:
> A poorly rendered line may otherwise become wrapped when enough of
> spurious U+FFFD (0xEF 0xBF 0xBD) characters claim more columns than
> are available (75) and then invalidate line correspondence under test.
Observe that for "vim_ex_command.vim" another workaround is
chosen: the long line containing an only multibyte character
near its EOL is conversely made longer by padding and moving
the character to a separate _tail_ part of the wrapped line.
That is, the _head_ part of the line is all ASCII characters
and the wrapped _tail_ part is a mix of various characters
whose total byte count is within bounds.
Other unmodified tracked files of interest:
java_lambda_expressions.java,
java_lambda_expressions_signature.java,
java_numbers.java,
markdown_conceal.markdown,
vim9_generic_function_example_set.vim
Also, remove stray U+FFFC (0xEF 0xBF 0xBC) characters.
Related to #16559 and #17704.
Reference:
0fde6aebdd/runtime/syntax/testdir/README.txt (L120-L123)
closes: #17868
Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
132 lines
2.7 KiB
VimL
132 lines
2.7 KiB
VimL
" Vim :set command
|
|
|
|
|
|
set
|
|
set!
|
|
set all
|
|
set! all
|
|
set termcap
|
|
set! termcap
|
|
|
|
set aleph?
|
|
set aleph
|
|
|
|
set noallowrevins
|
|
|
|
set allowrevins!
|
|
set invallowrevins
|
|
|
|
set aleph&
|
|
set aleph&vi
|
|
set aleph&vim
|
|
|
|
set all&
|
|
|
|
set aleph=128
|
|
set aleph:128
|
|
|
|
set aleph =128
|
|
set aleph :128
|
|
|
|
set aleph+=96
|
|
set aleph^=2
|
|
set aleph-=96
|
|
|
|
set backspace+=nostop
|
|
set backspace^=nostop
|
|
set backspace-=nostop
|
|
|
|
set ai nosi sw=3 tw=3
|
|
|
|
set <t_#4>=^[Ot
|
|
set <M-b>=^[b
|
|
|
|
setlocal autoread
|
|
setglobal noautoread
|
|
set autoread<
|
|
|
|
set " comment
|
|
set | echo "Foo"
|
|
set! " comment
|
|
set! | echo "Foo"
|
|
|
|
|
|
" :help option-backslash
|
|
|
|
" When setting options using |:let| and |literal-string|, you need to use one
|
|
" fewer layer of backslash. A few examples:
|
|
set makeprg=make\ file " results in "make file"
|
|
let &makeprg='make file' " (same as above)
|
|
set makeprg=make\\\ file " results in "make\ file"
|
|
set tags=tags\ /usr/tags " results in "tags" and "/usr/tags"
|
|
set tags=tags\\\ file " results in "tags file"
|
|
let &tags='tags\ file' " (same as above)
|
|
|
|
set makeprg=make,file " results in "make,file"
|
|
set makeprg=make\\,file " results in "make\,file"
|
|
set tags=tags,file " results in "tags" and "file"
|
|
set tags=tags\\,file " results in "tags,file"
|
|
let &tags='tags\,file' " (same as above)
|
|
|
|
" This example sets the 'titlestring' option to "hi|there":
|
|
set titlestring=hi\|there
|
|
" This sets the 'titlestring' option to "hi" and 'iconstring' to "there":
|
|
set titlestring=hi|set iconstring=there
|
|
|
|
set dir=\\machine\path " results in "\\machine\path"
|
|
set dir=\\\\machine\\path " results in "\\machine\path"
|
|
set dir=\\path\\file " results in "\\path\file" (wrong!)
|
|
|
|
|
|
" :help :set_env
|
|
|
|
set term=$TERM.new
|
|
set path=/usr/$INCLUDE,$HOME/include,.
|
|
|
|
|
|
" Multiline :set and option values
|
|
|
|
set path=abc,def,ghi
|
|
"\ def is the 'define' option
|
|
\ def=abc,def,ghi
|
|
|
|
set path=abc,
|
|
"\ def is a 'path' directory value
|
|
\def,ghi
|
|
|
|
set path=
|
|
"\ def is a 'path' directory value
|
|
\abc,def
|
|
|
|
|
|
" :CompilerSet
|
|
|
|
CompilerSet makeprg=ant
|
|
CompilerSet errorformat=\ %#[%.%#]\ %#%f:%l:%v:%*\\d:%*\\d:\ %t%[%^:]%#:%m,
|
|
\%A\ %#[%.%#]\ %f:%l:\ %m,%-Z\ %#[%.%#]\ %p^,%C\ %#[%.%#]\ %#%m
|
|
|
|
|
|
" Unreported issue (double backslash)
|
|
|
|
setlocal com=s1:/*,mb:*,ex:*/,b:--,be:\\
|
|
echo "Foo"
|
|
setlocal include=^\\s*\\%(so\\%[urce]\\\|ru\\%[ntime]\\)[!\ ]\ *\\zs[^\\|]*
|
|
echo "Foo"
|
|
set quoteescape=\\
|
|
echo "Foo"
|
|
set quoteescape=\
|
|
echo "Foo"
|
|
|
|
|
|
" Issue #16913 (vim syntax: set langmap may have wrong highlight)
|
|
|
|
set langmap+=ФЫВАПРОЛДЖЭЁ;ASDFGHJKL\\:\\"\\|
|
|
set langmap+=ЯЧСМИТЬБЮ;ZXCVBNM<>
|
|
|
|
set langmap+=ФЫВАПРОЛДЖЭЁ;ASDFGHJKL\\:\\"\\|
|
|
\ langmap+=ЯЧСМИТЬБЮ;ZXCVBNM<>
|
|
|
|
set langmap+=ФЫВАПР;ASDFGH langmap+=ОЛДЖЭЁ;JKL\\:\\"\\|
|
|
\ langmap+=ЯЧСМИ;ZXCVB langmap+=ТЬБЮ;NM<>
|
|
|