scy, to vim
@scy@chaos.social avatar

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

• selecting a directory in a 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/

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.
et 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 #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 ;)

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

#vim

sqrtminusone, to vim
@sqrtminusone@emacs.ch avatar

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

At least no one cared about #VSCode 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 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 / 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/

#vim

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!

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

Fijn onderwerp voor #Linux ü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 #VIM (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 bordje zit in de emoticons.

De mensen uit de comments hebben in zekere zin gelijk. Als je goed of of beheerst is een editor zoals 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/

vinib, to vim
@vinib@fosstodon.org avatar

users: do you use the editor for project-wide find and replace or just regular shell?

atoponce, to vim
@atoponce@fosstodon.org avatar

I know a joke about . jk

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

What do you think folks, should I update https://vimebook.com to only or should I stick to and create separate content for ?

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 fsvo. Where are all my other bootable partitions though, and will I be able to tolerate 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) , which is slightly easier on the brain for things like indents

ngl though % in is mad good for parens counting

all the 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.

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