mastodontech.de ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Offen für alle (über 16) und bereitgestellt von Markus'Blog

Serverstatistik:

1,4 Tsd.
aktive Profile

#vimscript

0 Beiträge0 Beteiligte0 Beiträge heute
Jürgen<p>So, hier hat der Regen jetzt Scheinbar aufgehört. Den Rest <a href="https://mastodon.social/tags/refactoring" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>refactoring</span></a> mache ich morgen. Interessanterweise ist jetzt passiert, was wir alle schon lange befürchtet haben: ich will morgen mein erstes eigenes <a href="https://mastodon.social/tags/vimscript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>vimscript</span></a> für <a href="https://mastodon.social/tags/vim" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>vim</span></a> und <a href="https://mastodon.social/tags/neovim" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>neovim</span></a> <a href="https://mastodon.social/tags/nvim" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>nvim</span></a> versuchen zu schreiben!</p>
you╭👺+300╭🐈x5╭⁂+3╭(Ⓐ+a<p><a href="https://mastodon.social/tags/helix" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>helix</span></a> vs <a href="https://mastodon.social/tags/neovim" class="mention hashtag" rel="nofollow noopener" 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" 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" 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" target="_blank">#<span>lua</span></a> and/or <a href="https://mastodon.social/tags/vimscript" class="mention hashtag" rel="nofollow noopener" 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" target="_blank">#<span>github</span></a> - awesome! 🌈🦄 config is plain <a href="https://mastodon.social/tags/toml" class="mention hashtag" rel="nofollow noopener" 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" target="_blank">@<span>bobulous</span></a></span> 🙌 <a href="https://www.bobulous.org.uk/coding/Helix-crib-sheet.html" rel="nofollow noopener" 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" target="_blank">#<span>Vim</span></a>, that embedded language is <a href="https://hachyderm.io/tags/VimScript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>VimScript</span></a>. In <a href="https://hachyderm.io/tags/emacs" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>emacs</span></a>, that’s <a href="https://hachyderm.io/tags/elisp" class="mention hashtag" rel="nofollow noopener" 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" 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" target="_blank">#<span>lua</span></a> ( <a href="https://hachyderm.io/tags/NeoVim" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>NeoVim</span></a>, many games, <a href="https://hachyderm.io/tags/pandoc" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pandoc</span></a>, <a href="https://hachyderm.io/tags/redis" class="mention hashtag" rel="nofollow noopener" 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" target="_blank">#<span>Python</span></a> or <a href="https://hachyderm.io/tags/javascript" class="mention hashtag" rel="nofollow noopener" 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" target="_blank">#<span>Vim</span></a> <a href="https://hachyderm.io/tags/NeoVim" class="mention hashtag" rel="nofollow noopener" 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" 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" 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" target="_blank">#<span>vimscript</span></a> from just before 9. Maybe <a href="https://hachyderm.io/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a>. Maybe <a href="https://hachyderm.io/tags/rustlang" class="mention hashtag" rel="nofollow noopener" 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" 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" 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" target="_blank">#<span>vim</span></a> <a href="https://discuss.systems/tags/foss" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>foss</span></a> <a href="https://discuss.systems/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://discuss.systems/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a> <a href="https://discuss.systems/tags/vimscript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>vimscript</span></a> <br><a href="https://discuss.systems/tags/stackoverflow" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>stackoverflow</span></a> <a href="https://discuss.systems/tags/stackexchange" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>stackexchange</span></a> </p><p><a href="https://vi.stackexchange.com/questions/46276/run-vimscriptpython-user-commands-sequentually" rel="nofollow noopener" 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>
data0<p><span class="h-card" translate="no"><a href="https://hachyderm.io/@seanhood" class="u-url mention" rel="nofollow noopener" 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" target="_blank">#<span>AdventOfCode</span></a> with <a href="https://indieweb.social/tags/VimScript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>VimScript</span></a> ;-) Nah, better not. AoC should be about having fun.</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" 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" target="_blank">#<span>c</span></a> <a href="https://mastodon.sdf.org/tags/compilers" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>compilers</span></a> <a href="https://mastodon.sdf.org/tags/vimscript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>vimscript</span></a> <a href="https://mastodon.sdf.org/tags/clang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>clang</span></a></p>
Kevin Karhan :verified:<p><span class="h-card" translate="no"><a href="https://hachyderm.io/@Brahn" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>Brahn</span></a></span> <span class="h-card" translate="no"><a href="https://wandering.shop/@xgranade" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>xgranade</span></a></span> <span class="h-card" translate="no"><a href="https://wandering.shop/@Canageek" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>Canageek</span></a></span> I recommend <a href="https://infosec.space/tags/neovim" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>neovim</span></a> because it's a drop-in replacement and allows for way more customization without having to learn esotheric <a href="https://infosec.space/tags/VimScript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>VimScript</span></a> but allowing one to use <a href="https://infosec.space/tags/Lua" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Lua</span></a>... </p><p>So it doesn't take away stuff for <a href="https://infosec.space/tags/vim" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>vim</span></a> users but adds options down the line...<br><a href="https://www.youtube.com/watch?v=c4OyfL5o7DU" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">youtube.com/watch?v=c4OyfL5o7D</span><span class="invisible">U</span></a></p><p>Kinda like how every AR-15 &amp; AR-18 nowadays has a flat-top upper and maybe some flip-up iron sights instead of that carry-handle + gas block stuff...</p>
Jan 💤<p>Anyone using <a href="https://hachyderm.io/tags/vim" class="mention hashtag" rel="nofollow noopener" 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" target="_blank">#<span>vimscript</span></a> instead of Lua</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" target="_blank">#<span>Vim</span></a> <a href="https://hostux.social/tags/Vimscript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Vimscript</span></a> <a href="https://hostux.social/tags/LearningJourney" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LearningJourney</span></a></p>
msp729<p>does anyone know how to create mappings such that after i delete text with the d key in neovim (or ideally, anytime i finish an edit to a file), the file is written? i can figure out inoremap &lt;esc&gt; to &lt;esc&gt;&lt;cmd&gt;w&lt;cr&gt;, but i’m not sure how to make this work for deletions, as d:w&lt;cr&gt; would not be quite what i want.<br><a href="https://mastodon.world/tags/neovim" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>neovim</span></a> <a href="https://mastodon.world/tags/vim" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>vim</span></a> <a href="https://mastodon.world/tags/vimscript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>vimscript</span></a></p>
tyil<p><span>I'm looking to do a certain thing in </span><a href="https://fedi.tyil.nl/tags/vim" rel="nofollow noopener" target="_blank">#vim</a><span>, automatically decoding/encoding </span><a href="https://fedi.tyil.nl/tags/Kubernetes" rel="nofollow noopener" target="_blank">#Kubernetes</a><span> secrets when using </span><code>kubectl edit</code><span>.<br><br>These files seem to be always opened at </span><code>/tmp/kubectl-edit-*.yaml</code><span>, and always contain the line </span><code>kind: Secret</code><span>. If the path is correct, and this string is found, I want the file to be piped through </span><code>kubectl secret decode</code><span> before it shows in vim. When I save this file, I want it to be piped through </span><code>kubectl secret encode</code><span>.<br><br>Are there any </span><a href="https://fedi.tyil.nl/tags/vimscript" rel="nofollow noopener" target="_blank">#vimscript</a><span> aficionados around who can give me some advice on how to achieve this (seemingly) simple goal?</span></p>
scy 🔜 WHY<p>Yes, <a href="https://chaos.social/tags/VimScript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>VimScript</span></a> sucks, and <a href="https://chaos.social/tags/Lua" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Lua</span></a> is clearly better.</p><p>But: Not being able to use your config (hand-crafted and containing years of experience) on a remote machine that just has <a href="https://chaos.social/tags/Vim" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Vim</span></a> installed, not <a href="https://chaos.social/tags/Neovim" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Neovim</span></a>, sucks too.</p><p>Just saying.</p>
0x17 :cch:<p>TIL: <em>echo</em> und <em>:e</em> behandeln Variablen unterschiedlich. Musste erstmal wissen -.- <a href="https://corteximplant.com/tags/VimL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>VimL</span></a> <a href="https://corteximplant.com/tags/VimScript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>VimScript</span></a></p>
0x17 :cch:<p>I love <a href="https://corteximplant.com/tags/Vimscript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Vimscript</span></a> - stupidly Vimscript hates me :blobcatawauu:</p>
0x17 :cch:<p>Learning <a href="https://corteximplant.com/tags/vimscript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>vimscript</span></a> - status:</p>
0x17 :cch:<p>starting a new adventure: <a href="https://corteximplant.com/tags/vimscript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>vimscript</span></a> :blobfoxhyper:​:blobfoxupsidedown:​:blobfoxvibrate:​</p>