scy, to vim
@scy@chaos.social avatar

My #Vim (and #Neovim) can now insert the current date or time using mappings like "<C-R><Leader>d". This is consistent with other Ctrl-R mappings like "<C-R>%" which will insert the current file name.

This was inspired by @blaix's post https://hachyderm.io/@blaix/112576852666967922 (commit https://github.com/blaix/homer/commit/9f774be9be0ebd1fe01040257a7f8ce9e8dca5c1), but I've chosen a more general approach that will also work when you already are in insert mode, and also in command-line mode.

https://codeberg.org/scy/dotfiles/src/commit/c02b23d71374d2aaecc0e43a4f0921b76b18391c/.vim/plugin/datetimereg.vim

n3wjack, to vim
@n3wjack@mastodon.social avatar

My Vim plugin manager broke, so I switched to a new one. Find out how that excitingly geeky adventure unfolded! 😁

https://n3wjack.net/2024/06/05/vim-switching-from-vundle-to-the-minpac-plugin-manager/

pludikovsky, to Matrix
@pludikovsky@chaos.social avatar

Testing iamb¹ as #Matrix client. Seems to scratch my itch for an experience a la #irssi but without needing an #IRC bridge or similar.

Bonus points for being written in #Rust, #vim keybindings, and being able to display images in (supported) terminals.

¹ https://iamb.chat/

vjousse, to vim French
@vjousse@mamot.fr avatar

After the French version, I've updated the English version of my book about too.
You can find it here: https://vimebook.com/en

The github code is here https://github.com/vjousse/vim-for-humans-book/ and the tagged release here https://github.com/vjousse/vim-for-humans-book/releases/tag/v2.0
Don't hesitate if you have any feedback!

And of course, share the love ❤️

astro_ray, to typst
@astro_ray@misskey-square.net avatar

Is there any developer out there who is working on / GUI editor for typesetting documents in /. As much as I love them, modal editors like / are not for me.

nithinbekal, to vim
@nithinbekal@ruby.social avatar

As of this month, it's been 10 years since I switched to vim. Some reflections on what has changed in how I use vim over the decade:

https://nithinbekal.com/posts/decade-of-vim/

VimLinks, to vim
@VimLinks@hachyderm.io avatar

When doing an interactive rebase in git, it can be very convenient to see the contents of the individual commits: https://github.com/hotwatermorning/auto-git-diff

#vim #git

video/mp4

nehu, to rust German
@nehu@mastodon.cloud avatar

A super fast, advanced modal editor/IDE, written in and with keybindings. How does that sound?

Some years ago, I forked the editor and started adding some VIM keybindings to it. Now, some keybindings and a modeline later, I‘m excited to share with you, looking forward to your feedback!

https://github.com/usagi-flow/evil-helix

mjgardner, to emacs
@mjgardner@social.sdf.org avatar

This is what I hear in my head if I switch back to or .

source: https://mastodon.social/@workchronicles/112372770022713839

fabi1cazenave, to vim French
@fabi1cazenave@mastodon.social avatar

Ce samedi 25 mai je proposerai deux interventions sur (et , , …) aux @jdll :

• de 10h à 11h, une conférence « ergonomie vimiste » pour découvrir ou approfondir l’ergonomie des éditeurs modaux (tous niveaux) ;
• de 16h à 18h, un atelier « tupperVim » pour partager des connaissances sur nos éditeurs préférés (niveaux débrouillés / confirmés / experts).

Ça se passe à l’ENS Lyon, viendez nombreuses et nombreux !
https://pretalx.jdll.org/jdll2024/talk/NM7E3T/

vjousse, to vim French
@vjousse@mamot.fr avatar

Aussi improbable que cela puisse paraître, j'ai mis à jour mon livre sur 12 ans après 😅 https://vimebook.com/fr
Le contenu reste sensiblement le même, j'ai juste refait tous les screenshots, vérifié tous les liens, utilisé vim-plug au lieu de pathogen, fzf au lieu de ctrlp, vim-fern au lieu de TheNerdTree. Bref, c'est pareil, mais en mieux. Reste la version anglaise à mettre à jour, puis passer à l'écriture du prochain sur !
Merci pour tous les retours que j'ai eu ici ❤️

n3wjack, to vim
@n3wjack@mastodon.social avatar

Is the plugin manager Vundle broken?
When I use :PluginSearch I get a bunch of errors now.

scy, to vim
@scy@chaos.social avatar

There are days when I'd like to throw Vim at the wall.

:set stl=%f%{&modified?'\ •':''}

will have a status line like

