#vim9 — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #vim9, aggregated by home.social.
-
The new table.vim plugin, usable on both Vim and Neovim, lets you create nice-looking tables in markdown or in code comments: https://github.com/numEricL/table.vim
-
When you need a break from programming work, it's nice to have a way to unwind in Vim, like this game of pacman: https://github.com/nda-cunh/SupraPacman
-
Vim binaries you get from package managers are often compiled with python support, so you might be able to replicate this neat vim9script plotting example: https://www.reddit.com/r/vim/comments/1mtwffg/plot_with_vim/
-
@nemith Thanks for the tip. I have worked with #Neovim for a long time and am therefore quite familiar with it. However, despite having fewer plugins, it has always been considerably slower than #Vim9. Additionally, the LSP architecture is painfully slow and dependent on other language servers running in the background and listening on UNIX sockets. This is acceptable with gopls. Unfortunately, 90% of my work still involves #PHP and all the PHP language servers are poor. #Intelephense, which I purchased, is even proprietary and was often unable to validate my licence.
I was so frustrated that I gave up on Neovim because it offered me no added value compared to Vim 9. Moreover, 89% of what LSPs do can also be provided by #ctags, without the need for a buggy and slow Node.js Language Server. -
I'm really impressed with Vim-go. It's so handy! The auto import and auto formatting when saving alone work really reliably.
-
I'm really impressed with Vim-go. It's so handy! The auto import and auto formatting when saving alone work really reliably.
-
I'm really impressed with Vim-go. It's so handy! The auto import and auto formatting when saving alone work really reliably.
-
I'm really impressed with Vim-go. It's so handy! The auto import and auto formatting when saving alone work really reliably.
-
With a large monitor and lots of windows, it can be hard to keep them organized. This Vim9 plugin gives you a set of mappings to swap them around: https://github.com/kennypete/vim9-winswap
-
Is the Vim (9.1) tag search slow for you too? This only happens with huge projects that have many PHP vendor dependencies, which can occur quickly with PHP. How do you handle it? Does Vim understand multiple tag files? Can it be multi-threaded somehow?
-
Is the Vim (9.1) tag search slow for you too? This only happens with huge projects that have many PHP vendor dependencies, which can occur quickly with PHP. How do you handle it? Does Vim understand multiple tag files? Can it be multi-threaded somehow?
-
Is the Vim (9.1) tag search slow for you too? This only happens with huge projects that have many PHP vendor dependencies, which can occur quickly with PHP. How do you handle it? Does Vim understand multiple tag files? Can it be multi-threaded somehow?
-
Is the Vim (9.1) tag search slow for you too? This only happens with huge projects that have many PHP vendor dependencies, which can occur quickly with PHP. How do you handle it? Does Vim understand multiple tag files? Can it be multi-threaded somehow?
-
Is the Vim (9.1) tag search slow for you too? This only happens with huge projects that have many PHP vendor dependencies, which can occur quickly with PHP. How do you handle it? Does Vim understand multiple tag files? Can it be multi-threaded somehow?
-
Some convenient completion-related features have been making their way into Vim via PRs. Check out a summary in this reddit post: https://www.reddit.com/r/vim/comments/1m9mr2v/whats_new_in_vim_insert_mode_autocomplete_and/
-
Vim9script is a statically-typed language, inspired by typescript, but much simpler and more limited.
A recent PR lifts some of those limitations by adding generic functions to the language: https://vimhelp.org/vim9.txt.html#generic-functions
-
The new 'diffanchors' option lets you "anchor" groups of lines between files. For example, if you've changed a function and moved it elsewhere in the file, you can use this to see the differences: https://vimhelp.org/diff.txt.html#diff-anchors
-
Vim has recently merged a PR that compiles in wayland libraries (if available) to enable native access to the clipboard: https://github.com/ZTHGongJu/vim/commit/b90c2395b2c055aed38e0c5fd40c1841f43dab4b
Try `:help wayland` for more information.
-
Vim is quite usable on Windows, and it's installable from daily snapshots shared on a dedicated github project: https://github.com/vim/vim-win32-installer/releases
A recent update adds Windows ARM64 to the list of supported platforms.
-
You can learn more about the feature from the documentation at `:help tabpanel`: https://vimhelp.org/tabpage.txt.html#tabpanel
-
If you have a monitor with a lot of horizontal space, you might find the recently-added Vim "tabpanel" feature interesting. You can use it to organize your open buffers into a vertical side panel. Here's one redditor experimenting with it: https://www.reddit.com/r/vim/comments/1l0od8p/messing_with_the_new_vertical_tabpanel/
-
Has anyone had good experiences with (universal) ctags for PHP? Looking for a solid, non-plugin, vim-native LS alternative for vim (9.1).
I tried `ctags -R --language-force=PHP --php-kinds=+c-f --fields=+n` as well as setting tags `set tags=./tags;,tags` but vim can't jump to function declarations by tag.
-
When you have a lot of results in your quickfix window, it can be much easier to explore them in tree form: https://github.com/EgZvor/quickfix-tree.vim
-
A PR has been merged that adds a "noselect" wildmode option to Vim, allowing automatic as-you-type completion in the command-line: https://github.com/vim/vim/pull/16759
You can try out the vim9script snippet in the PR description to replicate the demo gif.
-
If you'd like to understand vim9script, this document contains a bunch of useful knowledge in a Q&A format: https://github.com/lacygoill/wiki/blob/fa56bba1928d8366462118184b549c31db4860eb/vim/vim9.md
-
Instead of a split window, you might prefer your filesystem tree inside of a popup. Try this Vim9 plugin if you'd like to see how it feels: https://github.com/ycm/poplar.vim
-
Base64 encoding and decoding was not available in Vim, so plugin-writers that needed to deal with it had to shell out to external commands.
A recent PR adds that missing functionality: https://vimhelp.org/builtin.txt.html#base64_decode%28%29
-
If you install a recent Vim version, you can try out a new chapter of the built-in vimtutor with `vimtutor -c 2`: https://github.com/vim/vim/commit/17c71daf83f45c3ee81a33716e56e1b485e76a8b
It teaches beginners how to use special registers and marks
-
A new built-in Vim plugin can provide a convenient table of contents for navigating help files: https://vimhelp.org/helphelp.txt.html#help-toc-install
-
A powerful new plugin for your Vim9 command-line, VimSuggest: https://github.com/girishji/vimsuggest
It adds live-grepping for text, fuzzy-finding for files, and a number of other tools you could try integrating into your workflow
-
When writing python, you could use this plugin to evaluate blocks of code with a running interpreter: https://github.com/arizvisa/vim-incpy
-
A recently-merged Vim PR introduces the `findexpr` setting that lets you plug an external program like `fd` or `git ls-files` into the built-in `:find` interface: https://www.reddit.com/r/vim/comments/1ga5ckm/findexpr/
-
Massively simplified some custom highlight group manipulation using Vim 9's hlget() and hlget() functions:
https://github.com/jparise/dotfiles/commit/ad1c0456c38040bcd96eea549817d4c3fed36b4e
It's scary just looking at the old code that manually parsed and reassembled `verbose highlight {group-name}` strings, even with the comments to help me remember what it was doing.
-
If you'd like to convert some of your Vim scripts and configuration to vim9script, this tool could be a useful starting point: https://github.com/ubaldot/vim9-conversion-aid
-
If you'd like to highlight visual-mode selections in Vim9, this snippet should do it: https://paste.sr.ht/~andrewradev/754597c7e636e30fb78da48027f83259c7b5c3be
-
I wrote an emoji plugin for Vim in vim9script.
Check it out:
https://github.com/wolandark/vim-ez-emojiIts nothing fancy, just two compiled functions consist of a load of abbreviations.
Does the job and is pretty quick. -
heise+ | Praxistest: Texteditor Vim 9 für Administratoren und Entwickler
Mit einer neuen Skriptsprache verbessert Vim 9 die Performance des Kommandozeileneditors deutlich. Das jüngste Release enthält außerdem praktische Neuerungen.
Praxistest: Texteditor Vim 9 für Administratoren und Entwickler