Skip to main content

Questions tagged [vim9script]

A new, compiled, and experimental version of the scripting language embedded into Vim.

1 vote
1 answer
27 views

I have the following block of code in my .vimrc: vim9script ... autocmd FileType tex { set spell set conceallevel=2 nnoremap <leader>o <esc>:VimtexTocOpen<cr> g:...
Ana's user avatar
  • 171
1 vote
2 answers
123 views

Looking at vim's help (i.e. :he exists()) it should be possible to use script variables. e.g. vim9script def Bar() echom "Bar called" enddef var script_variable: string if exists('...
cc9cii's user avatar
  • 17
2 votes
2 answers
109 views

I created a file named test.vim containing code below. vim9script var a = 1 echo a export var b = 2 echo b I copy that file to these place: ~/Documents/test.vim ~/.vim/test.vim ~/.vim/pack/test.vim ...
jonesangga's user avatar
1 vote
1 answer
102 views

I am looking for the proper way to specify 'command' argument of the win_execute() function in vim9script. For example, the following script works fine as a legacy script: function CheckIndent(lnum) ...
Rick Howe's user avatar
  • 423
1 vote
0 answers
97 views

If I open the file popup.vim in vim and go to the bottom with G, then scrolling upwards with k is extremely laggy. The problem only occurs if I hold down k, pressing it repeatedly it works fine. ...
sro5h's user avatar
  • 163
0 votes
0 answers
56 views

I'm trying to write some autocommands that 'syncs' the command line with a popup window so I can see the currently entered command without moving my eyes to the corner of the screen. It looks I should ...
user54579's user avatar
1 vote
1 answer
89 views

I am having trouble in using registers with bang. I am trying to make the following snippet to work: vim9script def WslYank() var text = shellescape(getreg('"')) exe $'!echo "{text}&...
Barzi2001's user avatar
  • 1,133
2 votes
2 answers
418 views

If I save this simple script in a file: vim9script def Hi() echo "Hello" enddef And I try to load and run it: :so % :call Hi() I get: E117: Unknown function: Hi Can anyone explain? I ...
Matt Gregory's user avatar

15 30 50 per page