Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use # instead of " in Vim9 script #167

Open
tyru opened this issue Aug 19, 2021 · 2 comments
Open

Use # instead of " in Vim9 script #167

tyru opened this issue Aug 19, 2021 · 2 comments

Comments

@tyru
Copy link
Owner

tyru commented Aug 19, 2021

cc: @thinca

Ref. https://vim-jp.slack.com/archives/CLKR04BEF/p1629386264089200

@tyru
Copy link
Owner Author

tyru commented Aug 21, 2021

Where Vim9 script is enabled

By @thinca

  • Look up :vim9s[cript] at the beginning of file
  • Between :def ... :enddef
  • command Foo { ... }
  • autocmd BufEnter * { ... }
command Foo {
  # Vim9 script
}

autocmd BufEnter * {
  # Vim9 script
}

obcat added a commit to obcat/caw.vim that referenced this issue Sep 2, 2021
obcat added a commit to obcat/caw.vim that referenced this issue Sep 2, 2021
@obcat
Copy link
Contributor

obcat commented Sep 2, 2021

I've created a pull request #170 to add an initial support for Vim9 script.

obcat added a commit to obcat/caw.vim that referenced this issue Sep 2, 2021
If the cursor line is after a `:vim9script` line, use `#` instead of `"`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants