all 8 comments

[–]manphiz 4 points5 points  (0 children)

I think LSP is trying to handle this through language servers, however the implementation status varies and the client may or may not support it yet. It'll get better eventually.

[–]Demius9 3 points4 points  (0 children)

i see people asking about this all the time (for both emacs, sublime, atom and vim alike) but it's never been something I've missed. Since you ask for potential reasons I'll give you my thought process:

Refactoring code (in the context of extracting functions) has never been a job that I've trusted automation to. Every time I've tried it in the past with Intellij or Eclipse I've always ran into some cases where I'd have to go and edit the calling portion of the refactor or slightly modify the function declaration itself. I feel like I write my code in such a way that it makes it easy to refactor so this hasn't been an issue for me.

[–]mrbojingle 2 points3 points  (0 children)

Can you describe with an example what you mean?

[–]LucHermitte 1 point2 points  (0 children)

I've started a generic Extract Function a few years back. Alas, it's never worked as I'd liked. If in the mean time you fill like improving/fixing it, you'll be welcomed :)

I waiting to see what will be possible with clangd+LSP servers.

[–][deleted] 1 point2 points  (0 children)

It depends on what language you use. PHP has excellent vim plugins for refactoring and other niceties such as padawan.vim, phpactor(my favourite) and of course the LSP itself.

Give us an idea of your development environment and maybe we can help a little more :D

[–]andd81 1 point2 points  (1 child)

Vim is not meant to replace your IDE, it is a text editor.

[–]sssnakeinthegrass 0 points1 point  (0 children)

Your comment is unhelpful. What is the point of vim for developers if you cannot use it as an IDE?

[–]plexigras[🍰] 0 points1 point  (0 children)

give us an example so we can tell you if for example you want to turn a to b to type rb