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

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 (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.

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/

thet, to vim
@thet@graz.social avatar

#vim 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 #Vim or #Emacs. 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.

nehu,
@nehu@mastodon.cloud avatar

@hgrsd I found it easier to hack on #helix than manage #neovim plugins, so I brought some #vim 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.

nemo, to vim
@nemo@mas.to avatar
Lioh, to linux German
@Lioh@social.anoxinon.de avatar

How to exit Vim on Linux. The ultimate tutorial ;)

#Linux #Vim #Editor

video/mp4

bentoh, to vscode
@bentoh@mastodon.online avatar

So over the past year I have been using for my and work. my workplace is trying to move to a unified IDE, and vscode allows remote access and WSL integration for free. However, so far it fails to spark joy in me like (despite lack of mode) and do. Everything feels clunky, and subpar. The "intelligent" and linting things are also quite broken in R... Has there been extensions that fundamentally change the vscode experience that I should be trying?

VimLinks, to vim
@VimLinks@hachyderm.io avatar

Vim has a lot of modes, probably more than you thought. Here's a diagram you could explore to maybe learn a new keymap or command: https://gist.github.com/kennypete/1fae2e48f5b0577f9b7b10712cec3212

sqrtminusone, to vim
@sqrtminusone@emacs.ch avatar

Google Books Ngram Viewer is a lot of fun, but... Who the heck was using in 1800? And what's that uptick in around 1880?

At least no one cared about in the 19th century.

Edit: now I know more about old English.

scy, to vim
@scy@chaos.social avatar

ughhh, is such a mess.

But it comes with every installation of and , so as someone who enjoys minimalism and likes to keep the number of additional plugins to a minimum, I feel like I should learn to use it and integrate it into my workflow.

But I've just used :Rexplore on a dirty file with 'nohidden' and it simply replaced my file's contents with the directory listing 😬

Also, don't make the mistake of looking at its source, or visiting the maintainer's "website" …

scy, to vim
@scy@chaos.social avatar

Instead of simply failing, my #Vim will now ask to create parent directories, if they don't exist, before saving a file.

https://codeberg.org/scy/dotfiles/src/commit/d3f843e5f674cef8572c51d45c41c3ec1f2f7b6c/.vim/plugin/mkdir-on-save.vim

scy, to vim
@scy@chaos.social avatar
RL_Dane, to vim
@RL_Dane@fosstodon.org avatar

Hey #vim / #NeoVim gurus,

Is there any way to make the spelling checker ignore words with numbers in them?

Couldn't find a good answer online.

jpmens, to vim
@jpmens@mastodon.social avatar

"I had to turn my face to the side so he wouldn’t see the tears drying on my cheeks. Let me be clear: This was NOT the man I married."

https://old.reddit.com/r/emacs/comments/1ck8w2g/my_husband_has_become_a_vim_peasant_please_advise/

nixCraft, to linux
@nixCraft@mastodon.social avatar
seve_py, to vim
@seve_py@fosstodon.org avatar

Curious about how many Vim/Neovim plugins you’re rocking? 🤔 Jump into your terminal, navigate to your Vim or Neovim configuration directory, and run this command: ls -alp | wc -l. I currently have 41 plugins, but I’m aiming to slim down to 30-35. How about you? Share your plugin count below! #Vim #Neovim #Plugins

Ronald, to linux Dutch
@Ronald@mastodon.nl avatar

Fijn onderwerp voor übernerds om zich eens lekker af te kunnen zetten tegen de sukkelaartjes die niet vloeiend zijn in VIM. Want als je geen liefhebber bent van (een soort editor uit het stenen tijdperk) dan ben je af (zie comments onder het onderwerp).
Nano is prima bruikbaar voor de meeste klusjes aan de CLI, laat ze verder maar lekker kletsen.
https://tweakers.net/nieuws/221570/nano-80-is-uit-met-betere-hotkeys-voor-knippen-en-plakken-en-nieuwe-zoekfunctie.html

koen,
@koen@procolix.social avatar

@Ronald wat jammer dat er geen #holywar bordje zit in de emoticons.

De mensen uit de comments hebben in zekere zin gelijk. Als je goed #VI of #VIM of #Emacs beheerst is een editor zoals #nano een vertragende factor.

Voor de chauvinisten hier, Vim is een Nederlandse uitvinding! Jammer dat de uitvinder overleden is: https://nluug.nl/nieuws/bram-moolenaar-overleden/

cms, to guix
@cms@social.lol avatar

Well I ran out of battery halfway through the hand install, so several hours of recovery later I can boot into #guix fsvo. Where are all my other bootable partitions though, and will I be able to tolerate #GNOME long enough to learn to live with it? These are the questions. Stay tuned, rat-fans.

cms,
@cms@social.lol avatar

Now I have put my config.scm in a git controlled source directory under ~cms , and made /etc/config.scm a symlink to that

and I can edit the scheme using a (so far vanilla) #emacs, which is slightly easier on the brain for things like indents

ngl though % in #vim is mad good for parens counting

all the #GNOME icons are busted since the last generation though .

I think my next step is to replace GNOME with something I can drive a bit better.
#guix

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