mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:71b6d3397649
Update runtime files
71b6d33976
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
parent
15e77a56b7
commit
f1e51528d2
@ -49,18 +49,17 @@ setlocal isk+=#
|
|||||||
" Use :help to lookup the keyword under the cursor with K.
|
" Use :help to lookup the keyword under the cursor with K.
|
||||||
setlocal keywordprg=:help
|
setlocal keywordprg=:help
|
||||||
|
|
||||||
" if "\n" .. getline(1, 10)->join("\n") =~# '\n\s*vim9\%[script]\>'
|
" Comments starts with # in Vim9 script. We have to guess which one to use.
|
||||||
if "\n" .. join(getline(1, 10), "\n") =~# '\n\s*vim9\%[script]\>'
|
if "\n" .. getline(1, 10)->join("\n") =~# '\n\s*vim9\%[script]\>'
|
||||||
" Set 'comments' to format dashed lists in comments
|
|
||||||
setlocal com=sO:#\ -,mO:#\ \ ,eO:##,:#
|
|
||||||
" Comments starts with # in Vim9 script
|
|
||||||
setlocal commentstring=#%s
|
setlocal commentstring=#%s
|
||||||
else
|
else
|
||||||
setlocal com=sO:\"\ -,mO:\"\ \ ,eO:\"\",:\"
|
|
||||||
" Comments starts with a double quote in legacy script
|
|
||||||
setlocal commentstring=\"%s
|
setlocal commentstring=\"%s
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Set 'comments' to format dashed lists in comments, both in Vim9 and legacy
|
||||||
|
" script.
|
||||||
|
setlocal com=sO:#\ -,mO:#\ \ ,eO:##,:#,sO:\"\ -,mO:\"\ \ ,eO:\"\",:\"
|
||||||
|
|
||||||
|
|
||||||
" Format comments to be up to 78 characters long
|
" Format comments to be up to 78 characters long
|
||||||
if &tw == 0
|
if &tw == 0
|
||||||
|
Loading…
Reference in New Issue
Block a user