home.social

#vim9 — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #vim9, aggregated by home.social.

  1. The table-building demo uses a Neovim floating window to edit the cell in place, but the functionality is still available on Vim by using a split window.

    #vim #vim9

  2. The new table.vim plugin, usable on both Vim and Neovim, lets you create nice-looking tables in markdown or in code comments: github.com/numEricL/table.vim

    #vim #vim9 #neovim

  3. When you need a break from programming work, it's nice to have a way to unwind in Vim, like this game of pacman: github.com/nda-cunh/SupraPacman

    #vim #vim9

  4. 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: reddit.com/r/vim/comments/1mtw

    #vim #vim9

  5. @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.

  6. I'm really impressed with Vim-go. It's so handy! The auto import and auto formatting when saving alone work really reliably.

    :doge: github.com/fatih/vim-go

    #Vim #Vim9 #Golang #Go #VimGo

  7. I'm really impressed with Vim-go. It's so handy! The auto import and auto formatting when saving alone work really reliably.

    :doge: github.com/fatih/vim-go

    #Vim #Vim9 #Golang #Go #VimGo

  8. I'm really impressed with Vim-go. It's so handy! The auto import and auto formatting when saving alone work really reliably.

    :doge: github.com/fatih/vim-go

    #Vim #Vim9 #Golang #Go #VimGo

  9. I'm really impressed with Vim-go. It's so handy! The auto import and auto formatting when saving alone work really reliably.

    :doge: github.com/fatih/vim-go

    #Vim #Vim9 #Golang #Go #VimGo

  10. 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: github.com/kennypete/vim9-wins

    #vim #vim9

  11. 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?

    #vim #vim9 #ctag #ctags #UniversalCtags #PHP

  12. 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?

    #vim #vim9 #ctag #ctags #UniversalCtags #PHP

  13. 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?

    #vim #vim9 #ctag #ctags #UniversalCtags #PHP

  14. 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?

    #vim #vim9 #ctag #ctags #UniversalCtags #PHP

  15. 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?

    #vim #vim9 #ctag #ctags #UniversalCtags #PHP

  16. Some convenient completion-related features have been making their way into Vim via PRs. Check out a summary in this reddit post: reddit.com/r/vim/comments/1m9m

    #vim #vim9

  17. 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: vimhelp.org/vim9.txt.html#gene

    #vim #vim9 #vim9script

  18. 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: vimhelp.org/diff.txt.html#diff

    #vim #vim9 #neovim

  19. Vim has recently merged a PR that compiles in wayland libraries (if available) to enable native access to the clipboard: github.com/ZTHGongJu/vim/commi

    Try `:help wayland` for more information.

    #vim #vim9

  20. Vim is quite usable on Windows, and it's installable from daily snapshots shared on a dedicated github project: github.com/vim/vim-win32-insta

    A recent update adds Windows ARM64 to the list of supported platforms.

    #vim #vim9

  21. You can learn more about the feature from the documentation at `:help tabpanel`: vimhelp.org/tabpage.txt.html#t

    #vim #vim9

  22. 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: reddit.com/r/vim/comments/1l0o

    #vim #vim9

  23. 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.

    #vim #vim9 #ctags #UniversalCtags #php

  24. When you have a lot of results in your quickfix window, it can be much easier to explore them in tree form: github.com/EgZvor/quickfix-tre

    #vim #vim9

  25. A PR has been merged that adds a "noselect" wildmode option to Vim, allowing automatic as-you-type completion in the command-line: github.com/vim/vim/pull/16759

    You can try out the vim9script snippet in the PR description to replicate the demo gif.

    #vim #vim9

  26. If you'd like to understand vim9script, this document contains a bunch of useful knowledge in a Q&A format: github.com/lacygoill/wiki/blob

    #vim #vim9

  27. 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: github.com/ycm/poplar.vim

    #vim #vim9

  28. 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: vimhelp.org/builtin.txt.html#b

    #vim #vim9

  29. If you install a recent Vim version, you can try out a new chapter of the built-in vimtutor with `vimtutor -c 2`: github.com/vim/vim/commit/17c7

    It teaches beginners how to use special registers and marks

    #vim #vim9

  30. A new built-in Vim plugin can provide a convenient table of contents for navigating help files: vimhelp.org/helphelp.txt.html#

    #vim #vim9

  31. A powerful new plugin for your Vim9 command-line, VimSuggest: 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

    #vim #vim9

  32. When writing python, you could use this plugin to evaluate blocks of code with a running interpreter: github.com/arizvisa/vim-incpy

    #vim #vim9

  33. 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: reddit.com/r/vim/comments/1ga5

    #vim #vim9

  34. Massively simplified some custom highlight group manipulation using Vim 9's hlget() and hlget() functions:

    github.com/jparise/dotfiles/co

    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.

    #vim #vim9

  35. If you'd like to convert some of your Vim scripts and configuration to vim9script, this tool could be a useful starting point: github.com/ubaldot/vim9-conver

    #vim #vim9 #vim9script

  36. If you'd like to highlight visual-mode selections in Vim9, this snippet should do it: paste.sr.ht/~andrewradev/75459

    #vim #vim9

  37. I wrote an emoji plugin for Vim in vim9script.

    Check it out:
    github.com/wolandark/vim-ez-em

    Its nothing fancy, just two compiled functions consist of a load of abbreviations.
    Does the job and is pretty quick.

    #vim #vimplugin #Vim9 #vim9script

  38. 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