๐Ÿ’พ Archived View for bbs.geminispace.org โ€บ s โ€บ vim captured on 2023-07-10 at 13:36:28. Gemini links have been rewritten to link to archived content

View Raw

More Information

โžก๏ธ Next capture (2023-07-22)

-=-=-=-=-=-=-

s/vim

After decades of using random editors and emacs I've switched to vim. So why not have a place to share a tip or bitch about weird things vim does (or fails to do)? Put short tips and discoveries under TIPS topic; for anything that warrants its own discussion, please start a new topic.

๐Ÿš€ Moderated by: stack

๐ŸŒ’ Subspaces

๐Ÿ“– Help

โค๏ธ Code of conduct

Posts

๐Ÿš€ gyaradong

A long time ago I had the idea of changing vim keybinds such that each operation would have its dual as capital. most operations such as fF do this already. I wanted to do it for everything including movement. In the end it was too non standard given any reduction in complexity, didn't work for special characters, and it was unclear what dual meant (e.g. iI vs oO vs aA).

๐Ÿ’ฌ 1 like ยท 2023-07-08 ยท 2 days ago

๐ŸŒฒ sloum

I wrote a plugin to use vim as a smallnet client frontend. You need a backend that formats things ok for it. Lynx works if you want web/gopher. I wrote a backend that supports gemini as well (and supports 10 gemini and 7 gopher types for input). It works pretty well so far. [https link] Plugin [https link] Custom Backend From the plugin folder run `make` and you are all set. The backend requires a go compiler (the plugin defaults to using lynx). For info on customization, get help in vim: [...

๐Ÿ’ฌ View post ยท 2023-07-07 ยท 3 days ago

๐Ÿš€ stack

Editing Near-ASCII Binary Files โ€” I am experimenting with a near-ASCII file format containing text messages and binary markers (high bit set). Vim is surprisingly useful: it will display files in a reasonable-for-debugging way by displaying hex values for high characters. It preserves these during editing, and will even allow you to enter non-ascii characters: In Insert mode, [preformatted] will insert 0xAB. o will similarly take 3 octal digits. Just numbers for decimal digits.

๐Ÿ’ฌ 1 comment ยท 1 like ยท 2023-07-07 ยท 3 days ago

๐Ÿš€ stack

Configuration tricks, tips, etc.

๐Ÿ’ฌ 7 comments ยท 2023-07-04 ยท 6 days ago

๐Ÿฆ Arkaeriit

What is the best way to write a plugin in Lua and C? โ€” I wrote a plugin to use Vim as a hex editor. As there is quite a bit of computation to do I prefered not to do them in Vimscript. As the hex editor will manipulate arbitrary data and not text, Lua seemed a better choice than Python as the strings don't need to contain only Unicode characters. As some functions do heavy computation, I wrote them in C for the very substantial speed boost. Unfortunately, compiling the C librairy is not...

๐Ÿ’ฌ 3 comments ยท 2023-07-02 ยท 9 days ago

๐Ÿš€ stack

TIPS โ€” [http link] [https link] [https link]

๐Ÿ’ฌ 4 comments ยท 2023-07-01 ยท 9 days ago

Options

๐Ÿ”ฅ Sort by hotness

Gemini feed