Comments (3)
This is vim9 script. That is currenntly only valid when evaluating from within vim9 script context. I think it was discussed before, that one cannot easily call exported vim9 functions.
from vim.
I see. Thank you for clarifying. Problem seems to be that when older plugins check indentexpr for a vim filetype, they will run into the same undefined var issue.
Example: https://github.com/Thyrum/vim-stabs
If you load this plugin, edit a *.vim file, and toggle on autoindent, you get the same error
So the function is being called outside of the vim9 script context all the time
from vim.
To prevent described error, I guess instead of
Lines 17 to 19 in 13a0144
setlocal indentexpr=dist#vimindent#Expr()
should be used.
from vim.
Related Issues (20)
- Setting 'showbreak' affects the reported virtual column number in the status line. HOT 3
- Normal-mode keys _ and g_ do not perform the "correct" behavior HOT 1
- python ftplugin: E518: Unknown option: ]\\?def\\|class\\) HOT 1
- Incorrect indentation of CSS declaration blocks in HTML files HOT 1
- Some text in filetype.vim is incorrectly highlighted HOT 1
- Please consider switching to the XDG runtime when no vimrc exists but ~/.config/vim does HOT 4
- Report an error when using / writing to system clipboard without `+clipboard` compile flag HOT 5
- Multiple delete line statements don't work on the last line HOT 9
- Add `]r` / `[r` to go to the next / previous `SpellRare`
- ftplugin/python.vim: E518: Unknown option: ]\\?def\\|class\\) HOT 2
- [vim9script] imported autoloaded functions might not exist
- `find_module` is deleted in python3.13 HOT 1
- A minor correction to the docs HOT 1
- Why and How to Solve Vim and Gvim Not Listening Content of Specific Folders on Windows 11 HOT 1
- Make command-line execute vim9script without typing vim9cmd HOT 27
- Unify/simplify the config file search across OS versions. ALT: Allow all versions to honor XDG_CONFIG_HOME if set
- Remove/modify filetype indent for asm files HOT 1
- Add commentstring for dart filetypes HOT 2
- select breaks syntax highlighting in bash HOT 6
- [vim9]Memory Leak when assigning a lambda function decorated in a HigherOrder function to a variable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim.