Just learned a neat new vim hack:
!xdg-open <cfile>
Got a http link under your cursor? PDF filename? Literally anything that xdg-open needs to know about?
^^^ :!xdg-open <cfile> will open it in your system browser.
Neato!
Just learned a neat new vim hack:
!xdg-open <cfile>
Got a http link under your cursor? PDF filename? Literally anything that xdg-open needs to know about?
^^^ :!xdg-open <cfile> will open it in your system browser.
Neato!
Show HN: Zxc – Rust TLS proxy with tmux and Vim as UI, BurpSuite alternative
Link: https://github.com/hail-hydrant/zxc
Discussion: https://news.ycombinator.com/item?id=43568771
Zxc – Rust TLS proxy with tmux and Vim as UI, BurpSuite alternative
Python developers might appreciate being able to look up stdlib documentation right inside of Vim: https://github.com/girishji/pythondoc.vim
So I’ve been using vi for over three decades now, and vim was often the flavor of vi being used.
I just noticed that when editing a compressed file in vim (e.g. vim foo.gz), the implicit decompression step is entered into the undo log. You can hit u right after file load and get the compressed binary data.
Huh.
An asynchronous VsCode-like HTTP plugin for Neovim https://lobste.rs/s/ikc5av #api #programming #vim
https://github.com/blacklight/nvim-http
What a luck #dropbox destroyed its paper product, which was my favorite #quicknotes tool and last tie to dropbox.Now using #hedgedoc and never been that happy.Amazing tool. Once again #opensource rules.And that #vim support,what a touch of genius! :-)
If you'd like to prank a fellow Vim user, send them a text file with `vim: revins` at the bottom and ask them to type some text in it... https://vimhelp.org/options.txt.html#%27revins%27
Unless they've turned off their `modeline` setting, something like this should happen:
We are going live in 10 mins. We are working on code quality and tests.
Surprize included!
Don't forget to say at least "
See you on https://www.twitch.tv/war1and.
Hm, https://github.com/wsdjeg/SpaceVim seems to be the main #repository for #SpaceVim https://spacevim.org/ and it's listed as #archived on 2025-02-20, with no note anywhere about it
#vim #neovim
Felix on Helix:
“A Review Of Helix After 1.5 Years”, Felix Knorr (https://felix-knorr.net/posts/2025-03-16-helix-review.html).
Via Lobsters: https://lobste.rs/s/miyoai/review_helix_after_1_5_years
Some important acronyms to know. Feel free to add some of your own.
Lisp:
Logic In Symbolic Paradigms
Lisp Inspires Strange People
Lisp Is Secretly Perfect
Python:
Pseudocode You’d Teach Hordes Of Newbies
Probably You'll Try Harder On Next-lang
Python: You'd Think Hardware's Optional Now
Emacs:
Editor Maintained As Community Shrine
Ecosystem Mainly Acquired by Cult Sysadmins
Emacs Means Always Configuring Something
Vim:
Vaguely Interactive Misery
Very Irritating Macros
Vim Isn't Modern
Linux:
Legendary Interface, Notoriously Unforgiving eXperience
Loyal In Nature, Unmatched eXtensibility
Linux Is Natural Under X
@vimtips Note: `pbcopy` is Mac only. For people on Linux or Windoze, you can use vim's registers as described here:
https://vi.stackexchange.com/a/96
As the comment says, this needs vim compiled with +clipboard support (check with `vim --version`).
I recommend setting up bindings for these in your vimrc, e. g. for keeping Ctrl-C/V/X. #vim
Edit: Solved, see my answer in the thread! Thanks everyone, you are awesome!
Dear #emacs users,
I am trying to re-learn emacs after using #vim for several years.
One thing that I really liked in vim is that I can "reformat" long lines in a #markdown file by marking the lines (VISUAL mode) and then hitting "gq". This kept the markdown format, e.g. lists are still lists, but the lines are wrapped at whatever I set as the maximum line length.
It seems I am missing the right search terms because I only find "M-q" aka fill-paragraph, but this does not respect e.g. markdown lists.
Does anyone have pointers or search terms for me?
This is similar to the effect of the diffchar.vim plugin, but is better in terms of performance and handling redraws: https://github.com/rickhowe/diffchar.vim
If you don't have a good way to update your Vim to the very newest version, you could try that plugin instead.
A PR merged in Vim implements character- and word-wise diff modes that you can activate using the 'diffopt' setting: https://vimhelp.org/options.txt.html#%27diffopt%27
Try adding `inline:char` to the setting to get a more detailed diff visualization, or `inline:word` for word-level changes.
#vim-Setting des Tages:
:se wrap|se lbr|se breakindent|se breakindentopt=column:8
automatischer Zeilenumbruch (an Wortgrenzen, nicht mittendrin) aktivieren (aber nur visueller Umbruch, nicht in der Datei selber → :se autoformat)
Und die gewräppten Zeilen dann ab Spalte 8 anzeigen (nicht linker Rand).