I'm glad vim ppl exist so that my refusal to use genAI for programming is hardly an exceptional trait in terms of sticking to old outdated methods
"you have to admit that copilot is useful for" no I don't. if vim users don't have to concede that using a mouse is useful then no I don't
on the other hand I'm glad plenty of other ppl are mad about genAI for me so that I don't need to spend any time doing anything actionable about it
uh oh toot has escaped containment
I USE VIM WITH A MOUSE you don't need to tell me this
@ionchy carpal tunnel syndrome breeds strong men
@ionchy who needs the end key or the mouse when i have A

@ionchy I heard some professional dude say that employers want their new grads to be "living IN AI" like it's the operating system.

And I'm just like "ewww no I'll be over here living in emacs >:|"

@ionchy vim users do have to concede that

@ben @ionchy as a neovim user i have to agree, especially since i set up mappings for my mouse buttons that invoke LSP commands like:

- jump to definition of the entity under the cursor;
- jump to definition of the *type* of the expression under the cursor;
- thumb buttons: jump back/forward in the stack of jumped-from locations

basically nvim has been a web-browser-for-code for several years now; it's great

@ben @ionchy (i'm not going to say that gen-"a.i." is useful though; and even if it is, the benefits are dramatically outweighed by the costs.)

@ben @ionchy i'm still mostly on the keyboard for modifications & motions though, especially now that we have treesitter-based text objects:

https://github.com/nvim-treesitter/nvim-treesitter-textobjects

...which makes it possible to do stuff like the following (in normal mode)

daf (Delete Around Function-definition (deletes the function surrounding the cursor, placing the deleted text in the @" register by default))

yas (Yank Around Statement)

vic (Visually-select Inside Class)

And you can move the cursor this way. It rules.

@ionchy At the end of the day, AI help ends up being a 10% improvement overall, thats not marginal at all a 3 month experience can makes 10% efficiency improvement.
@ionchy where does that put vim users that have mouse support enabled
@VegaHarmonia @ionchy it depends on whether they use an actual physically separate device from the keyboard, or an integrated one like a touchpad or the IBM Clit™
@ionchy The most annoying part of vim is it defaulting to having the mouse enabled.
And that is annoying cause you can't copy from the terminal properly...

@agowa338 @ionchy this is Untrue, you can do the following:

  • on xfce4-terminal, holding Shift while selecting text bypasses any mouse handling of the program in the terminal, allowing you to copy text from vim. Ask your terminal manufacturer if they can support this feature. If you use listchars in your vimrc like i do this approach of copying characters from the terminal will not work correctly anyway so read on for alternatives.
  • If your vim is able to access your X11 display (works in a graphical terminal emulator on an X(/Xwayland?) session, but not over ssh unless you do X11 forwarding), selecting the text with the Visual mode(s) and pressing "+y should work.
  • use the Visual Line mode to select the lines you wish to copy/cut, then type something like :!tee /tmp/clipboard.txt (:'<,'>! runs the supplied command with selected lines as stdin and puts stdout in their place). This approach is most convenient in Termux as selecting text there is extremely inconvenient; i use the termux-clipboard-set command instead of tee ... to write to the Android clipboard directly.

@kimapr @ionchy

Well I know there are workarounds. But I always first try to just do the usual and thereby fuck up my curser position in vim.
Then I remember "oh right, shitty vim default and different system you're SSHed in right now."
And then I frustratedly type ":set mouse=" and go back to where I originally was.

I think the main issue is that I'm not just staying local but dealing with a bunch of remotes, therefore vimrc isn't practicable and such...

@agowa338 Depending on the term you can hold down shift to select stuff instead of clicking on stuff. On Mac it's Cmd+R to toggle mouse reporting IIRC.

@jleedev

Good to know. However doesn't solve the problem that I only ever remember *after* I already tried to copy stuff and messed up my cursor position and such 😅

Otherwise I also would remember to just write ":set mouse=" beforehand too.

I knowledge that there are things I could do. However that default doesn't fail to annoy me constantly (especially cause I deal with remotes and containers and such, so even if I'd change the default it is not "preserved" until next time in the end)

@agowa338 To quote The UNIX-HATERS Handbook, “Why would you ever need to point to something that you've drawn in 3D?”
@ionchy you have to admit copilot is useful for killing the environment
@memdmp @ionchy it isn’t, there are much more effective ways to do this
@[email protected] @ionchy mmm but copilot is great at selling it to silicon valley investors - all the other climate destruction methods that are easy to sell to investors have already been sold to them

@memdmp @ionchy

Copilot killing the environment should be more obvious, like modes.

@ionchy I’m a vim user and i use a mouse with it and it’s useful,

never using copilot though i can write sloppy code on my own thanks

@ionchy @andybalaam I don‘t think usefulness is the thing here in terms of vim. It is that ENORMOUS distance between mouse and the keyboard your hands need to travel😛
@ionchy ... neo-butlerian jihad: down with "ai", and mice.
im down for this.
GitHub - dense-analysis/neural: AI Vim/Neovim code generation plugin (OpenAI, ChatGPT, and more)

AI Vim/Neovim code generation plugin (OpenAI, ChatGPT, and more) - dense-analysis/neural

GitHub
@ionchy I was using old outdated methods before they were cool. *beard grayness intensifies*
@ionchy How dare you be so insulting and so relatable at the same time?
@ionchy you will have to pry neovim from my dead, cold hands. It is the beat dev-environment I can think of - for me.