README.md •

with the bullet point (•) if the file is modified.

:set stl=%{fnamemodify(expand('%%:p'),':~:.')}%{&modified?'\ •':''}

will eat the space before the bullet point for some reason.

All I did is replace %f with the %{…} expression.

This happens both in #Vim 9.0.1378 and #Neovim 0.7.2, and also if I replace • with any other character.

Ideas, anyone?

scy, to vim
@scy@chaos.social avatar

guilty of sprinkling Makefiles in a lot of projects and sub-projects, just so I can :make in #Vim

shalien, to vim French
@shalien@projetretro.io avatar

If you think using / is a required skill for being a we can't be friend.

nixCraft, to linux
@nixCraft@mastodon.social avatar
conorh, to random
@conorh@mastodon.sdf.org avatar

During lunch a friend mentioned that you can just supply a HTTP URL to vim on the command line and it would use curl to download that resource and allow you to edit the content. I jokingly asked whether if you enter :w it would then issue a HTTP POST back to the origin which is of course ridiculous.

It issues a PUT

unixwitch,
@unixwitch@social.tchncs.de avatar

@conorh
Other protocols are also possible, e.g. you can edit files via scp

vim scp://user@remoteserver.example.org//home/user/remotefile.txt

#vim #ssh #scp

scy, to vim
@scy@chaos.social avatar

#Vim (and #Neovim) will trigger au FileType netrw autocommands, as well as commands in after/ftplugin/netrw.vim when

• selecting a directory in a #Netrw buffer
• selecting a file in a Netrw buffer (i.e. when leaving Netrw)

but not when first entering Netrw, e.g. by calling :Explore

Even though :set ft? will display 'netrw' no problem.

What the fuck?! I'm at a loss here, any hints greatly appreciated. :BoostOK:

Reproduce by doing

• nvim --clean
• :au FileType netrw echo 'netrw'
• :e .

scy, to vim
@scy@chaos.social avatar

With the minus key being the default #Netrw (and oil.nvim) shortcut for "change into parent directory", TJ DeVries suggested to globally (i.e. in normal edit buffers) map minus to "open Netrw (or oil) in the current window", and I think that's really clever.

Like, <CR> moves down into a directory or file, and - moves up into the parent directory – either of the directory you're currently browsing, or the file you're currently editing. Like a global "zoom out" key.

#Vim #Neovim

linuxiac, to neovim
@linuxiac@mastodon.social avatar

Neovim 0.10 terminal text editor brings a fresh default color scheme, built-in commenting, major Terminal UI enhancements, and more.
https://linuxiac.com/neovim-0-10-terminal-text-editor/

#neovim #vim #texteditor

aburka, to vim
@aburka@hachyderm.io avatar

#tmux and #vim chose opposite conventions for the meaning of "vertical" and "horizontal" splits and it will be the death of me

thet, to vim
@thet@graz.social avatar

tip of the day: to replace text wrapping around some other, you can use regex groups and backreferences like this:

:%s/some(.*)text/other\1string/gc

For example:

Screencast of a regex replacement in vim with groups and backreferences.

al3x, to vim
@al3x@hachyderm.io avatar

Productivity increases with the level of customization you are making in the tools you are using most often.

The downside is that the more used to these customizations you get, the more lost you'll feel when
using a system that is not configured as yours.

Simple example: create a new binding in or . This is not only very common but
also very encouraged. After getting used to that, connect to a remote server.

vjousse, to random French
@vjousse@mamot.fr avatar

Est-ce que certains d'entre vous ont déjà testé https://helix-editor.com/ avec un layout ? Des retours d'expérience ? Des configs à partager ?

Martoni,
@Martoni@piaille.fr avatar

@ploum @vjousse Intéressé également.
#bépo et #vim team ;)

hgrsd, to rust
@hgrsd@hachyderm.io avatar

Which IDE do you use for Rust development?

I've been moving between neovim, helix (can't get over the slightly different mental model compared to vim), vscode, rustrover... Curious what others use.

#rustlang #rust

nehu,
@nehu@mastodon.cloud avatar

@hgrsd I found it easier to hack on than manage plugins, so I brought some keybindings to Helix. My „soft fork“ is still young, but the idea works (https://github.com/usagi-flow/helix); been using it productively for quite a while.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • tester
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • tacticalgear
  • osvaldo12
  • normalnudes
  • cubers
  • cisconetworking
  • everett
  • GTA5RPClips
  • ethstaker
  • Leos
  • provamag3
  • anitta
  • modclub
  • lostlight
  • All magazines