▲ | godelski 6 days ago | ||||||||||||||||||||||||||||||||||
I mean you use completion, right? That's interaction? In insert mode <C-p> or <C-n>, same to scroll through options.
Wait... you want it as an image? I mean... sure? You could, but I'm really curious why you would want that. I told you this was one option, but there are others. Are you referring to the one that was more visual and didn't show actual text? Idk, I'm not going to hunt down that plugin for you and I'm willing to bet you that it exists.
First off, when quoting it helps to add more >'s to clarify the depth. So ">>>" in this case. I was confused at first as I didn't say those words (Also, try adding two leading spaces ;)Second, sure, I refactor all the time. There's 3 methods I know. The best way is probably with bufdo and having all the files opened in a buffer (tabs, windows, or panes are not required). But I'm not sure why this is surprising. Maybe you don't know what ctags are? If not, they are what makes all that possible and I'd check them out because I think it will answer a lot of your questions.
Correct me if I'm wrong, but you are asking about "search and replace" right? I really do recommend reading about ctags and I think these two docs will give you answers to a lot more things that just this question[0,1]. Hell, there's even The Primeagen's refactoring plugin in case you wanted to do it another way that's not vim-native.But honestly, I really can't tell if you're just curious or trying to defend your earlier position. I mean if you're curious and want to learn more we can totally continue and I'm sure others would love to add more. And in that case I would avoid language like "vim doesn't" and instead phrase it as "can vim ___?", "how would I do ____ in vim?", or "I find ___ useful in VS code, how do people do this in vim?" Any of those will have the same result but not be aggressive. But if you're just trying to defend your position, well... Sun Tzu said you should know your enemy and I don't think you know your enemy. [0] https://vim.fandom.com/wiki/Browsing_programs_with_tags [1] https://vim.fandom.com/wiki/Search_and_replace_in_multiple_b... | |||||||||||||||||||||||||||||||||||
▲ | viraptor 6 days ago | parent [-] | ||||||||||||||||||||||||||||||||||
> you use completion, right? That's interaction? Very basic one. What I mean is once you get the completion, how do you interact with that view - let's say you want to dig into a type that's displayed. Then you want to get to the longer docs for that type. There's nothing out there that does it as far as I know. > Wait... you want it as an image? Yes, the asciiart minimaps are cool, but they really don't have enough resolution for more complex longer files in my experience. > The best way is probably with bufdo and having all the files opened in a buffer You see why this is not great, right? That's an extra thing to think about. > Maybe you don't know what ctags are? I know. It's step 1 out of many for implementing proper refactoring system. > but you are asking about "search and replace" right? Search and replace with language and context awareness. You can diy it in vim or start stacking plugins. Then you can do the same with the next feature (like inserting method stub). But... I can just use an actual IDE with vim mode instead. > And in that case I would avoid language like "vim doesn't" Vim doesn't do those things though. There's a whole ecosystem of additions of plugins of the day that add one thing or another. But it turns out it's easier to embed nvim in an ide than play with vim plugins until you get something close to ide. Been there for years, done that, got tired. VS with vim mode has better ide features than vim with all the customised plugins. | |||||||||||||||||||||||||||||||||||
|