mastodon.gamedev.place is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server focused on game development and related topics.

Server stats:

5.1K
active users

#vimscript

0 posts0 participants0 posts today
stateful being<p><a href="https://mastodon.social/tags/helix" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>helix</span></a> vs <a href="https://mastodon.social/tags/neovim" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>neovim</span></a>. spot the differences!</p><p>the main one isn't really visible, though: helix has a built-in <a href="https://mastodon.social/tags/treesitter" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>treesitter</span></a>, and it does a great job at highlighting <a href="https://mastodon.social/tags/rust" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rust</span></a> out of the box, with zero configuration and dependencies!</p><p>this way, i don't have 20 plugins in <a href="https://mastodon.social/tags/lua" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>lua</span></a> and/or <a href="https://mastodon.social/tags/vimscript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vimscript</span></a> running in the background and autoupdating from <a href="https://mastodon.social/tags/github" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>github</span></a> - awesome! 🌈🦄 config is plain <a href="https://mastodon.social/tags/toml" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>toml</span></a> - no need to write it in turing-complete languages which i only know poorly</p><p>shout out <span class="h-card" translate="no"><a href="https://fosstodon.org/@bobulous" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>bobulous</span></a></span> 🙌 <a href="https://www.bobulous.org.uk/coding/Helix-crib-sheet.html" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">bobulous.org.uk/coding/Helix-c</span><span class="invisible">rib-sheet.html</span></a></p>
Wolf<p>I think any large interesting program you might write could well have an embedded language within it, in which the user can write stuff that is just as good, and just as deep as built-in functionality. You want this. It’s a thing that makes programs compelling.</p><p>In <a href="https://hachyderm.io/tags/Vim" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Vim</span></a>, that embedded language is <a href="https://hachyderm.io/tags/VimScript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>VimScript</span></a>. In <a href="https://hachyderm.io/tags/emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>emacs</span></a>, that’s <a href="https://hachyderm.io/tags/elisp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>elisp</span></a> (which in fact, I think the whole thing is written in). In a <a href="https://hachyderm.io/tags/smalltalk" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>smalltalk</span></a> environment, you control the entire environment with Smalltalk, just as elisp applies to Emacs. For many, many things, that language is <a href="https://hachyderm.io/tags/lua" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>lua</span></a> ( <a href="https://hachyderm.io/tags/NeoVim" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>NeoVim</span></a>, many games, <a href="https://hachyderm.io/tags/pandoc" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pandoc</span></a>, <a href="https://hachyderm.io/tags/redis" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>redis</span></a>, this list goes on).</p><p>I used to think there were really two reasonable mainstream languages you could use here: <a href="https://hachyderm.io/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a> or <a href="https://hachyderm.io/tags/javascript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>javascript</span></a>. Between those two, for a long time I felt that JavaScript was the winner. I think that has changed as Python has gotten faster, more powerful, and better known. But also, I think the answer might actually not be either of these two. It might be Lua. Lua is simpler and faster than either JavaScript or Python. It’s more embeddable. It’s designed specifically for this purpose. It’s in much wider use as an embedded scripting language. I don’t want Lua to be the answer. I like Python better. But I think Lua actually is the right answer.</p>
Wolf<p><a href="https://hachyderm.io/tags/Vim" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Vim</span></a> <a href="https://hachyderm.io/tags/NeoVim" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>NeoVim</span></a> I found what was replacing all my argument lists with underscores: argtextobj.vim. This is one of my favorite plugins. It hasn’t been touched in 15 years, though. Probably something changed in the editor itself that broke it. I could abandon it; I could fix it; or I could rewrite it. I asked my friend what language it should be rewritten in. He said <a href="https://hachyderm.io/tags/vim9script" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vim9script</span></a> of course! I disagreed. That would only work in Vim. <a href="https://hachyderm.io/tags/lua" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>lua</span></a> would only work in NeoVim. Maybe <a href="https://hachyderm.io/tags/vimscript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vimscript</span></a> from just before 9. Maybe <a href="https://hachyderm.io/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a>. Maybe <a href="https://hachyderm.io/tags/rustlang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rustlang</span></a>. All three of those would run in both. I kinda don’t want to use VimScript, but that’s technically the correct choice.</p><p>Of course it would be waaay easier if it used the <a href="https://hachyderm.io/tags/lsp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>lsp</span></a>. Otherwise you’re parsing patterns and brackets and strings. Not sure such a solution works in plain old Vim. </p><p>What does the <a href="https://hachyderm.io/tags/fediverse" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fediverse</span></a> say?</p>
Loafer<p>Get integrated python3 to run vimscript User Commands sequentially? Or have them sleep?</p><p><a href="https://discuss.systems/tags/vim" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vim</span></a> <a href="https://discuss.systems/tags/foss" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>foss</span></a> <a href="https://discuss.systems/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> <a href="https://discuss.systems/tags/linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>linux</span></a> <a href="https://discuss.systems/tags/vimscript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vimscript</span></a> <br><a href="https://discuss.systems/tags/stackoverflow" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>stackoverflow</span></a> <a href="https://discuss.systems/tags/stackexchange" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>stackexchange</span></a> </p><p><a href="https://vi.stackexchange.com/questions/46276/run-vimscriptpython-user-commands-sequentually" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">vi.stackexchange.com/questions</span><span class="invisible">/46276/run-vimscriptpython-user-commands-sequentually</span></a></p>
Loafer<p>Chaining Abbreviations?</p><p><a href="https://discuss.systems/tags/vim" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vim</span></a> <a href="https://discuss.systems/tags/vimscript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vimscript</span></a> <a href="https://discuss.systems/tags/stackexchange" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>stackexchange</span></a> </p><p><a href="https://vi.stackexchange.com/questions/46173/chaining-abbreviations" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">vi.stackexchange.com/questions</span><span class="invisible">/46173/chaining-abbreviations</span></a></p>
Loafer<p>Write all options to a file or buffer?</p><p><a href="https://discuss.systems/tags/vim" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vim</span></a> <a href="https://discuss.systems/tags/vimscript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vimscript</span></a> <a href="https://discuss.systems/tags/stackexchange" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>stackexchange</span></a> </p><p><a href="https://vi.stackexchange.com/questions/46176/write-all-options-to-a-file-or-buffer" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">vi.stackexchange.com/questions</span><span class="invisible">/46176/write-all-options-to-a-file-or-buffer</span></a></p>
data0<p><span class="h-card" translate="no"><a href="https://hachyderm.io/@seanhood" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>seanhood</span></a></span> You could try solving the <a href="https://indieweb.social/tags/AdventOfCode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>AdventOfCode</span></a> with <a href="https://indieweb.social/tags/VimScript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>VimScript</span></a> ;-) Nah, better not. AoC should be about having fun.</p>
David Cantrell 🏏<p><span class="h-card" translate="no"><a href="https://fedi.tali.network/@breakerandahalf" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>breakerandahalf</span></a></span> <span class="h-card" translate="no"><a href="https://hachyderm.io/@simontatham" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>simontatham</span></a></span> <span class="h-card" translate="no"><a href="https://social.jvns.ca/@b0rk" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>b0rk</span></a></span> yeah, every time I have to even read <a href="https://fosstodon.org/tags/vimscript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vimscript</span></a>, let alone write it, I get a little bit ragey.</p>
Beej 💾<p>Need a new C compiler? Here's one written in VimScript.</p><p><a href="https://github.com/rhysd/8cc.vim" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="">github.com/rhysd/8cc.vim</span><span class="invisible"></span></a></p><p><a href="https://mastodon.sdf.org/tags/c" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>c</span></a> <a href="https://mastodon.sdf.org/tags/compilers" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>compilers</span></a> <a href="https://mastodon.sdf.org/tags/vimscript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vimscript</span></a> <a href="https://mastodon.sdf.org/tags/clang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>clang</span></a></p>
Jarkko Sakkinen<p>Migrated from <a class="hashtag" href="https://social.kernel.org/tag/neovim" rel="nofollow noopener noreferrer" target="_blank">#neovim</a> back to <a class="hashtag" href="https://social.kernel.org/tag/vim" rel="nofollow noopener noreferrer" target="_blank">#vim</a> after several years of use because:</p><ol><li>I neither need nor use LSP.</li><li>I don’t need two scripting languages in a text editor.</li><li>Neovim <a class="hashtag" href="https://social.kernel.org/tag/plugin" rel="nofollow noopener noreferrer" target="_blank">#plugin</a> ecosystem is a dependency hell.</li><li>Neovim <a class="hashtag" href="https://social.kernel.org/tag/plugins" rel="nofollow noopener noreferrer" target="_blank">#plugins</a> are fancy but that results in also a fancy configuration to maintain.</li><li>I don’t mind a slow release cycle. My vim workflow hasn’t changed for ages.</li><li>When logging into remote machines, an off-the-shelf vim installation is almost guaranteed.</li><li>Even if neovim is installed to a remote machine, it usually fails to load my configuration, given the rapidly changing upstream and plugins requiring always the bleeding edge.</li><li>I learned <a class="hashtag" href="https://social.kernel.org/tag/vimscript" rel="nofollow noopener noreferrer" target="_blank">#vimscript</a> in 1998 before I had even heard about <a class="hashtag" href="https://social.kernel.org/tag/lua" rel="nofollow noopener noreferrer" target="_blank">#lua</a>, and it is more comfortable programming environment for me :-) Before 1998 I was using <a class="hashtag" href="https://social.kernel.org/tag/qedit" rel="nofollow noopener noreferrer" target="_blank">#qedit</a> in MS-DOS.</li><li>For local IPC with neovim, a Python package <code>neovim-remote</code> is required. Vim has full local IPC workflow builtin.</li></ol>
razzlom is always sad<p>Я сегодня потратил весь день на переписывание моего конфига для <a href="https://quietplace.xyz/tags/Nvim" rel="nofollow noopener noreferrer" target="_blank">#Nvim</a> (<a href="https://quietplace.xyz/tags/NeoVim" rel="nofollow noopener noreferrer" target="_blank">#NeoVim</a>) с <a href="https://quietplace.xyz/tags/VimScript" rel="nofollow noopener noreferrer" target="_blank">#VimScript</a> на <a href="https://quietplace.xyz/tags/Lua" rel="nofollow noopener noreferrer" target="_blank">#Lua</a><span>.<br><br></span><a href="https://codeberg.org/RaZZlom/dotfiles/src/branch/master/config/nvim" rel="nofollow noopener noreferrer" target="_blank">https://codeberg.org/RaZZlom/dotfiles/src/branch/master/config/nvim</a><span><br><br>В свзи с этим заменил все плагины на новые, добавил </span><a href="https://quietplace.xyz/tags/TreeSitter" rel="nofollow noopener noreferrer" target="_blank">#TreeSitter</a> и <a href="https://quietplace.xyz/tags/LSP" rel="nofollow noopener noreferrer" target="_blank">#LSP</a><span> сервер.<br><br>Можете смело сказать где сделано круто, а где я всё испортил.</span></p>
Jan <3<p>Anyone using <a href="https://hachyderm.io/tags/vim" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vim</span></a> (not Neovim) and would like to share their or recommend a starting config? Kinda thinking about going <a href="https://hachyderm.io/tags/vimscript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vimscript</span></a> instead of Lua</p>
data0<p>Going through my <a href="https://indieweb.social/tags/neovim" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>neovim</span></a> config for below toot reminded me what a messed up mix of <a href="https://indieweb.social/tags/vimscript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vimscript</span></a> and <a href="https://indieweb.social/tags/lua" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>lua</span></a> it is. So I finally took the plunge and converted it to proper lua.</p><p>Turns out, <a href="https://indieweb.social/tags/LLMs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>LLMs</span></a> are pretty good at this. <a href="https://indieweb.social/tags/Mixtral" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Mixtral</span></a> converted every vimscript snippet I threw at it to a correct lua statement!</p><p><a href="https://indieweb.social/@data0/111818634446096204" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">indieweb.social/@data0/1118186</span><span class="invisible">34446096204</span></a></p>
Sanchayan<p>Switching between <a href="https://sanchayanmaity.com/tags/gstreamer" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>GStreamer</span></a> logs, pipeline dot graphs and Wireshark packet capture, SSRC values for RTP can be in decimal or hexadecimal. Quickly wrote some <a href="https://sanchayanmaity.com/tags/vimscript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vimscript</span></a> (I know, I know, I can write Lua too) to scratch this itch of converting quickly when required.<br><br><a href="https://git.sanchayanmaity.net/sanchayanmaity/dotfiles/src/branch/master/nvim/.config/nvim/plugin/shell.vim#L34" rel="nofollow noopener noreferrer" target="_blank">https://git.sanchayanmaity.net/sanchayanmaity/dotfiles/src/branch/master/nvim/.config/nvim/plugin/shell.vim#L34</a><br></p>
orizuru<p><span class="h-card" translate="no"><a href="https://fosstodon.org/@codemonkeymike" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>codemonkeymike</span></a></span> it gives you a modern <a href="https://mastodon.world/tags/vim" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vim</span></a> experience out of the box and sane defaults, without feeling bloated. Reminds me a bit of <a href="https://mastodon.world/tags/doomemacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>doomemacs</span></a> .<br>Also using <a href="https://mastodon.world/tags/lua" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>lua</span></a> instead of relying on <a href="https://mastodon.world/tags/vimscript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vimscript</span></a> was a good decision from the <a href="https://mastodon.world/tags/neovim" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>neovim</span></a> devs, IMO.</p><p>Definitely not as easy to configure as <a href="https://mastodon.world/tags/HelixEditor" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>HelixEditor</span></a> , but an improvement over configuring vanilla neovim from scratch.</p>
James Brown<p>Spent some time over the holiday break migrating my <a href="https://hachyderm.io/tags/neovim" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>neovim</span></a> config from <a href="https://hachyderm.io/tags/vimscript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vimscript</span></a> to <a href="https://hachyderm.io/tags/lua" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>lua</span></a> and updating my plugin-list; wrote up a blogpost at <a href="https://www.roguelazer.com/blog/2024-01-editor-update/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">roguelazer.com/blog/2024-01-ed</span><span class="invisible">itor-update/</span></a></p>
Axel<p>Currently delving into Vimscript to enhance my daily plugins. 💻✨ Learning to contribute and improve the tools we rely on. Any seasoned Vimscript devs with tips or favorite resources? <a href="https://hostux.social/tags/Vim" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Vim</span></a> <a href="https://hostux.social/tags/Vimscript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Vimscript</span></a> <a href="https://hostux.social/tags/LearningJourney" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>LearningJourney</span></a></p>
Enrico Hondius<p>Aaargh! Ik probeer Vimscript te leren, de programmeertaal waarmee je de editor Vim naar je hand kunt zetten. Wat een ellende... 😂<br>Een simpele functie is (met veel moeite) gelukt, maar nu wil ik iets een klein beetje ingewikkelder en alles stort inelkaar. Een variabele heeft opeens een heel andere waarde dan ik er in stopte en een simpele zoek-en-vervang vindt niets, zelfs niet als ik zoek op '.', oftewel: whatever.<br>Steeds iets nieuws proberen, dan blijf je eeuwig beginner. <br><a href="https://mastodon.social/tags/vim" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vim</span></a> <a href="https://mastodon.social/tags/vimscript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vimscript</span></a></p>