How do I rename a symbol under the cursor using Neovim's built-in LSP without any plugin configuration?
grr
Since Neovim 0.
grr
Since Neovim 0.
R (in netrw)
Vim's built-in file explorer netrw lets you rename files and directories without leaving the editor.
qa*Ncgn<C-r>=newName\n<Esc>q
Record a macro using * to search for the word under cursor, cgn to change the next match, type the new name.
* then :%s//new/g
Pressing searches for the word under the cursor, which also loads it into the search register.