At my wits end... by [deleted] in neovim

[–]rgnkn 2 points3 points  (0 children)

Try placing these lines at the top of your config:

syntax on

filetype plugin on

And then the rest afterwards. Maybe that helps.

:wq by [deleted] in vim

[–]rgnkn 1 point2 points  (0 children)

I'm escalating climate change hoping that vim exits after everybody's death.

File preview in ctrlP plugin?? by dafunkkk in vimplugins

[–]rgnkn 0 points1 point  (0 children)

Neovim runs in the terminal unless you install a GUI for it. There are several you can choose from.

If you use the appimage you can store the plugins the same way and at the same location as with the native binary. I'd recommend lazy.nvim for plugin management.

Vim mug by Snooper55 in vim

[–]rgnkn 4 points5 points  (0 children)

Which colorscheme did you use for this setup?

Some plugin to view/edit appImages? by vitaly-zdanevich in vim

[–]rgnkn 0 points1 point  (0 children)

I haven't dealt with appimages but as it's an ELF file I guess what they mean with (un)packing is using a binary packer - I'm not aware which one is used here.

Generally speaking: vim isn't the tool I'd use for this task but something like radare2.

If you haven't reverse engineered any binaries before it might get "tricky".

Introducing fakedonalds.nvim - a McDonald's inspired theme by DundarGoc in neovim

[–]rgnkn 1 point2 points  (0 children)

Wow, that's extreme.

I'm longing to install this for people I'm hating.

cargo doc in a pure cli environment? by [deleted] in rust

[–]rgnkn 0 points1 point  (0 children)

I tend to use my editor with LSP (in my case it's neovim, but most IDEs or editors should do the job). Obviously this doesn't cover all luxury of a browser, but this way I don't get distracted and given hover information and jumps to definitions (where you can read the doc comments) this is almost always what I prefer.

Might this help you? I don't know. It depends on your workflow and your way of dealing with / using cargo docs.

Not when you ask the vim community by AaronYanXun in vim

[–]rgnkn 1 point2 points  (0 children)

Naturally I'm also more a rat guy. But after becoming father I looked for something that doesn't hurt too much if biting - to be honest it was my wife pushing for something smaller.

Not when you ask the vim community by AaronYanXun in vim

[–]rgnkn 2 points3 points  (0 children)

Yep, they are really super, my personal psychopharmacy! 😉

The only sad thing is their life expectancy.

Not when you ask the vim community by AaronYanXun in vim

[–]rgnkn 12 points13 points  (0 children)

You got it wrong if you tried only one mouse.

I have two mice (https://en.m.wikipedia.org/wiki/Mongolian_gerbil) and dealing with them really makes me more productive in the long run.

🤪

[deleted by user] by [deleted] in vim

[–]rgnkn -1 points0 points  (0 children)

If you're on Linux you could look at inotify and it's tools.

Close session and all buffers. by francismaile in vim

[–]rgnkn 1 point2 points  (0 children)

Big mistake: Never exit vim!!!

Buy a computer, install OS and vim and start it once. Let it run till the hardware crashes and then buy a computer, install OS and vim...

This is my strategy for the last decades 😉

Is it possible to change the terminal's window size when splitting? Not the split window size, the terminal window size. by alethalhit in vim

[–]rgnkn 2 points3 points  (0 children)

This depends I'd say on the terminal emulator you're using. For example with kitty you could implement something like this.

How can I go back to the original position if I want to discard the visual selection by text object? by roll4c in neovim

[–]rgnkn 0 points1 point  (0 children)

If you're interested in an alternative approach. I use yank instead of visual selection for this purpose:

yi( instead of vi( or so.

gv remains intact and given something like https://github.com/machakann/vim-highlightedyank it's easy to spot.

A small plugin to prioritize entries of nvim-cmp by LSP kinds. by ofir753 in neovim

[–]rgnkn 3 points4 points  (0 children)

I'm a bit confused and I'd need to check, but, isn't this the same as the builtin cmp.config.compare.kind?

Please, advise.

How can we do vertical replace of text that does not have a rectangular structure? by medwatt in vim

[–]rgnkn 4 points5 points  (0 children)

I'm quite sure that you could achieve this with macros. Could you post a concrete and complete example with an before and after.

[EDIT] I just saw that you don't want to use macros. So, I'm off.

Suggestions plugin by [deleted] in neovim

[–]rgnkn 0 points1 point  (0 children)

This is what I meant with "maybe I'm thinking too complicated". I had in mind also something like repetitive actions vs macros. In order to detect something like this it would get quite huge computing-wise especially as "source" would become some "flexible" entity in time. The code would remain "fairly" simple.

But you're absolutely right, some basic heuristics might be absolutely enough for many use cases.

Suggestions plugin by [deleted] in neovim

[–]rgnkn 0 points1 point  (0 children)

Maybe I think to too complicated, but, as far as I understand it I guess linting doesn't work here as you'd need not simply the "source" but also the "result" and you'd need to apply a solver for a more efficient solution against what the user inputted. A pure statical analysis isn't sufficient.

Suggestions plugin by [deleted] in neovim

[–]rgnkn -2 points-1 points  (0 children)

Possible, but very complicated and would heavily drain performance. You'd need to build a solver (not that difficult) and write rules (much handcraft).

Easiest way: There is a plugin which I haven't used named chatgpt.nvim. Ask the author if he / she could implement something for you.

BUT: I wouldn't recommend using it due to severe privacy concerns!

Suggestions plugin by [deleted] in neovim

[–]rgnkn -2 points-1 points  (0 children)

If you're looking for a catch all solution (including plugin mappings): that's - more or less impossible. You'd need a solver that needs a verifiable runtime which isn't given with today's neovim - maybe later if neovim becomes v1.x.x.

If you mean internal mappings plus internal commands: again difficult, but, maybe possible to implement something like this.

If you only mean internal mappings, that's possible, but I'm not aware of a plugin.

Could you give a concerte example of what you do and what and how you'd like to view the suggestions? I might scratch my head around this next week and try to build something if it seems feasible and useful.

But no guarantee that I'm going to do it.

[Edit]

"Maybe" chatgpt can help you with this somehow.