-
This plugin exclusively written for Neovim, which can't be used in the original Vim. Many people still use it though. Would be great if there could also get one written in vim9script for Vim!
jclsn updated
4 months ago
-
_Instructions: Replace the template text and remove irrelevant text (including this line)_
When I am creating snippets for vim9, it is hard to tell if the current file is legacy vim or vim9script
…
-
Vim now ships with a new and improved version of Vimscript. A script file where the first line is `vim9script` will be interpreted with that new scripting language.
But because of the way [the conf…
cideM updated
11 months ago
-
### Steps to reproduce
```
vim9script
def F1()
export const val1 = 'foo1'
enddef
def F2(): dict
return {k: val1}
enddef
def F3()
F1()
F2()
enddef
F3()
```
produc…
-
Attempting to open splice with less than four input files results in the following traceback:
``` python
"README.markdown" 18L, 672C
Error detected while processing function splice#SpliceInit:
line …
-
Consider the following vim9script code:
```vim
vim9script
var Foo = true ? (x: number): number => x : (x: number): number => x
echo Foo(10)
```
(this returns 10 in Vim 9)
This is currently co…
-
**Describe the bug**
Does not recognize vim9 functions as functions and warns that return isn't inside a `function` block.
NOTE: this is inside a file with `vim9script` as the first line.
…
-
### Steps to reproduce
This output
```
l: list
l: list
l: list
o: object
o: object
```
is generated by the following script
```
vim9script
class C
endclass
var l: list
echo 'l:' typ…
-
### Describe the bug
Vimspec style tests fail in vim9 script.
### How to reproduce the problem from Vim startup
Create `test.vimspec` as follows:
```vim
vim9script
Describe d
Context …
-
My omnicompletion does not work anymore.
Here is my config
```vim
let lsp_options = #{
\ autoHighlightDiags: v:true,
\ noNewlineInCompletion: v:true,
\ completionTextEdit: v:true,
…