@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 >:|"
@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 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.
@agowa338 @ionchy this is Untrue, you can do the following:
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."+y should work.:!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.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...
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)
@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