vim9script enum Color White, Red, Black endenum var co: Color = Color.Black echo "co: " .. string(co) # vim:ts=4 sw=0
$ vim --clean e.vim
ggVG=Result:
vim9script enum Color White, Red, <--- Wrong Black <--- Wrong endenum var co: Color = Color.Black echo "co: " .. string(co) # vim:et ts=4 sw=0
vim9script enum Color White, Red, Black endenum var co: Color = Color.Black echo "co: " .. string(co) # vim:et ts=4 sw=0
9.1.0955
Ubuntu 22.04.5 LTS
none
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Not only for Vim9 Script. Reindent also doesn't work for python as I tested.
def test_indent(a, b): if a > b: print(f"{a} is greater than {b}") result = a - b else: print(f"{b} is greater than or equal to {a}") result = b - a for i in range(result): if i % 2 == 0: print(f"Even number: {i}") else: print(f"Odd number: {i}") return result x = 10 y = 5 print(f"Result of test_indent: {test_indent(x, y)}")
def test_indent(a, b): if a > b: print(f"{a} is greater than {b}") result = a - b else: print(f"{b} is greater than or equal to {a}") result = b - a for i in range(result): if i % 2 == 0: print(f"Even number: {i}") else: print(f"Odd number: {i}") return result x = 10 y = 5 print(f"Result of test_indent: {test_indent(x, y)}")
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
But that is a different issue, since indentation is filetype specific
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
But that is a different issue, since indentation is filetype specific
The python issue wasn't an issue. It's my fault. I compiled and ran vim in macOS without noticing that defaults.vim is stored at different directory. I'm sorry for the misleading.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #16289 as completed via 6d2efd4.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()