Summary, syntax, examples.
-- vim9script | |
-- # cfilter.vim: Plugin to filter entries from a quickfix/location list | |
-- # Last Change: Jun 30, 2022 | |
-- # Maintainer: Yegappan Lakshmanan (yegappan AT yahoo DOT com) | |
-- # Version: 2.0 | |
-- # | |
-- # Commands to filter the quickfix list: | |
-- # :Cfilter[!] /{pat}/ | |
-- # Create a new quickfix list from entries matching {pat} in the current | |
-- # quickfix list. Both the file name and the text of the entries are |
" vim9script that uses jobs to find a word's defintions | |
" and post them to the quickfix list | |
" Last Change: 2022 Mar 31 | |
" Maintainer: Christopher Pane <[email protected]> | |
vim9script | |
const api = "https://api.dictionaryapi.dev/api/v2/entries/en/" | |
def OnResponse(ch: channel, msg: string) | |
const json = json_decode(msg) |
Synchronized output is merely implementing the feature as inspired by iTerm2 synchronized output,
except that it's not using the rare DCS but rather the well known SM ?
and RM ?
. iTerm2 has now also adopted to use the new syntax instead of using DCS.
When rendering the screen of the terminal, the Emulator usually iterates through each visible grid cell and renders its current state. With applications updating the screen a at higher frequency this can cause tearing.
This mode attempts to mitigate that.
Vim has :h skeleton
help topic for when you want to read a skeleton
(template) file into a new file.
For me the idea of automatic templates is not that appealing, instead I would rather insert a template when I need it:
:r ~/.vim/asciidoctor/template_for_entity_relation_diagram
-----BEGIN PGP SIGNED MESSAGE----- | |
Hash: SHA512 | |
My resignation from freenode staff | |
================================== | |
I joined the freenode staff in March 2019 [1]. | |
Before I joined the staff, Freenode Ltd was sold [2] to a person named | |
Andrew Lee as part of a sponsorship deal. The informal terms of that |
/* | |
* Copyright © 2021 rusty-snake | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: | |
* |
Vim9 scriptはVim scriptとの互換をなくし変数の型縛りを導入したり、コンパイルをすることなどにより、高速化を実現した新しい処理系です。
def
コマンドで定義された関数内、またはVim script内でvim9script
コマンドを使うことで利用できます(vim9script
コマンドの後ではfunction
コマンドは利用できません)。
この記事は、 https://gist.github.com/yegappan/16d964a37ead0979b05e655aa036cad0 の内容を元にVim(v8.2.2576)上のVim9 scriptで動作するように改変したものです。
Vim9 scriptで動作を確認できなかったもの、まだ実装されていなものはpass
と表記し、省略しています。
Source: https://x.com/LundukeJournal/status/1940441670098809093
Hence, if you are interested in existing applications to "just work" without the need for adjustments, then you may be better off avoiding Wayland.
Wayland solves no issues I have but breaks almost everything I need. Even the most basic, most simple things (like xkill
) - in this case with no obvious replacement. And usually it stays broken, because the Wayland folks mostly seem to care about Automotive, Gnome, maybe KDE - and alienating everyone else (e.g., people using just an X11 window manager or something like GNUstep) in the process.